mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
vm_image_util: ensure UEFI firmware is installed before reading it
This commit is contained in:
parent
44e86ecdaa
commit
9a468bf37d
@ -653,6 +653,8 @@ _write_qemu_uefi_conf() {
|
|||||||
cp "/usr/share/edk2-ovmf/OVMF_VARS.fd" "$(_dst_dir)/${flash_rw}"
|
cp "/usr/share/edk2-ovmf/OVMF_VARS.fd" "$(_dst_dir)/${flash_rw}"
|
||||||
;;
|
;;
|
||||||
arm64-usr)
|
arm64-usr)
|
||||||
|
info "Updating edk2-armvirt in /build/${BOARD}"
|
||||||
|
emerge-${BOARD} --nodeps --select -qugKN sys-firmware/edk2-armvirt
|
||||||
# this bit of magic comes from http://tech.donghao.org/2014/12/18/running-fedora-21-on-qemu-system-aarch64/
|
# this bit of magic comes from http://tech.donghao.org/2014/12/18/running-fedora-21-on-qemu-system-aarch64/
|
||||||
cat "/build/${BOARD}/usr/share/edk2-armvirt/QEMU_EFI.fd" /dev/zero | \
|
cat "/build/${BOARD}/usr/share/edk2-armvirt/QEMU_EFI.fd" /dev/zero | \
|
||||||
dd iflag=fullblock bs=1M count=64 of="$(_dst_dir)/${flash_ro}"
|
dd iflag=fullblock bs=1M count=64 of="$(_dst_dir)/${flash_ro}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user