site  contact  subhomenews

Limine Installer enhanced EFI chainload

July 27, 2022 — BarryK

A couple of days ago, I posted testing Limine Installer on my "HP Tower" PC:

https://bkhome.org/news/202207/install-limine-to-pc-with-mainline-linux-distros.html

The previously-installed mainstream Linux distributions had installed GRUB2, so I have enhanced Limine Installer to detect this and chainload to it. In the earlier test, these were the detected installations:

img1

Now, there is a new entry, "EFI Chainload ubuntu":

img2

The Installer discovered that new entry by running the 'efibootmgr' utility:

# efibootmgr
BootCurrent: 000B
Timeout: 0 seconds
BootOrder: 0000,0003,0001,0002,000B,0004,0006,0007,0008,0009,000A
Boot0001* USB Floppy/CD
Boot0002* USB Hard Drive
Boot0003* ubuntu
Boot0004* ATAPI CD-ROM Drive
Boot0006* USB Floppy/CD
Boot0007* Hard Drive
Boot0008* Realtek PXE B04 D00
Boot0009* Realtek PXE B06 D00
Boot000a* Unknown Device
Boot000b* UEFI: SanDisk Extreme 0001
Boot0000* limine

...as you can see, "limine" is there. It was installed a couple of days ago, and is set in the UEFI as the default at bootup.
Notice "ubuntu", that was created when Linux Mint was installed. That is a GRUB2 bootloader thing, and the Installer has created a "EFI Chainload" entry for it.

Seems a misnomer to be "ubuntu", when it is actually Linux Mint that was installed. But, Mint is based on Ubuntu, and it seems, using the Ubuntu install software as-is.

Anyway, despite the misleading title, at a reboot, Limine now offers an extra choice:

img4

Choosing that Chainload entry:

img5

...this is the GRUB2 menu, before Limine was installed.

As you can see, it is offering the same Linux distributions that Limine detected and can boot directly. However, the GRUB menu offers some boot options, which might be useful.

For the record, this is the extra entry in 'limine.cfg':

:EFI Chainload ubuntu (partition sda1)
PROTOCOL=chainload
IMAGE_PATH=guid://c9497bea-b657-4834-bde9-d35394095f9a/EFI/ubuntu/shimx64.efi

...it would probably be good to edit that title, maybe "EFI Chainload GRUB (partition sda1)", or whatever is more meaningful.    

Tags: easy