]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-{centos|fedora}: Respect --rootfs
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 28 Jan 2015 08:47:44 +0000 (09:47 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Jan 2015 09:09:16 +0000 (10:09 +0100)
Close #406

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-centos.in
templates/lxc-fedora.in

index 2902acfaabad0f50fc042891b3501c8494e2a5d3..d809f3f82fbc633bbfd5b1f6be9ae161f0f3c22f 100644 (file)
@@ -689,7 +689,7 @@ do
     case "$1" in
         -h|--help)      usage $0 && exit 0;;
         -p|--path)      path=$2; shift 2;;
-        --rootfs)       rootfs=$2; shift 2;;
+        --rootfs)       rootfs_path=$2; shift 2;;
         -n|--name)      name=$2; shift 2;;
         -c|--clean)     clean=1; shift 1;;
         -R|--release)   release=$2; shift 2;;
@@ -837,7 +837,6 @@ if [ "$(id -u)" != "0" ]; then
     exit 1
 fi
 
-
 if [ -z "$rootfs_path" ]; then
     rootfs_path=$path/rootfs
     # check for 'lxc.rootfs' passed in through default config by lxc-create
index 4a4d2ded97e2ec077368474cc36a107031fe2d0f..d800a2c3558a766198587bac5cc30b7ee97a30d4 100644 (file)
@@ -1216,7 +1216,7 @@ do
     case "$1" in
         -h|--help)      usage $0 && exit 0;;
         -p|--path)      path=$2; shift 2;;
-        --rootfs)       rootfs=$2; shift 2;;
+        --rootfs)       rootfs_path=$2; shift 2;;
         -n|--name)      name=$2; shift 2;;
         -c|--clean)     clean=1; shift 1;;
         -R|--release)   release=$2; shift 2;;
@@ -1363,7 +1363,6 @@ if [ "$(id -u)" != "0" ]; then
     exit 1
 fi
 
-
 if [ -z "$rootfs_path" ]; then
     rootfs_path=$path/rootfs
     # check for 'lxc.rootfs' passed in through default config by lxc-create