diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-07-04 14:19:36 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-07-04 14:19:36 +0100 |
commit | 4cf6019c13fbd9a8b4666f9e413fb9866e15a6bd (patch) | |
tree | 9c466687f3effedd599c0688c1d2442db86a3d60 | |
parent | 415d7e341e0ec3c0ac26b5e96e72826c0a8cd367 (diff) | |
download | vminstall-4cf6019c13fbd9a8b4666f9e413fb9866e15a6bd.tar.gz |
runefivm: Allow no EFI variables to be provided
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rwxr-xr-x | runefivm.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/runefivm.sh b/runefivm.sh index f4085cd..9f876e4 100755 --- a/runefivm.sh +++ b/runefivm.sh @@ -1,7 +1,7 @@ #!/bin/bash efi=${EFI-/usr/share/AAVMF/AAVMF_CODE.fd} -efivar=${EFIVAR-/home/maz/disk-images/stretch-arm64-efi-vars.fd} +efivar=${EFIVAR-none} disk=${DISK-none} bus=${BUS-pci} netif=${NETIF} @@ -29,6 +29,10 @@ if [ $qversmaj -eq 2 -a $qversmin -ge 7 ]; then fi fi +if [ $efivar != none ]; then + efivarpflash="-drive if=pflash,format=raw,file=$efivar" +fi + if [ "$cdrom" != nocdimage ]; then cddev="-drive file=$cdrom,id=cdrom,if=none,media=cdrom \ -device virtio-scsi-$bus$virtio \ @@ -82,8 +86,7 @@ fi args=" -m $ram -smp $cpus -cpu host,aarch64=$sf -machine virt,accel=kvm,gic_version=$gic \ -nographic \ - -drive if=pflash,format=raw,readonly,file=$efi \ - -drive if=pflash,format=raw,file=$efivar \ + -drive if=pflash,format=raw,readonly,file=$efi $efivarpflash \ $netdev \ $dskdev \ $cddev \ |