X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=cmdlineopts.clp;h=f56559816633947f389a14b45ce606435af4327a;hp=a89c98520a0a801668c28e85bb63915ee9790fdb;hb=960e54dbc6f4c1b446e1df444b1b71275ee30b5e;hpb=1081c44c4f6368490481c4c5b48281f3846cbed1 diff --git a/cmdlineopts.clp b/cmdlineopts.clp index a89c985..f565598 100644 --- a/cmdlineopts.clp +++ b/cmdlineopts.clp @@ -12,7 +12,7 @@ # should be handled in the main script, where it belongs. ################################################################################ -CMDLINE_OPTS=mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,pre-scripts:,debconf:,vmfile,vmsize:,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,arch:,insecure,verbose,help,version,force,debug +CMDLINE_OPTS=mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,pre-scripts:,debconf:,vm,vmfile,vmsize:,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,arch:,insecure,verbose,help,version,force,debug _opt_temp=`getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long \ $CMDLINE_OPTS -- "$@"` @@ -38,10 +38,13 @@ while :; do --target|-t) # Target partition (/dev/...) or directory shift; _opt_target="$1" ;; - --vmfile) # Virtual machine file + --vm) # Virtual machine image (no file) + _opt_vm="T" + ;; + --vmfile) # Virtual machine file _opt_vmfile="T" ;; - --vmsize) # size of Virtual machine file + --vmsize) # size of Virtual machine file shift; _opt_vmsize="$1" ;; --mntpoint|-p) # Mountpoint used for mounting the target system