[Merge] ~rcj/livecd-rootfs/+git/livecd-rootfs:feature/snap-preseed into livecd-rootfs:ubuntu/master

Robert C Jennings robert.jennings at canonical.com
Sat Jul 18 22:02:25 UTC 2020


Robert C Jennings has proposed merging ~rcj/livecd-rootfs/+git/livecd-rootfs:feature/snap-preseed into livecd-rootfs:ubuntu/master.

Commit message:
Avoid rbind /sys for chroot snap pre-seeding (cgroups fail to unmount)

Builds in LP with the Xenial kernel were happy with the recursive mount of
/sys inside the chroot while performing snap-preseeding but autopkgtests
with the groovy kernel failed.  With the groovy kernel the build was
unable to unmount sys/kernel/slab/*/cgroup/* (Operation not permitted).

This patch mounts /sys and /sys/kernel/security in the chroot in the
same way we've added for binary hooks.  This provides the paths under
/sys needed for snap-preseed while avoiding issues unmounting other
paths.


Requested reviews:
  Ubuntu Core Development Team (ubuntu-core-dev)

For more details, see:
https://code.launchpad.net/~rcj/livecd-rootfs/+git/livecd-rootfs/+merge/387627
-- 
Your team Ubuntu Core Development Team is requested to review the proposed merge of ~rcj/livecd-rootfs/+git/livecd-rootfs:feature/snap-preseed into livecd-rootfs:ubuntu/master.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 1030 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20200718/e4d83648/attachment.diff>


More information about the Ubuntu-reviews mailing list