Skip to contentSkip to conversation

Booting to local disk from UEFI_PXE booted grub

DISCUSSION Holger Goetz 3 participants 7 messages Nov 18, 2013 – Nov 20, 2013

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm looking for the equivalent of "Local boot / boot from HD" for BIOS mode when running in grub stared in UEFI-PXE.

With (U)EFI it's no longer easy to say, "boot from HD" as there could be multiple bootloaders present on the EFI System Partition (ESP). Basically only the UEFI boot system knows which one to boot from the "Bootorder" or "Bootnext" EFI Variable(s). Any approach ? Or is there a way to access these EFI variables from the grub config file?

Thanks,
Holger

#1 lore raw
Quoted 9 lines · Holger Goetz

Hi all,

I'm looking for the equivalent of "Local boot / boot from HD" for BIOS mode when running in grub stared in UEFI-PXE.

With (U)EFI it's no longer easy to say, "boot from HD" as there could be multiple bootloaders present on the EFI System Partition (ESP). Basically only the UEFI boot system knows which one to boot from the "Bootorder" or "Bootnext" EFI Variable(s).

If you exit grub EFI firmware should continue with next boot menu entry. Would it be OK for you?

Quoted 11 lines

Any approach ? Or is there a way to access these EFI variables from the grub config file?

Thanks,
Holger

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw
Quoted 6 lines · Andrey Borzenkov
Quoted 5 lines · Holger Goetz

Hi all,

I'm looking for the equivalent of "Local boot / boot from HD" for BIOS mode when running in grub stared in UEFI-PXE.

Quoted 6 lines
Quoted 4 lines

With (U)EFI it's no longer easy to say, "boot from HD" as there could be multiple bootloaders present on the EFI System Partition (ESP). Basically only the UEFI boot system knows which one to boot from the "Bootorder" or "Bootnext" EFI Variable(s).

If you exit grub EFI firmware should continue with next boot menu entry. Would it be OK for you?

Hi Andrey,

yes, thanks, i figured in the meantime that it looks like the is the best option to do.

Have dropped ideas to write a module that adds a command to read (U)EFI environment variables like "BootOrder". Although reading (U)EFI EVs might be handy in other use cases, and base functionality is already available, just not as a command.

Thanks,
Holger

Quoted 17 lines
Quoted 11 lines

Any approach ? Or is there a way to access these EFI variables from the grub config file?

Thanks,
Holger

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw
In reply to Holger Goetz
Quoted 5 lines · Holger Goetz

Hi all,

I'm looking for the equivalent of "Local boot / boot from HD" for BIOS mode when running in grub stared in UEFI-PXE.

Quoted 7 lines

With (U)EFI it's no longer easy to say, "boot from HD" as there could be multiple bootloaders present on the EFI System Partition (ESP). Basically only the UEFI boot system knows which one to boot from the "Bootorder" or "Bootnext" EFI Variable(s).
Any approach ? Or is there a way to access these EFI variables from the grub config file?

I would just show menu entries for every available /EFI/*/*.EFI. This woud add more flexibility.

Quoted 9 lines

Thanks,
Holger

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#4 lore raw
Quoted 13 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 5 lines · Holger Goetz

Hi all,

I'm looking for the equivalent of "Local boot / boot from HD" for BIOS mode when running in grub stared in UEFI-PXE.

Quoted 7 lines

With (U)EFI it's no longer easy to say, "boot from HD" as there could be multiple bootloaders present on the EFI System Partition (ESP). Basically only the UEFI boot system knows which one to boot from the "Bootorder" or "Bootnext" EFI Variable(s).
Any approach ? Or is there a way to access these EFI variables from the grub config file?

Quoted 2 lines

I would just show menu entries for every available /EFI/*/*.EFI. This woud add more flexibility.

Hi Vladimir,

Is there easy way of doing this?
That was one idea in mind which could be done based on the info from the (U)EFI EVs to be displayed. Or it means to (1) search for the files and (2) dynamically puzzle together a (sub) menu i guess.

Thanks,
Holger

#5 lore raw
Quoted 14 lines · Holger Goetz
Quoted 13 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 12 lines · Holger Goetz

Hi all,

I'm looking for the equivalent of "Local boot / boot from HD" for BIOS mode when running in grub stared in UEFI-PXE.

With (U)EFI it's no longer easy to say, "boot from HD" as there could be multiple bootloaders present on the EFI System Partition (ESP). Basically only the UEFI boot system knows which one to boot from the "Bootorder" or "Bootnext" EFI Variable(s).
Any approach ? Or is there a way to access these EFI variables from the grub config file?

Quoted 9 lines
Quoted 2 lines

I would just show menu entries for every available /EFI/*/*.EFI. This woud add more flexibility.

Hi Vladimir,

Is there easy way of doing this?
That was one idea in mind which could be done based on the info from the (U)EFI EVs to be displayed. Or it means to (1) search for the files and
(2) dynamically puzzle together a (sub) menu i guess.

Have a look at autoiso.cfg and osdetect.cfg for how to find files.

Quoted 3 lines

Thanks,
Holger

#6 lore raw
Quoted 17 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 16 lines · Holger Goetz
Quoted 15 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 5 lines · Holger Goetz

Hi all,

I'm looking for the equivalent of "Local boot / boot from HD" for BIOS mode when running in grub stared in UEFI-PXE.

Quoted 7 lines

With (U)EFI it's no longer easy to say, "boot from HD" as there could be multiple bootloaders present on the EFI System Partition (ESP). Basically only the UEFI boot system knows which one to boot from the "Bootorder" or "Bootnext" EFI Variable(s).
Any approach ? Or is there a way to access these EFI variables from the grub config file?

I would just show menu entries for every available /EFI/*/*.EFI. This woud add more flexibility.

Quoted 8 lines
Quoted 7 lines

Hi Vladimir,

Is there easy way of doing this?
That was one idea in mind which could be done based on the info from the (U)EFI EVs to be displayed. Or it means to (1) search for the files and
(2) dynamically puzzle together a (sub) menu i guess.

Have a look at autoiso.cfg and osdetect.cfg for how to find files.

Yes - thanks. Checked that - it could be a way.

The drawback is that it basically bypasses the (U)EFI bootsystem w/ the bootorder and the labels stored w/ each bootloader entry. By retrieving the (U)EFI EVs (1) the proper sequence and (2) the proper labeling could be represented in the menu entries as well.

eg. in the default path you could find /efi//boot/bootx64.efi which could be a microsoft windows boot loader OR a renamed grub.efi ... clearer when it's a non default path like /efi/SuSE/elilo.efi or /efi/redhat/grub.efi. But you still would guess on the OS name SLES11sp3 or sp5? Having the info from the (U)EFI EVs this would be clear.

Thanks,
Holger

Quoted 10 lines
Quoted 3 lines

Thanks,
Holger

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel