diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-07-03 17:15:55 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-07-03 17:15:55 +0100 |
commit | b260ceb1b687edeece3412e850034c5b664fc2f8 (patch) | |
tree | a68fa99ff74df0c666c9dd9affc228b6f53ff501 | |
parent | 3b643b956b0fbd811a55b8bfc1c0ee19736cb539 (diff) | |
download | vminstall-b260ceb1b687edeece3412e850034c5b664fc2f8.tar.gz |
runefivm: Allow no networking at all
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rwxr-xr-x | runefivm.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runefivm.sh b/runefivm.sh index 2c833cd..826d688 100755 --- a/runefivm.sh +++ b/runefivm.sh @@ -35,7 +35,11 @@ if [ "$cdrom" != nocdimage ]; then -device scsi-cd,drive=cdrom" fi -if [ -z "$netif" -o $bus != pci ]; then +if [ "$netif" == none ]; then + + netdev="-net none" + +elif [ -z "$netif" -o $bus != pci ]; then netdev="-netdev user,id=hostnet0 -device virtio-net-$bus$virtio,netdev=hostnet0" |