]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-busybox: don't copy temp mounts into mtab
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 22 Oct 2013 16:34:46 +0000 (11:34 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 22 Oct 2013 16:52:14 +0000 (11:52 -0500)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-busybox.in

index cbdaaf3ccba1f6adfbbd2b5f345abc2f334cba36..29dc36d60f7800441c34b53fbec4c73b60c36150 100644 (file)
@@ -196,7 +196,7 @@ configure_busybox()
     cat <<EOF >$CHPASSWD_FILE
 echo "setting root password to \"root\""
 
-mount --bind /lib $rootfs/lib
+mount -n --bind /lib $rootfs/lib
 if [ \$? -ne 0 ]; then
     echo "Failed bind-mounting /lib at $rootfs/lib"
     exit 1