diff options
-rwxr-xr-x | testboot.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testboot.sh b/testboot.sh index 57b8a6a..d90cda8 100755 --- a/testboot.sh +++ b/testboot.sh @@ -14,8 +14,9 @@ graphics="vnc" dracut_opts="--add anaconda --omit plymouth" usecd="true" +usenet="true" ARGS=$(getopt --options "dcstm:" \ - --longoptions "fromcd,nocd,virtconsole,serialconsole,text,dualnic,ram:" \ + --longoptions "fromcd,nocd,virtconsole,serialconsole,text,dualnic,nonic,ram:"\ --name testboot.sh \ -- "$@") || exit 1 eval set -- "$ARGS" @@ -23,6 +24,7 @@ while :; do case "$1" in -d|--fromcd) fromcd="true"; shift;; --nocd) usecd=""; shift;; --dualnic) dualnic="yes"; shift;; + --nonic) dualnic=""; usenet=""; nonet="on"; shift;; -c|--virtconsole) console="--console pty"; shift;; -s|--serialconsole) console="--serial pty"; shift;; -t|--text) graphics="none"; shift;; @@ -160,7 +162,8 @@ virsh undefine testboot &>/dev/null virt-install --name testboot --ram $ram --graphics $graphics \ --os-type linux --os-variant fedora16 $console \ --disk $disk,size=10 --disk $disk2,size=10 \ - --network network=default,model=virtio,mac=52:54:00:03:31:38 \ + ${nonet:+--nonetworks} \ + ${usenet:+--network network=default,model=virtio,mac=52:54:00:03:31:38} \ ${dualnic:+--network network=default,model=virtio,mac=52:54:00:03:31:39} \ ${usecd:+--disk $cdrom,device=cdrom} \ ${bootarg:+--boot "$bootarg"} |