summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-11-05 14:39:00 +0000
committerNeil Williams <codehelp@debian.org>2015-11-05 14:39:00 +0000
commite5987ce7b617b36935aeea406145078981fc1dca (patch)
treee2170054cdb19bf2b2a22f86d0711368dfdc0645 /bin
parent534935d2d9a5b702c30ccf44ff5e1cbc4a902e65 (diff)
downloadvmdebootstrap-e5987ce7b617b36935aeea406145078981fc1dca.tar.gz
Add UEFI directory support to the qemu wrapper
Diffstat (limited to 'bin')
-rwxr-xr-xbin/qemu-wrapper.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/qemu-wrapper.sh b/bin/qemu-wrapper.sh
index 2e6eab4..901fd64 100755
--- a/bin/qemu-wrapper.sh
+++ b/bin/qemu-wrapper.sh
@@ -3,7 +3,7 @@
set -e
if [ -z "$1" ]; then
- echo "Usage: <imagefile> <arch>"
+ echo "Usage: <imagefile> <arch> [uefi_directory]"
echo "For x86_64, amd64 is also supported."
exit 1
fi
@@ -20,5 +20,9 @@ else
echo "For x86_64, amd64 is also supported."
exit 1
fi
+UEFI=""
+if [ -n "$3" ]; then
+ UEFI="-L $3"
+fi
-qemu-system-${ARCH} -m 1024 -enable-kvm -drive format=raw,file=./$1
+qemu-system-${ARCH} -m 1024 ${UEFI} -enable-kvm -drive format=raw,file=./$1