snap prepare-image gets confused when the default track is not "latest"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
High
|
Samuele Pedroni |
Bug Description
I have a model assertion (https:/
type: model
authority-id: VvBqrmj0g4M1DDy
series: 16
brand-id: VvBqrmj0g4M1DDy
model: pc
architecture: amd64
base: core18
gadget: pc=18
kernel: pc-kernel=18
required-snaps:
- modem-manager
...
An important detail is that modem-manager has the 1.10 track as the default track now. When I run "snap prepare-image <this_assertion> <dir>", it downloads the snap in the 1.10 (default) track, as I see "./image/
- name: modem-manager
snap-id: KtwxgRlwCAVKFw9
channel: stable
contact: mailto:<email address hidden>
file: modem-manager_
So, when I start an image that uses this seed, the modem-manager that has been installed is from the 1.10 track, but it is tracking "latest/stable", so when a refresh happens it installs the snap in latest.
To be coherent, the tracked channel should be 1.10/stable, or use latest/stable when downloading the snap too.
In any case, required-snaps should allow setting the track as it happens for the gadget and kernel snaps, to remove the ambiguities here. It should be possible to control the tracked channel from the model.
Changed in snapd: | |
assignee: | nobody → Samuele Pedroni (pedronis) |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
I confirmed this is happening with snapd edge version 2.44.3+ git1161. g0ed5ef1