#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 separatemenuentry "Relax-and-Recover (UEFI and Secure Boot)"block using deprecatedlinuxefi/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-gonerear_secure_bootentry from theGRUB2_DEFAULT_BOOTdocumentation.
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.]