]> git.ipfire.org Git - thirdparty/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)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:00:07 +0000 (18:00 -0500)
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
templates/lxc-busybox.in

index 3cfa9586a1ec635abdb3a7d07bc122f0915997c3..f432ddca0a38d53bfafb8193a910b2226bea946a 100644 (file)
@@ -205,6 +205,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