]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix argument parsing for recently added parameters 1437/head
authorReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Sat, 18 Feb 2017 16:05:31 +0000 (17:05 +0100)
committerReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Sat, 18 Feb 2017 16:08:48 +0000 (17:08 +0100)
Signed-off-by: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
templates/lxc-fedora.in

index 5e93de90e166a364e495f3584b6bb8a817e0e198..776ea68d024a6cd503979ba297cc89f8ed8c3b00 100644 (file)
@@ -944,7 +944,7 @@ Template options:
       --fqdn             Fully qualified domain name (FQDN)
   -h, --help             Print this help text
       --mask-tmp         Prevent systemd from over-mounting /tmp with tmpfs.
-      --mirror=MIRROR    Fedora mirror to use during installation.
+  -M, --mirror=MIRROR    Fedora mirror to use during installation.
   -p, --path=PATH        Path to where the container will be created,
                          defaults to ${lxc_path}.
   -P, --packages=PKGS    Comma-separated list of additional RPM packages to
@@ -973,7 +973,7 @@ EOF
     return 0
 }
 
-options=$(getopt -o a:hp:n:cR:dP: -l help,path:,rootfs:,name:,clean,release:,arch:,debug,fqdn:,mask-tmp,mirror:,packages: -- "$@")
+options=$(getopt -o a:hp:n:cR:dP:M: -l help,path:,rootfs:,name:,clean,release:,arch:,debug,fqdn:,mask-tmp,mirror:,packages:,rsync -- "$@")
 # shellcheck disable=SC2181
 if [ $? -ne 0 ]; then
     usage
@@ -997,7 +997,7 @@ do
         -d|--debug)     debug=1;         shift 1 ;;
         --fqdn)         utsname="${2}";  shift 2 ;;
         --mask-tmp)     masktmp=1;       shift 1 ;;
-        --mirror)       mirror="${2}";   shift 2 ;;
+        -M|--mirror)    mirror="${2}";   shift 2 ;;
         -P|--packages)  packages="${2}"; shift 2 ;;
         -R|--release)   release="${2}";  shift 2 ;;
         --rsync)        rsync=1;         shift 1 ;;