summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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