diff options
| author | Izhar Firdaus <izhar@mitsuko.kagesenshi.org> | 2010-03-03 18:13:40 +0800 |
|---|---|---|
| committer | Izhar Firdaus <izhar@mitsuko.kagesenshi.org> | 2010-03-03 18:13:40 +0800 |
| commit | ac5381b015def712fa025cfed215a4f397b224eb (patch) | |
| tree | 2cb3e16ff7076d648c593799cd63637d03b1418b | |
| parent | d2a622002fac55280454d5c86ec079f3098f44b4 (diff) | |
| download | hack-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-x | lxc-febootstrap | 4 |
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} |
