summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/files/lxc-busybox-Touch-etc-fstab-in-the-container-rootfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/lxc/files/lxc-busybox-Touch-etc-fstab-in-the-container-rootfs.patch')
-rw-r--r--recipes-containers/lxc/files/lxc-busybox-Touch-etc-fstab-in-the-container-rootfs.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/lxc-busybox-Touch-etc-fstab-in-the-container-rootfs.patch b/recipes-containers/lxc/files/lxc-busybox-Touch-etc-fstab-in-the-container-rootfs.patch
new file mode 100644
index 00000000..33862ddc
--- /dev/null
+++ b/recipes-containers/lxc/files/lxc-busybox-Touch-etc-fstab-in-the-container-rootfs.patch
@@ -0,0 +1,30 @@
1From 6ab1ca0375feeb00070f0c0f9186551b08b1ee5e Mon Sep 17 00:00:00 2001
2From: Bogdan Purcareata <bogdan.purcareata@nxp.com>
3Date: Tue, 22 Mar 2016 13:33:57 +0000
4Subject: [PATCH] lxc-busybox: Touch /etc/fstab in the container rootfs
5
6Upstream-status: Accepted
7[https://github.com/lxc/lxc/commit/6ab1ca0375feeb00070f0c0f9186551b08b1ee5e]
8
9Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
10---
11 templates/lxc-busybox.in | 3 +++
12 1 file changed, 3 insertions(+)
13
14diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
15index c020e66..f547f9e 100644
16--- a/templates/lxc-busybox.in
17+++ b/templates/lxc-busybox.in
18@@ -330,6 +330,9 @@ configure_busybox()
19 # relink /sbin/init
20 ln $rootfs/bin/busybox $rootfs/sbin/init
21
22+ # /etc/fstab must exist for "mount -a"
23+ touch $rootfs/etc/fstab
24+
25 # passwd exec must be setuid
26 chmod +s $rootfs/bin/passwd
27 touch $rootfs/etc/shadow
28--
291.9.1
30