Comment 0 for bug 2052789

Revision history for this message
Philip Roche (philroche) wrote : AppArmor profiles missing in focal after hwe kernel 5.15.0-1051 release

After the kernel roll to linux-gcp-5.15 to version 5.15.0-1051.59_20.04.1 the public cloud team pre publication test were failing on our snap_preseed_optimized test which checks to ensure that snaps are preseeded correctly

This test checks the output of `snap debug seeding` to assert `seed-completion` is present and not empty.

``
❯ snap debug seeding
seeded: true
preseeded: true
image-preseeding: 39.367s
seed-completion: 1.335s
```

If `/var/lib/snapd/seed/seed.yaml` exists it also asserts that `preseeded` is present and not empty.

With the recent kernel update this test is failing which indicates a kernel feature mismatch between
the running kernel and the feature set hard-coded in livecd-rootfs for this image.
Boot will be slowed by ~200ms until this is resolved in livecd-rootfs.

This solution is to add a 5.15 apparmor configuration to the focal branch of livecd-rootfs

Related bugs LP: #2031943 and LP: #2045384

[ Impact ]

Boot will be slowed by ~200ms until this is resolved in livecd-rootfs

[ Test Plan ]

 * build any focal cloud image with HWE 5.15 kernel
 * boot
 * run `snap debug preseed`
 * assert the test described above passes

[ Where problems could occur ]

 * Similar patches already exist for later releases 6.2, 6.5 kernel etc. and have been used on other private customer kernels and all kernels released after 22.04, so there is already a good track record for this patchset and it shouldn't create any issues.

[ Other Info ]

 * This is a time-sensitive issue for a paying customer