[Bug 1990884] Re: snap-preseed hangs indefinitely with firefox snap
John Chittum
1990884 at bugs.launchpad.net
Wed Oct 5 13:09:22 UTC 2022
small poke -- will this be rectified soon, to ensure Kinetic releases
are pre-seeded?
If not, we'll need to put a "skip" in the livecd-rootfs code to ensure
CPC projects are being preseeded (we weren't hit by the specific bug for
firefox,and thus we are having downstream issues with all our tests
failing due to pre-seed not happening and boot times being too slow)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1990884
Title:
snap-preseed hangs indefinitely with firefox snap
Status in livecd-rootfs package in Ubuntu:
Fix Released
Status in snapd package in Ubuntu:
Fix Committed
Bug description:
During our automated image builds, we found a scenario where `snap-
preseed` was hanging indefinitely. The logs are as follows:
```
sudo /usr/lib/snapd/snap-preseed /home/jawn-smith/sandbox/chroot/
ubuntu classic preseedingstarting to preseed root: /home/jawn-smith/sandbox/chroot
using snapd binary: /usr/lib/snapd/snapd (2.57.1+22.10.1)
AppArmor status: apparmor is enabled and all features are available
2022/09/26 19:56:40.922864 main.go:57: running for preseeding
2022/09/26 19:56:40.923469 overlord.go:263: Acquiring state lock file
2022/09/26 19:56:40.923655 overlord.go:268: Acquired state lock file
2022/09/26 19:56:40.930761 daemon.go:247: started snapd/2.57.1+22.10.1 (series 16; classic) ubuntu/22.10 (amd64) linux/5.19.0-15-generic.
2022/09/26 19:56:40.936802 daemon.go:340: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
2022/09/26 19:56:41.116159 helpers.go:147: error trying to compare the snap system key: system-key missing on disk
```
I was able to reproduce the behavior by running the following commands
on a kinetic system:
```
sudo debootstrap --variant=minbase --arch=amd64 kinetic chroot
sudo snap prepare-image --arch=amd64 --snap=core --snap=firefox --snap=core20 --snap=gtk-common-themes --snap=gnome-3-38-2004 --snap=bare --classic generic.model chroot
for mountpoint in /dev /proc /sys /sys/kernel/security/; do sudo mount --bind $mountpoint chroot/$mountpoint; done
sudo chroot chroot apt install -y squashfs-tools snapd
sudo /usr/lib/snapd/snap-preseed --reset <full path to chroot>
sudo /usr/lib/snapd/snap-preseed <full path to chroot>
```
In this scenario I am using the following generic.model:
```
type: model
authority-id: generic
series: 16
brand-id: generic
model: generic-classic
classic: true
timestamp: 2017-07-27T00:00:00.0Z
sign-key-sha3-384: d-JcZF9nD9eBw7bwMnH61x-bklnQOhQud1Is6o_cn2wTj8EYDi9musrIT9z2MdAa
AcLBXAQAAQoABgUCWYuXiAAKCRAdLQyY+/mCiST0D/0XGQauzV2bbTEy6DkrR1jlNbI6x8vfIdS8
KvEWYvzOWNhNlVSfwNOkFjs3uMHgCO6/fCg03wGXTyV9D7ZgrMeUzWrYp6EmXk8/LQSaBnff86XO
4/vYyfyvEYavhF0kQ6QGg8Cqr0EaMyw0x9/zWEO/Ll9fH/8nv9qcQq8N4AbebNvNxtGsCmJuXpSe
2rxl3Dw8XarYBmqgcBQhXxRNpa6/AgaTNBpPOTqgNA8ZtmbZwYLuaFjpZP410aJSs+evSKepy/ce
+zTA7RB3384YQVeZDdTudX2fGtuCnBZBAJ+NYlk0t8VFXxyOhyMSXeylSpNSx4pCqmUZRyaf5SDS
g1XxJet4IP0stZH1SfPOwc9oE81/bJlKsb9QIQKQRewvtUCLfe9a6Vy/CYd2elvcWOmeANVrJK0m
nRaz6VBm09RJTuwUT6vNugXSOCeF7W3WN1RHJuex0zw+nP3eCehxFSr33YrVniaA7zGfjXvS8tKx
AINNQB4g2fpfet4na6lPPMYM41WHIHPCMTz/fJQ6dZBSEg6UUZ/GiQhGEfWPBteK7yd9pQ8qB3fj
ER4UvKnR7hcVI26e3NGNkXP5kp0SFCkV5NQs8rzXzokpB7p/V5Pnqp3Km6wu45cU6UiTZFhR2IMT
l+6AMtrS4gDGHktOhwfmOMWqmhvR/INF+TjaWbsB6g==
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1990884/+subscriptions
More information about the foundations-bugs
mailing list