#3599 PR closed: Remove deprecated linuxefi/initrdefi GRUB Secure Boot menu entry

copilot-swe-agent opened issue at 2026-04-12 07:51:

The "UEFI and Secure Boot" GRUB menu entry fails to boot on Ubuntu 24.04+ (and other distros with modern GRUB2) because linuxefi/initrdefi commands were deprecated and removed — no linuxefi.mod ships with these systems. The standard linux/initrd entry already works correctly for all modes: BIOS, UEFI, and UEFI with Secure Boot enabled.

Changes

  • lib/bootloader-functions.sh: Drop the separate menuentry "Relax-and-Recover (UEFI and Secure Boot)" block using deprecated linuxefi/initrdefi. Rename the single remaining UEFI entry from "Relax-and-Recover (BIOS or UEFI without Secure Boot)" to "Relax-and-Recover" — the label was actively misleading since the entry works fine with Secure Boot.

    -menuentry "Relax-and-Recover (BIOS or UEFI without Secure Boot)" --id=rear {
    +menuentry "Relax-and-Recover" --id=rear {
         insmod gzio
         insmod xzio
         linux $grub2_kernel root=UUID=$root_uuid $KERNEL_CMDLINE
         initrd $grub2_initrd
    }
    -menuentry "Relax-and-Recover (UEFI and Secure Boot)" --id=rear_secure_boot {
    -    insmod gzio
    -    insmod xzio
    -    linuxefi $grub2_kernel root=UUID=$root_uuid $KERNEL_CMDLINE
    -    initrdefi $grub2_initrd
    -}
    
  • conf/default.conf: Remove the now-gone rear_secure_boot entry from the GRUB2_DEFAULT_BOOT documentation.

codacy-production commented at 2026-04-12 07:52:

Up to standards ✅

🟢 Issues 0 issues >
> > **Results:** > `0` new issues > > [View in > Codacy](https://app.codacy.com/gh/rear/rear/pull-requests/3599/issues) >

TIP This summary will be updated as you push new changes. Give us feedback

lzaoral commented at 2026-04-13 07:19:

Hey @gdha! This PR partially duplicates #3597 (I admit that I forgot to update the documentation). Shall I close mine or do you want to close yours?

gdha commented at 2026-04-13 08:01:

Hey @gdha! This PR partially duplicates #3597 (I admit that I forgot to update the documentation). Shall I close mine or do you want to close yours?

@lzaoral No, It was a test with Copilot AI, but it just hijacked your PR. We can close this one!

gdha commented at 2026-04-13 08:06:

duplicate PR


[Export of Github issue for rear/rear.]