• Re: [SUMMARY] UEFI multiboot

    From Felix Miata@21:1/5 to All on Fri Aug 23 06:50:01 2024
    Max Nikulin composed on 2024-08-23 10:09 (UTC+0700):

    Felix Miata wrote:

    That is written by any process that
    reads GRUB_DISTRIBUTOR= to determine where to do its writing on the ESP.

    To avoid confusion of those who may notice this thread in search engine results:

    In Debian GRUB_DISTRIBUTOR value is *not* passed to "grub-install --bootloader-id" by postinst package scripts: <https://sources.debian.org/src/grub2/2.12-5/debian/postinst.in/?hl=723#L723> <https://sources.debian.org/src/shim-signed/1.44/debian/shim-signed.postinst/?hl=64#L64>

    Notice
    case $bootloader_id in
    kubuntu) bootloader_id=ubuntu ;;
    esac

    that was added to prevent a secure boot issue.

    Behavior of SUSE may be different.

    I believe, a robust way would be to add grub-install option that reports
    path withing EFI partition configured at compile time, so heuristics
    based on GRUB_DISTRIBUTOR from /etc/default/grub would not confuse users.
    I don't know what vexing secure boot might introduce, but without it, GRUB_DISTRIBUTOR= was used by grub-install in Trixie here to produce
    results I expected:

    # inxi -S
    System:
    Host: msi85 Kernel: 6.9.12-amd64 arch: x86_64 bits: 64
    Console: pty pts/0 Distro: Debian GNU/Linux trixie/sid
    # grep TOR /etc/default/grub
    GRUB_DISTRIBUTOR="debian13"
    # efibootmgr | egrep 'suse|debian|rder'
    BootOrder: 0000,0004,0005,0003,0001,0002
    Boot0000* opensusetw HD(1,GPT,64c8...8745,0x800,0xa0000)/File(\EFI\OPENSUSETW\GRUBX64.EFI)
    Boot0004* opensuse HD(1,GPT,64c8...8745,0x800,0xa0000)/File(\EFI\OPENSUSE\GRUBX64.EFI)
    # tree /boot/efi/EFI
    /boot/efi/EFI
    ├── BOOT
    │   ├── BOOTX64.EFI
    │   ├── fbx64.efi
    │   ├── MemTest86.log
    │   └── mt74x64.efi
    ├── opensuse
    │   └── grubx64.efi
    └── opensusetw
    └── grubx64.efi

    4 directories, 6 files
    # grub-install --target=x86_64-efi --efi-directory=/boot/efi
    Installing for x86_64-efi platform.
    Installation finished. No error reported.
    # efibootmgr | egrep 'suse|debian|rder'
    BootOrder: 0006,0000,0004,0005,0003,0001,0002
    Boot0000* opensusetw HD(1,GPT,64c8...8745,0x800,0xa0000)/File(\EFI\OPENSUSETW\GRUBX64.EFI)
    Boot0004* opensuse HD(1,GPT,64c8...8745,0x800,0xa0000)/File(\EFI\OPENSUSE\GRUBX64.EFI)
    Boot0006* debian13 HD(1,GPT,64c8...8745,0x800,0xa0000)/File(\EFI\debian13\grubx64.efi)
    # tree /boot/efi/EFI
    /boot/efi/EFI
    ├── BOOT
    │   ├── BOOTX64.EFI
    │   ├── fbx64.efi
    │   ├── MemTest86.log
    │   └── mt74x64.efi
    ├── debian13
    │   └── grubx64.efi
    ├── opensuse
    │   └── grubx64.efi
    └── opensusetw
    └── grubx64.efi

    5 directories, 7 files
    #
    Note I didn't use option --bootloader-id, so grub-install had no place on my Trixie's / filesystem to find string "debian13" other than GRUB_DISTRIBUTOR=
    in /etc/default/grub.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Sat Sep 14 06:40:01 2024
    Max Nikulin composed on 2024-09-14 10:59 (UTC+0700):

    So multiple loaders from the same vendor is tricky in the case of UEFI SecureBoot. Behavior of grub may vary across Linux distributions.

    Thus, consider to KISS. Pick one installation's bootloader to depend on. Install
    no others.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From songbird@21:1/5 to Felix Miata on Sat Sep 14 19:40:01 2024
    Felix Miata wrote:
    Max Nikulin composed on 2024-09-14 10:59 (UTC+0700):

    So multiple loaders from the same vendor is tricky in the case of UEFI
    SecureBoot. Behavior of grub may vary across Linux distributions.

    Thus, consider to KISS. Pick one installation's bootloader to depend on. Install
    no others.

    hmm, well i actually use Refind for my normal booting up
    and install GRUB as a backup. so far i've never needed the
    backup but i do test it out from time to time.


    songbird

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Schmitt@21:1/5 to Felix Miata on Sat Sep 14 21:40:01 2024
    Hi,

    Felix Miata wrote:
    Which distros ship rEFInd? It's not among packages monitored by distrowatch.

    It seems that Debian does since a while:
    https://tracker.debian.org/pkg/refind

    The tracker page points by its "homepage" link to
    https://www.rodsbooks.com/refind/
    which shows the name "rEFInd".


    Have a nice day :)

    Thomas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Sat Sep 14 21:20:01 2024
    songbird composed on 2024-09-14 13:07 (UTC-0400):

    Felix Miata wrote:

    Max Nikulin composed on 2024-09-14 10:59 (UTC+0700):

    So multiple loaders from the same vendor is tricky in the case of UEFI
    SecureBoot. Behavior of grub may vary across Linux distributions.

    Thus, consider to KISS. Pick one installation's bootloader to depend on. Install
    no others.

    hmm, well i actually use Refind for my normal booting up
    and install GRUB as a backup. so far i've never needed the
    backup but i do test it out from time to time.

    Which distros ship rEFInd? It's not among packages monitored by distrowatch.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anssi Saari@21:1/5 to songbird on Mon Sep 16 12:20:01 2024
    songbird <[email protected]> writes:

    hmm, well i actually use Refind for my normal booting up
    and install GRUB as a backup. so far i've never needed the
    backup but i do test it out from time to time.

    Um, so how do you choose which boot manager you want to run? UEFI boot
    menu?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From songbird@21:1/5 to Anssi Saari on Tue Sep 17 01:50:01 2024
    Anssi Saari wrote:
    songbird <[email protected]> writes:

    hmm, well i actually use Refind for my normal booting up
    and install GRUB as a backup. so far i've never needed the
    backup but i do test it out from time to time.

    Um, so how do you choose which boot manager you want to run? UEFI boot
    menu?


    efibootmgr lets you pick.


    songbird

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)