Defining base snap breaks snapping Subiquity

Bug #1860550 reported by Niek Wessels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned
snapd
Invalid
Undecided
Unassigned
subiquity
Fix Released
High
Unassigned

Bug Description

Subiquity basically uses an old snapcraft.yaml configuration. I updated this configuration to use base: core18 and multipass and set up all of its dependencies and packages to be local. When injecting the snap into an ISO, snapd gets stuck in "Wait until snapd is fully seeded". Checking back with TTY2, I see that the /snap/bin directory is empty. When not specifying a base keyword, the /snap/bin directory consists of the required snap parts and runs correctly.

Revision history for this message
Niek Wessels (nwessels) wrote :

My own snapcraft.yaml

Revision history for this message
Niek Wessels (nwessels) wrote :
Niek Wessels (nwessels)
summary: - Snapping Subiquity doesn't snap binaries
+ Defining core18 as base breaks snapping subiquity
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote : Re: Defining core18 as base breaks snapping subiquity

Ah yes, we need to fix this. IIRC, even changing snapcraft.yaml to "base: core" requires some changes to build successfully.

Changed in subiquity:
status: New → Triaged
importance: Undecided → High
Niek Wessels (nwessels)
summary: - Defining core18 as base breaks snapping subiquity
+ Defining base snap breaks snapping Subiquity
Niek Wessels (nwessels)
information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
John Lenton (chipaca) wrote :

I think the reason you see snapd get stuck on boot is because with the updated snap the seed.yaml is no longer valid. Missing or out of order bases, or content interfaces, would typically do this.

'snap debug validate-seed' was added in 2.39, and expanded in 2.41 to report on these issues.

There is not much snapd can _do_ on a system with an invalid seed; it needs checking before creating the system image.

I'm setting snapd's bug task to Invalid, but if there is something snapd needs to do please let us know (set it back to New so our triage picks it up).

Thank you.

Changed in snapd:
status: New → Invalid
Changed in subiquity:
status: Triaged → 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.