Just as information to put here. A change to overlayroot like below
actually does make the /proc/<pid>/mountinfo table in line with what
snapd is expecting. I've verified that such an initramfs does have
snaps seemingly working.
--- /usr/share/initramfs-tools/scripts/init-bottom/overlayroot.dist
2018-10-12 15:40:11.248597288 +0000
+++ /usr/share/initramfs-tools/scripts/init-bottom/overlayroot 2018-10-12
15:43:42.593948397 +0000
@@ -686,7 +686,9 @@
workdir="$_RET"
mount_opts="${mount_opts},workdir=$workdir"
fi
- clean_path "${mount_opts} overlayroot ${ROOTMNT}"
+ # root_rw is /media/root-rw, and its value here is passed as
+ # the source (fs_spec) to 'mount'.
+ clean_path "${mount_opts} $root_rw ${ROOTMNT}"
mount_opts="$_RET"
;;
aufs)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797218
Title:
snap confine fails on top of overlayroot
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1797218/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs