OvmfPkg/build.sh: remove $ADD_QEMU_HDA

$ADD_QEMU_HDA was added because QEMU used to refuse to run without a
disk. Since newer versions run without any disks, remove it.

Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
This commit is contained in:
Rebecca Cran 2019-07-24 15:44:05 -06:00 committed by Jordan Justen
parent 28bc699240
commit 4634fd429e
No known key found for this signature in database
GPG Key ID: 37F99F68CAF992EB
1 changed files with 0 additions and 14 deletions

View File

@ -213,17 +213,6 @@ if [[ "$RUN_QEMU" == "yes" ]]; then
ENABLE_FLASH=yes
;;
esac
ADD_QEMU_HDA=yes
for arg in "$@"
do
case $arg in
-hd[a-d]|-fd[ab]|-cdrom)
ADD_QEMU_HDA=no
break
;;
esac
done
fi
#
@ -267,9 +256,6 @@ if [[ "$RUN_QEMU" == "yes" ]]; then
else
QEMU_COMMAND="$QEMU_COMMAND -L $QEMU_FIRMWARE_DIR"
fi
if [[ "$ADD_QEMU_HDA" == "yes" ]]; then
QEMU_COMMAND="$QEMU_COMMAND -hda fat:$BUILD_ROOT_ARCH"
fi
echo Running: $QEMU_COMMAND "$@"
$QEMU_COMMAND "$@"
exit $?