grub-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]