1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

Revert "Add EFI live boot support"

This commit is contained in:
Darren Shepherd
2016-10-10 15:23:15 -07:00
committed by GitHub
parent 94fd38c358
commit ddbedb9b31
5 changed files with 1 additions and 91 deletions

View File

@@ -41,21 +41,6 @@ while [ "$#" -gt 0 ]; do
--kvm)
KVM=1
;;
--efi)
# set where our EFI firmware binary is
EFIFIRMWARE="./build/OVMF.fd"
# create the command-line to pass to qemu
EFI="--bios $EFIFIRMWARE"
# if the firmware does not yet exist, download it
if [[ ! -e "$EFIFIRMWARE" ]]; then
echo "Downloading OVMF EFI firmware"
# because unzip does not support streaming from stdin...
curl --location http://downloads.sourceforge.net/project/edk2/OVMF/OVMF-X64-r15214.zip > ./build/ovmf.zip
unzip ./build/ovmf.zip -d ./build OVMF.fd
rm -f ./build/ovmf.zip
echo "Download OVMF EFI firmware complete"
fi
;;
--no-format)
FORMAT=0
;;
@@ -153,7 +138,6 @@ if [ "$QEMU" == "1" ]; then
${CPU} \
${machine["$ARCH"]} \
-m 2048 \
${EFI} \
${network["$ARCH"]} \
$(eval "${hd["$ARCH"]} ${HD}") \
${SECOND_DRIVE_ENABLE} \
@@ -176,7 +160,6 @@ if [ "$QEMU" == "1" ]; then
-kernel ${KERNEL} \
-initrd ${INITRD} \
-m 2048 \
${EFI} \
${network["$ARCH"]} \
$(eval "${hd["$ARCH"]} ${HD}") \
${SECOND_DRIVE_ENABLE} \