[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/9] grub-shell: Support Fedora arm-efi
From: |
Vladimir Serbinenko |
Subject: |
[PATCH 5/9] grub-shell: Support Fedora arm-efi |
Date: |
Wed, 11 Sep 2024 12:37:31 +0300 |
This needs 2 adjustments:
* No separate vars file
* Shutdown command is too chatty so we need to trim it.
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
tests/util/grub-shell.in | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
index 35ecc28dc..b7a7dff01 100644
--- a/tests/util/grub-shell.in
+++ b/tests/util/grub-shell.in
@@ -295,7 +295,11 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}"
in
else
pflash=/usr/share/AAVMF/AAVMF32.fd
pflash_code=/usr/share/AAVMF/AAVMF32_CODE.fd
- pflash_vars=/usr/share/AAVMF/AAVMF32_VARS.fd
+ if [ -f /usr/share/AAVMF/AAVMF32_VARS.fd ]; then
+ pflash_vars=/usr/share/AAVMF/AAVMF32_VARS.fd
+ else
+ pflash_vars=/usr/share/AAVMF/AAVMF_VARS.fd
+ fi
if [ -f "$pflash" ]; then
qemuopts="-drive
if=pflash,format=raw,unit=0,snapshot=on,file=$pflash $qemuopts"
elif [ -f "$pflash_code" ]; then
@@ -540,7 +544,7 @@ source "\$prefix/testcase.cfg"
# Stop serial output to suppress "ACPI shutdown failed" error.
EOF
# Attempt to switch to console on i386-ieee1275 causes "screen not found"
message
-if [ x"${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = xriscv64-efi ];
then
+if [ x"${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = xriscv64-efi ]
|| [ x"${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = xarm-efi ]; then
echo "echo $trim_tail" >>${cfgfile}
fi
if [ x$console != x ] && [
x"${grub_modinfo_target_cpu}-${grub_modinfo_platform}" != xi386-ieee1275 ]; then
--
2.39.2
- [PATCH 1/9] grub-shell: Support riscv64-efi, Vladimir Serbinenko, 2024/09/11
- [PATCH 2/9] grub-shell: Support Fedora path for ovmf32, Vladimir Serbinenko, 2024/09/11
- [PATCH 3/9] grub-shell: Update qemu name of the machine, Vladimir Serbinenko, 2024/09/11
- [PATCH 4/9] grub-shell: Temporarily use reboot on fuloong2e, Vladimir Serbinenko, 2024/09/11
- [PATCH 5/9] grub-shell: Support Fedora arm-efi,
Vladimir Serbinenko <=
- [PATCH 6/9] cmd_set_date: Ignore garbage line at shutdown, Vladimir Serbinenko, 2024/09/11
- [PATCH 7/9] partmap_test: Accept hd1 on arm-efi, Vladimir Serbinenko, 2024/09/11
- [PATCH 8/9] grub-shell: Ignore trailing garbage on loongarch64-efi, Vladimir Serbinenko, 2024/09/11
- [PATCH 9/9] grub-shell: Explicitly specify firmware for i386-ieee1275, Vladimir Serbinenko, 2024/09/11
- Re: [PATCH 1/9] grub-shell: Support riscv64-efi, Glenn Washburn, 2024/09/19