[Bug 2037338] Re: error in snap_validate_seed: kern_major_min: unbound variable
Launchpad Bug Tracker
2037338 at bugs.launchpad.net
Wed Sep 27 12:57:23 UTC 2023
This bug was fixed in the package livecd-rootfs - 23.10.47
---------------
livecd-rootfs (23.10.47) mantic; urgency=medium
[ Phil Roche ]
* fix: Ensure that grub/shim package installs do not install recommends for
minimized ubuntu-cpc image builds (LP: #2037075)
-- Steve Langasek <steve.langasek at ubuntu.com> Tue, 26 Sep 2023
15:04:09 -0700
** Changed in: livecd-rootfs (Ubuntu)
Status: Fix Committed => Fix Released
--
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/2037338
Title:
error in snap_validate_seed: kern_major_min: unbound variable
Status in livecd-rootfs package in Ubuntu:
Fix Released
Bug description:
[ Impact ]
* Livecd-rootfs live-builds will fail for images where
snap_validate_seed is called in hooks where a kernel is not present.
* It's very low impact, as snap seeding needs a kernel to properly
set apparmor features, but there is nonetheless a logic bug in the
variable scope, leading to an error if a binary hook uses `set -u`
[ Test Plan ]
* Running a livebuild against an image target calling
snap_validate_seed with no kernel would surface the error (e.g.
https://pastebin.ubuntu.com/p/Hwn3wMbGtS/)
[ Where problems could occur ]
* The code is mostly the same, but hoisting the declaration to the
function top instead of inside branch.
* a needless call to umount/mount the generic overlay might happen if
the other conditional branch erroneously triggers.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2037338/+subscriptions
More information about the foundations-bugs
mailing list