]> git.proxmox.com Git - mirror_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>
Wed, 28 Jan 2015 11:47:15 +0000 (12:47 +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 fdc307aaf929a92f53a37f9d50430bf1228c597e..4696ce37e78e0ce33fe0ad16e0c05269c51fba63 100644 (file)
@@ -693,7 +693,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;;
@@ -827,7 +827,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 a1d1e7b05d0a28365f336d11bf0927a146327e87..499685f3b5919d87c2692134d38f3a4f8dc1a5cc 100644 (file)
@@ -1215,7 +1215,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;;
@@ -1354,7 +1354,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