snap-bootstrap fails after mounting ubuntu-seed partition

Bug #1855099 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Critical
Unassigned

Bug Description

See attached log.txt and cmdline

I've built snap-bootstrap tool myself, as there is none available anywhere.

I did $ go build github.com/snapcore/snapd/cmd/snap-bootstrap

My snapd repo is at 2.42.2-1509-g18b0e3ce8a

First call to snap-bootstrap produced the "ubuntu-seed" partition mount.
Second call generate the attached traceback.

Tags: core20
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
tags: added: core20
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

How to reproduce on a devel machine without booting initrd or anything:

$ wget https://raw.githubusercontent.com/snapcore/models/master/ubuntu-core-20-amd64.model
$ ubuntu-image snap ubuntu-core-20-amd64.model
$ sudo modprobe nbd || :
$ which qemu-nbd || sudo apt install qemu-utils
$ qemu-nbd -d /dev/nbd0
$ qemu-nbd -c /dev/nbd0 -f raw ./pc.img

$ wget https://launchpadlibrarian.net/454241267/cmdline
$ sudo mount -o bind ./cmdline /proc/cmdline

$ sudo ./snap-bootstrap initramfs-mounts
$ systemd-mount `sudo ./snap-bootstrap initramfs-mounts`
(mounts seed)

$ sudo ./snap-bootstrap initramfs-mounts
....
traceback
....

Michael Vogt (mvo)
Changed in snapd:
status: New → In Progress
importance: Undecided → Critical
Revision history for this message
Michael Vogt (mvo) wrote :
John Lenton (chipaca)
Changed in snapd:
status: In Progress → Fix Committed
Michael Vogt (mvo)
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.