Add support for AArch64/ARM64 EFI architecture (#1757)

* Add AArch64/ARM64 EFI boot support (for QEMU and some boards)
* Allow GRUB to load cmdline.txt-like
* Enable qcow2/vmdk disk images

Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
Mark Dietzer
2022-02-23 01:42:02 -08:00
committed by GitHub
parent 81b3bc8787
commit 0f4016c180
13 changed files with 331 additions and 17 deletions

View File

@@ -15,6 +15,18 @@ if [ -e /usr/sbin/fw_setenv ]; then
echo "[INFO] machine-id is okay"
fi
###
# GRUB
elif [ -e /usr/bin/grub-editenv ]; then
GRUBENV_FILE="$(grep '^grubenv=' < /etc/rauc/system.conf | cut -d= -f2)"
# machine-id
if [ "$(/usr/bin/grub-editenv "$GRUBENV_FILE" list | grep '^MACHINE_ID=' | cut -d= -f2)" != "${MACHINE_ID}" ]; then
echo "[INFO] set machine-id to ${MACHINE_ID}"
/usr/bin/grub-editenv "$GRUBENV_FILE" set "MACHINE_ID=${MACHINE_ID}"
else
echo "[INFO] machine-id is okay"
fi
###
# Barebox
else