diff options
author | Neil Williams <codehelp@debian.org> | 2015-11-05 14:39:00 +0000 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-11-05 14:39:00 +0000 |
commit | e5987ce7b617b36935aeea406145078981fc1dca (patch) | |
tree | e2170054cdb19bf2b2a22f86d0711368dfdc0645 /bin | |
parent | 534935d2d9a5b702c30ccf44ff5e1cbc4a902e65 (diff) | |
download | vmdebootstrap-e5987ce7b617b36935aeea406145078981fc1dca.tar.gz |
Add UEFI directory support to the qemu wrapper
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/qemu-wrapper.sh | 8 |
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 |