ppcel64 images unpack to /boot/vmlinux not /boot/vmlinuz leading to kernel feature mismatch

Bug #2038957 reported by John Chittum
12
This bug affects 2 people
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/var/lib/snapd/seed/seed.yaml ]
+ snap debug validate-seed chroot/var/lib/snapd/seed/seed.yaml
+ realpath chroot
+ /usr/lib/snapd/snap-preseed --reset /build/chroot
ubuntu classic preseeding
unmounting: /build/chroot/tmp/snapd-preseed
ubuntu classic preseeding
unmounting: /tmp/snapd-preseed
+ realpath chroot
+ /usr/lib/snapd/snap-preseed /build/chroot
ubuntu classic preseeding
```

This corresponds to line 772 in livecd-rootfs/live-build/functions

snap_validate_seed() {
    local CHROOT_ROOT=$1
    local kern_major_min=undefined

    if [ -e ${CHROOT_ROOT}/boot/vmlinuz ]; then

ppcel64 however unpacks to /boot/vmlinux. For history:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1358920

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

Philip Roche (philroche)
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)
Revision history for this message
Philip Roche (philroche) wrote :

We haven't encountered this issue on non mantic cloud images but this should be backported to earlier branches/releases.

Changed in livecd-rootfs (Ubuntu):
status: New → Fix Committed
Philip Roche (philroche)
description: updated
Revision history for this message
Philip Roche (philroche) wrote :
Revision history for this message
Philip Roche (philroche) wrote :
Changed in livecd-rootfs (Ubuntu Jammy):
status: New → Fix Committed
assignee: nobody → Philip Roche (philroche)
Revision history for this message
Philip Roche (philroche) wrote :

As per kernel lifecycle @ https://ubuntu.com/kernel/lifecycle lunar, focal, bionic and xenial will not be getting any major kernel version bumps so this bug will not affect those series. As such I will mark these as Won't Fix

Changed in livecd-rootfs (Ubuntu Lunar):
assignee: nobody → Philip Roche (philroche)
Changed in livecd-rootfs (Ubuntu Focal):
assignee: nobody → Philip Roche (philroche)
Changed in livecd-rootfs (Ubuntu Bionic):
assignee: nobody → Philip Roche (philroche)
Changed in livecd-rootfs (Ubuntu Xenial):
assignee: nobody → Philip Roche (philroche)
status: New → Won't Fix
Changed in livecd-rootfs (Ubuntu Bionic):
status: New → Won't Fix
Changed in livecd-rootfs (Ubuntu Focal):
status: New → Won't Fix
Changed in livecd-rootfs (Ubuntu Lunar):
status: New → Won't Fix
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.