Skip to content

Commit 1ef9d02

Browse files
committed
Don't show log for already cached archive
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 7c4c709 commit 1ef9d02

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pkg/hostagent/requirements.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ If any private key under ~/.ssh is protected with a passphrase, you need to have
131131
if *a.instConfig.Plain {
132132
return req
133133
}
134-
if *a.y.VMType != limayaml.EXT {
134+
if *a.instConfig.VMType != limayaml.EXT {
135135
req = append(req,
136136
requirement{
137137
description: "user session is ready for ssh",
@@ -230,7 +230,7 @@ Also see "/var/log/cloud-init-output.log" in the guest.
230230

231231
func (a *HostAgent) finalRequirements() []requirement {
232232
req := make([]requirement, 0)
233-
if *a.y.VMType != limayaml.EXT {
233+
if *a.instConfig.VMType != limayaml.EXT {
234234
req = append(req,
235235
requirement{
236236
description: "boot scripts must have finished",

pkg/instance/start.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ func Prepare(ctx context.Context, inst *store.Instance) (*Prepared, error) {
101101
if err := limaDriver.CreateDisk(ctx); err != nil {
102102
return nil, err
103103
}
104+
if *inst.Config.VMType == limayaml.EXT {
105+
// Created externally
106+
created = true
107+
}
104108
nerdctlArchiveCache, err := ensureNerdctlArchiveCache(ctx, inst.Config, created)
105109
if err != nil {
106110
return nil, err

0 commit comments

Comments
 (0)