Commit c5cfcff1 by Stéphane Graber

lxc-{centos|fedora}: Respect --rootfs

parent 191b612f
...@@ -689,7 +689,7 @@ do ...@@ -689,7 +689,7 @@ do
case "$1" in case "$1" in
-h|--help) usage $0 && exit 0;; -h|--help) usage $0 && exit 0;;
-p|--path) path=$2; shift 2;; -p|--path) path=$2; shift 2;;
--rootfs) rootfs=$2; shift 2;; --rootfs) rootfs_path=$2; shift 2;;
-n|--name) name=$2; shift 2;; -n|--name) name=$2; shift 2;;
-c|--clean) clean=1; shift 1;; -c|--clean) clean=1; shift 1;;
-R|--release) release=$2; shift 2;; -R|--release) release=$2; shift 2;;
...@@ -837,7 +837,6 @@ if [ "$(id -u)" != "0" ]; then ...@@ -837,7 +837,6 @@ if [ "$(id -u)" != "0" ]; then
exit 1 exit 1
fi fi
if [ -z "$rootfs_path" ]; then if [ -z "$rootfs_path" ]; then
rootfs_path=$path/rootfs rootfs_path=$path/rootfs
# check for 'lxc.rootfs' passed in through default config by lxc-create # check for 'lxc.rootfs' passed in through default config by lxc-create
......
...@@ -1216,7 +1216,7 @@ do ...@@ -1216,7 +1216,7 @@ do
case "$1" in case "$1" in
-h|--help) usage $0 && exit 0;; -h|--help) usage $0 && exit 0;;
-p|--path) path=$2; shift 2;; -p|--path) path=$2; shift 2;;
--rootfs) rootfs=$2; shift 2;; --rootfs) rootfs_path=$2; shift 2;;
-n|--name) name=$2; shift 2;; -n|--name) name=$2; shift 2;;
-c|--clean) clean=1; shift 1;; -c|--clean) clean=1; shift 1;;
-R|--release) release=$2; shift 2;; -R|--release) release=$2; shift 2;;
...@@ -1363,7 +1363,6 @@ if [ "$(id -u)" != "0" ]; then ...@@ -1363,7 +1363,6 @@ if [ "$(id -u)" != "0" ]; then
exit 1 exit 1
fi fi
if [ -z "$rootfs_path" ]; then if [ -z "$rootfs_path" ]; then
rootfs_path=$path/rootfs rootfs_path=$path/rootfs
# check for 'lxc.rootfs' passed in through default config by lxc-create # check for 'lxc.rootfs' passed in through default config by lxc-create
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment