diff options
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.patch | 30 |
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 @@ | |||
1 | From 6ab1ca0375feeb00070f0c0f9186551b08b1ee5e Mon Sep 17 00:00:00 2001 | ||
2 | From: Bogdan Purcareata <bogdan.purcareata@nxp.com> | ||
3 | Date: Tue, 22 Mar 2016 13:33:57 +0000 | ||
4 | Subject: [PATCH] lxc-busybox: Touch /etc/fstab in the container rootfs | ||
5 | |||
6 | Upstream-status: Accepted | ||
7 | [https://github.com/lxc/lxc/commit/6ab1ca0375feeb00070f0c0f9186551b08b1ee5e] | ||
8 | |||
9 | Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com> | ||
10 | --- | ||
11 | templates/lxc-busybox.in | 3 +++ | ||
12 | 1 file changed, 3 insertions(+) | ||
13 | |||
14 | diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in | ||
15 | index 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 | -- | ||
29 | 1.9.1 | ||
30 | |||