Signed-off-by: Vladimir Serbinenko <phco...@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


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to