Commit 5358f08c by Holger Amann Committed by Stéphane Graber

debian: Symlink /etc/mtab

/etc/mtab doesn’t exist after bootstrapping a debian container, and will be created as regular file after first start. That leads to at least two errors: - output of `mount` is wrong and get messed up the more often you start/stop the container - /dev/pts/ptmx has wrong permissions Signed-off-by: 's avatarHolger Amann <holger@sauspiel.de> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 66f47a86
......@@ -72,6 +72,10 @@ p6::ctrlaltdel:/sbin/init 6
p0::powerfail:/sbin/init 0
EOF
# symlink mtab
[ -e "$rootfs/etc/mtab" ] && rm $rootfs/etc/mtab
ln -s /proc/self/mounts $rootfs/etc/mtab
# disable selinux in debian
mkdir -p $rootfs/selinux
echo 0 > $rootfs/selinux/enforce
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment