snap-bootstrap fails after mounting ubuntu-seed partition
Bug #1855099 reported by
Dimitri John Ledkov
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.
My snapd repo is at 2.42.2-
First call to snap-bootstrap produced the "ubuntu-seed" partition mount.
Second call generate the attached traceback.
Changed in snapd: | |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
How to reproduce on a devel machine without booting initrd or anything:
$ wget https:/ /raw.githubuser content. com/snapcore/ models/ master/ ubuntu- core-20- amd64.model core-20- amd64.model
$ ubuntu-image snap ubuntu-
$ 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:/ /launchpadlibra rian.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
....