If defaults are present in gadget.yaml, image.Prepare skips the customizeImage function call

Bug #1997494 reported by William Wilson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
In Progress
Undecided
Unassigned

Bug Description

This came up with a customer's testing building custom uc18 images. They were using ubuntu-image with the `--cloud-init` flag, but the cloud-init config was not being copied over into the root filesystem. I looked into the issue and noticed in `image/image_linux.go` in the `setupSeed` function, that `setupSeed` returns before running `customizeImage` when the `defaults` key is used in gadget.yaml. I believe this is a logical error, as that `customizeImage` function should run regardless of the usage of `defaults`.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :
Changed in snapd:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.