Skip to content

Commit 4785729

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

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
@@ -117,7 +117,7 @@ If any private key under ~/.ssh is protected with a passphrase, you need to have
117117
if *a.instConfig.Plain {
118118
return req
119119
}
120-
if *a.y.VMType != limayaml.EXT {
120+
if *a.instConfig.VMType != limayaml.EXT {
121121
req = append(req,
122122
requirement{
123123
description: "user session is ready for ssh",
@@ -216,7 +216,7 @@ Also see "/var/log/cloud-init-output.log" in the guest.
216216

217217
func (a *HostAgent) finalRequirements() []requirement {
218218
req := make([]requirement, 0)
219-
if *a.y.VMType != limayaml.EXT {
219+
if *a.instConfig.VMType != limayaml.EXT {
220220
req = append(req,
221221
requirement{
222222
description: "boot scripts must have finished",

pkg/instance/start.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ func Prepare(ctx context.Context, inst *store.Instance) (*Prepared, error) {
9898
if err := limaDriver.CreateDisk(ctx); err != nil {
9999
return nil, err
100100
}
101+
if *inst.Config.VMType == limayaml.EXT {
102+
// Created externally
103+
created = true
104+
}
101105
nerdctlArchiveCache, err := ensureNerdctlArchiveCache(ctx, inst.Config, created)
102106
if err != nil {
103107
return nil, err

0 commit comments

Comments
 (0)