uc20 grade dangerous images don't seed properly with devmode snaps in them

Bug #1898622 reported by Ian Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
High
Ian Johnson

Bug Description

Dangerous model images currently cannot seed at all devmode snaps, failing during first boot of run mode thusly:

[ 6.935996] snapd[900]: stateengine.go:150: state ensure error: devicemgr:
[ 6.937319] snapd[900]: - cannot seed: snap "hello-world" requires devmode or confinement override

This is because support for `snap prepare-image` to write anything into options.yaml (or somewhere else?) about needing to install the snaps using devmode is missing.

Changed in snapd:
assignee: nobody → Ian Johnson (anonymouse67)
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :
Revision history for this message
Ian Johnson (anonymouse67) wrote :

Maciej, that PR is orthogonal, that simply prevents folks from creating non-dangerous grade images with devmode snaps in them, I have not yet proposed a fix for _dangerous_ images seeding properly with devmode snaps, though I do have a working branch locally which fixes this. It's a bit of a pain to write tests for that though so I have not proposed it yet, but hope to do so soon.

Revision history for this message
Ian Johnson (anonymouse67) wrote :
Revision history for this message
Ian Johnson (anonymouse67) wrote :

That PR is in the wrong direction, but we will sync and figure out the right direction next week, so setting this to in progress

Changed in snapd:
importance: Medium → High
status: Triaged → In Progress
Revision history for this message
Ian Johnson (anonymouse67) wrote :
Changed in snapd:
status: In Progress → Fix Committed
milestone: none → 2.49
Changed in snapd:
status: Fix Committed → Fix Released
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.