[lxc-devel] [PATCH] lxc-alpine: create /dev/zero

Natanael Copa ncopa at alpinelinux.org
Mon Aug 26 11:47:58 UTC 2013


Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
---
 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.3.4





More information about the lxc-devel mailing list