aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxc/0001-lxc-alpine-create-dev-zero.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-28 12:08:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-28 12:09:28 +0000
commit65771cabd455123fc6fee135fe2e9c0346e91295 (patch)
treec89f347ef74bff01885a58da94f0ba322a7cc855 /main/lxc/0001-lxc-alpine-create-dev-zero.patch
parent2bee224449198d7771304610a2b2a58cb4685613 (diff)
downloadaports-65771cabd455123fc6fee135fe2e9c0346e91295.tar.bz2
aports-65771cabd455123fc6fee135fe2e9c0346e91295.tar.xz
main/lxc: fix /dev/zero on container create
ref #2226
Diffstat (limited to 'main/lxc/0001-lxc-alpine-create-dev-zero.patch')
-rw-r--r--main/lxc/0001-lxc-alpine-create-dev-zero.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/lxc/0001-lxc-alpine-create-dev-zero.patch b/main/lxc/0001-lxc-alpine-create-dev-zero.patch
new file mode 100644
index 0000000000..b420496563
--- /dev/null
+++ b/main/lxc/0001-lxc-alpine-create-dev-zero.patch
@@ -0,0 +1,26 @@
+From 48c63f8d035045af1103b677b5ec577aec59a5b5 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 26 Aug 2013 13:47:58 +0200
+Subject: [PATCH] lxc-alpine: create /dev/zero
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
+---
+ templates/lxc-alpine.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
+index ce7226f..2ab10bb 100644
+--- a/templates/lxc-alpine.in
++++ b/templates/lxc-alpine.in
+@@ -126,6 +126,7 @@ EOF
+ echo "Setting up device nodes"
+ mkdir -p -m 755 "$rootfs/dev/pts"
+ mkdir -p -m 1777 "$rootfs/dev/shm"
++ mknod -m 666 "$rootfs/dev/zero" c 1 5
+ mknod -m 666 "$rootfs/dev/full" c 1 7
+ mknod -m 666 "$rootfs/dev/random" c 1 8
+ mknod -m 666 "$rootfs/dev/urandom" c 1 9
+--
+1.8.4
+