aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2017-07-03 17:15:55 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2017-07-03 17:15:55 +0100
commitb260ceb1b687edeece3412e850034c5b664fc2f8 (patch)
treea68fa99ff74df0c666c9dd9affc228b6f53ff501
parent3b643b956b0fbd811a55b8bfc1c0ee19736cb539 (diff)
downloadvminstall-b260ceb1b687edeece3412e850034c5b664fc2f8.tar.gz
runefivm: Allow no networking at all
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rwxr-xr-xrunefivm.sh6
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"