grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 9/9] grub-shell: Explicitly specify firmware for i386-ieee1275


From: Vladimir Serbinenko
Subject: [PATCH 9/9] grub-shell: Explicitly specify firmware for i386-ieee1275
Date: Wed, 11 Sep 2024 12:37:35 +0300

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
 tests/util/grub-shell.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
index 4b0900a32..de1eba83e 100644
--- a/tests/util/grub-shell.in
+++ b/tests/util/grub-shell.in
@@ -165,6 +165,12 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" 
in
        console=console
        trim=1
        disk="hdb "
+       if ! [ -f ${srcdir}/ofwx86.bin ]; then
+           echo "Firmware not found, please install an appropriately named 
copy in the source directory." >&2
+           exit 1
+       fi
+       cp ${srcdir}/ofwx86.bin "${work_directory}/ofwx86.bin"
+       qemuopts="-bios ${work_directory}/ofwx86.bin -vga cirrus $qemuopts"
        ;;
     i386-qemu)
        boot=qemu
-- 
2.39.2




reply via email to

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