summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIzhar Firdaus <izhar@mitsuko.kagesenshi.org>2010-03-03 18:13:40 +0800
committerIzhar Firdaus <izhar@mitsuko.kagesenshi.org>2010-03-03 18:13:40 +0800
commitac5381b015def712fa025cfed215a4f397b224eb (patch)
tree2cb3e16ff7076d648c593799cd63637d03b1418b
parentd2a622002fac55280454d5c86ec079f3098f44b4 (diff)
downloadhack-patches-ac5381b015def712fa025cfed215a4f397b224eb.tar.gz
hack-patches-ac5381b015def712fa025cfed215a4f397b224eb.tar.xz
hack-patches-ac5381b015def712fa025cfed215a4f397b224eb.zip
script should automatically create /var/lib/lxc/rootfs if it doesnt exist
-rwxr-xr-xlxc-febootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/lxc-febootstrap b/lxc-febootstrap
index 715c779..996b47b 100755
--- a/lxc-febootstrap
+++ b/lxc-febootstrap
@@ -196,6 +196,9 @@ create() {
# make a local copy of the mini
echo -n "Copying rootfs ..."
+ if [ ! -e "/var/lib/lxc/rootfs" ];then
+ mkdir -p /var/lib/lxc/rootfs
+ fi
cp -a ${CACHE}/rootfs ${ROOTFS} && echo "Done." || exit
) 200> "/var/lock/subsys/lxc"
fi
@@ -319,7 +322,6 @@ if [ "$(id -u)" != "0" ]; then
fi
# Detect which executable we were run as, lxc-fedora or lxc-redhat
-DISTRO="fedora"
CACHE="/var/cache/lxc/${DISTRO}"
mkdir -p ${CACHE}