From 71af94ba096bed96bdf3f6978ded93d14b586ed1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 12 Nov 2014 22:17:07 +0100 Subject: [PATCH] add --suite support --- vinst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 \ -- 2.39.5