summaryrefslogtreecommitdiff
path: root/source/ap/lxc
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/lxc')
-rw-r--r--source/ap/lxc/lxc-slackware.in2
-rwxr-xr-xsource/ap/lxc/lxc.SlackBuild2
2 files changed, 3 insertions, 1 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
diff --git a/source/ap/lxc/lxc.SlackBuild b/source/ap/lxc/lxc.SlackBuild
index 5ac8cd87..1cd5c5e8 100755
--- a/source/ap/lxc/lxc.SlackBuild
+++ b/source/ap/lxc/lxc.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=lxc
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | rev | cut -f 2- -d -)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then