ppcel64 images unpack to /boot/vmlinux not /boot/vmlinuz leading to kernel feature mismatch
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
livecd-rootfs (Ubuntu) | Status tracked in Mantic | |||||
Xenial |
Won't Fix
|
Undecided
|
Philip Roche | |||
Bionic |
Won't Fix
|
Undecided
|
Philip Roche | |||
Focal |
Won't Fix
|
Undecided
|
Philip Roche | |||
Jammy |
Fix Committed
|
Undecided
|
Philip Roche | |||
Lunar |
Won't Fix
|
Undecided
|
Philip Roche | |||
Mantic |
Fix Committed
|
Undecided
|
Philip Roche |
Bug Description
In a build of a ppcel64 image, snap_validate_seed fails to find the installed kernel to pick a matching apparmor feature set to mount. from the log
```
+ [ -e chroot/boot/vmlinuz ]
+ [ -e chroot/
+ snap debug validate-seed chroot/
+ realpath chroot
+ /usr/lib/
ubuntu classic preseeding
unmounting: /build/
ubuntu classic preseeding
unmounting: /tmp/snapd-preseed
+ realpath chroot
+ /usr/lib/
ubuntu classic preseeding
```
This corresponds to line 772 in livecd-
snap_validate_
local CHROOT_ROOT=$1
local kern_major_
if [ -e ${CHROOT_
ppcel64 however unpacks to /boot/vmlinux. For history:
https:/
for ppcel64 images, this function needs to be updated to check for `/boot/vmlinux`.
This will require an SRU 23.10 (post-release) and 22.04
SRU
====
[ Impact ]
* ppc64el Users of the 6.5 kernel will have un-optimized first boot experiences due to snaps not preseeding with the correct apparmor setup. This directly affects clouds, leading to boot speed degradation of anywhere from 10-30s (depending on snaps installed)
[ Test Plan ]
* Build test ppc64el images and test that presenting was correctly applied for the 6.5 kernel
[ Where problems could occur ]
* If the optimized preseeding of the snaps for ppc64el continues to fail
Related branches
- Steve Langasek: Approve
-
Diff: 40 lines (+18/-1)2 files modifieddebian/changelog (+7/-0)
live-build/functions (+11/-1)
- Steve Langasek: Approve
-
Diff: 39 lines (+17/-1)2 files modifieddebian/changelog (+7/-0)
live-build/functions (+10/-1)
- Steve Langasek: Approve
- John Chittum (community): Approve
-
Diff: 39 lines (+17/-1)2 files modifieddebian/changelog (+7/-0)
live-build/functions (+10/-1)
summary: |
- ppcel64 images unpack to /boot/vmlinux not /boot/vmlinux leading to + ppcel64 images unpack to /boot/vmlinux not /boot/vmlinuz leading to kernel feature mismatch |
Changed in livecd-rootfs (Ubuntu): | |
assignee: | nobody → Philip Roche (philroche) |
description: | updated |
We haven't encountered this issue on non mantic cloud images but this should be backported to earlier branches/releases.