help-grub
[Top][All Lists]
Advanced

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

Re: Handle errors when booting


From: Goh Lip
Subject: Re: Handle errors when booting
Date: Tue, 30 Jan 2024 11:24:16 +0800
User-agent: Mozilla Thunderbird



On 29/01/2024 19:14, Mathias Radtke wrote:
Hi,

I currently have a little headache with an issue.
I have a device that gets the following part of grub.cfg


     search --no-floppy --file --set=bootable_efi 
/EFI/MICROSOFT/BOOT/BOOTMGFW.EFI

     if [ -n "${bootable_efi}" ]; then

         menuentry "Local Disk" --class unknown {

             set root="${bootable_efi}"

             chainloader /EFI/MICROSOFT/BOOT/BOOTMGFW.EFI

             boot

         }

This leads to an error "error: loader/efi/chainloader.c:733not a valid root 
device."
Is there any way to kind of work around that error and run an "exit" command if 
an error occours?




At grub prompt (grub>) print output of

search -f /efi/microsoft/boot/bootmgfw.efi
echo $grub_platform






reply via email to

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