diff options
Diffstat (limited to 'source/ap/lxc/lxc-slackware.in')
-rw-r--r-- | source/ap/lxc/lxc-slackware.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/ap/lxc/lxc-slackware.in b/source/ap/lxc/lxc-slackware.in index 53e5e2b1..c49366ac 100644 --- a/source/ap/lxc/lxc-slackware.in +++ b/source/ap/lxc/lxc-slackware.in @@ -90,6 +90,8 @@ cp $rootfs/etc/HOSTNAME $rootfs/etc/hostname # http://www.vislab.uq.edu.au/howto/lxc/MAKEDEV.sh DEV=$rootfs/dev mkdir -p ${DEV} +# Make sure ${DEV}/null isn't accidentally a file by deleting it first: +rm -f ${DEV}/null mknod -m 666 ${DEV}/null c 1 3 mknod -m 666 ${DEV}/zero c 1 5 mknod -m 666 ${DEV}/random c 1 8 |