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