From: martin f. krafft Date: Wed, 12 Nov 2014 21:17:07 +0000 (+0100) Subject: add --suite support X-Git-Url: https://git.madduck.net/code/vinst.git/commitdiff_plain/71af94ba096bed96bdf3f6978ded93d14b586ed1?ds=sidebyside;hp=44c183155e8e208d4b381c63b92fcb910abc4c85 add --suite support --- diff --git a/vinst b/vinst index 2de250e..9eb0470 100755 --- a/vinst +++ b/vinst @@ -18,6 +18,14 @@ while [ -n "$1" ]; do (--debug) DEBUG=1 ;; + (-S|--suite) + shift + if [ -z "$1" ]; then + echo >&2 'E: --suite/-S needs suite argument' + exit 1 + fi + SUITE="$1" + ;; (-n|--name) shift if [ -z "$1" ]; then @@ -156,6 +164,7 @@ fi cat >&2 <<_eof hostname: $HOSTNAME arch: $ARCH + suite: $SUITE ram: $RAM MiB disk: $DISK GiB wipe: $WIPE @@ -199,8 +208,8 @@ virt-install --connect=$QEMU_URI \ --graphics=vnc \ --serial=pty \ --watchdog i6300esb,action=reset \ - --os-variant=debian$SUITE \ -l $BASEDIR/installer-amd64 \ + --os-variant=debianwheezy \ --initrd-inject=$BASEDIR/preseed/$SUITE/preseed.cfg \ --initrd-inject=$tmpdir/commands.tar \ --prompt --noautoconsole --autostart \