]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-busybox: Touch /etc/fstab in the container rootfs
authorBogdan Purcareata <bogdan.purcareata@nxp.com>
Tue, 22 Mar 2016 13:33:57 +0000 (13:33 +0000)
committerChristian Brauner <christian.brauner@mailbox.org>
Thu, 24 Mar 2016 06:09:15 +0000 (07:09 +0100)
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
templates/lxc-busybox.in

index c020e668b7f1bf7e876000e2e163e339407a262a..f547f9ee3913666db6026465fecfa41d20c1a722 100644 (file)
@@ -330,6 +330,9 @@ configure_busybox()
     # relink /sbin/init
     ln $rootfs/bin/busybox $rootfs/sbin/init
 
+    # /etc/fstab must exist for "mount -a"
+    touch $rootfs/etc/fstab
+
     # passwd exec must be setuid
     chmod +s $rootfs/bin/passwd
     touch $rootfs/etc/shadow