diff options
author | InformatiQ <rhanna@informatiq.org> | 2011-08-31 00:20:09 +0200 |
---|---|---|
committer | Daniel Lezcano <dlezcano@fr.ibm.com> | 2011-08-31 00:20:09 +0200 |
commit | 8534a83e9478ed5c74255341c1b204eec0a585b7 (patch) | |
tree | 864d44794ffd60f30ed3ee99a39ffeb1ffda445a /src | |
parent | * allow cloning of non-snapshot lvm devices (diff) | |
download | lxc-8534a83e9478ed5c74255341c1b204eec0a585b7.tar.gz lxc-8534a83e9478ed5c74255341c1b204eec0a585b7.tar.bz2 lxc-8534a83e9478ed5c74255341c1b204eec0a585b7.zip |
*add the new opts to help() *set container_running=false
Signed-off-by: InformatiQ <rhanna@informatiq.org>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/lxc/lxc-clone.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lxc/lxc-clone.in b/src/lxc/lxc-clone.in index cd513a5..e52082d 100644 --- a/src/lxc/lxc-clone.in +++ b/src/lxc/lxc-clone.in @@ -36,8 +36,8 @@ help() { echo "-s : make the new rootfs a snapshot of the original" echo "fssize : size if creating a new fs. By default, 2G" echo "vgname : lvm volume group name, lxc by default" - echo "lvprefix" : lvm volume name prefix, none by default, e.g. --lvprefix=lxc_ then new lxc lv name will be lxc_newname" - echo "fstype" : new container file system type, ext3 by default (only works for non-snapshot lvm)" + echo "lvprefix : lvm volume name prefix, none by default, e.g. --lvprefix=lxc_ then new lxc lv name will be lxc_newname" + echo "fstype : new container file system type, ext3 by default (only works for non-snapshot lvm)" } shortoptions='ho:n:sL:v:p:t:' @@ -174,6 +174,8 @@ mounted=0 lxc-info -s -n $lxc_orig|grep RUNNING >/dev/null 2>&1 if [ $? -ne 0 ]; then container_running=True +else + container_running=False fi sed -i '/lxc.rootfs/d' $lxc_path/$lxc_new/config oldroot=`grep lxc.rootfs $lxc_path/$lxc_orig/config | awk -F= '{ print $2 '}` |