[lxc-devel] [PATCH] lxc-busybox: Touch /etc/fstab in the container rootfs
Bogdan Purcareata
bogdan.purcareata at nxp.com
Tue Mar 22 13:33:57 UTC 2016
Signed-off-by: Bogdan Purcareata <bogdan.purcareata at nxp.com>
---
templates/lxc-busybox.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
index c020e66..f547f9e 100644
--- a/templates/lxc-busybox.in
+++ b/templates/lxc-busybox.in
@@ -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
--
1.9.1
More information about the lxc-devel
mailing list