Page 1 of 1
Bug in limine installer (UEFI mode)
Posted: Sat Mar 08, 2025 9:01 am
by Caramel
(Easy Scartgap 6.6.3)
In /usr/local/limine-installer/limine-installer, there is a problem with the line 520
Code: Select all
efibootmgr -c -d /dev/${DRVdest} -p ${ESPdest/*[a-z]/} -L limine -l "\EFI\limine\${EFIname}.EFI" 2>/tmp/limine-installer/efibootmgr-install-error.log
It creates an boot entry with the file \EFI\limine${EFIname}.EFI instead of \EFI\limine\BOOTX64.EFI or \EFI\limine\BOOTIA32.EFI
Other bug (less important), line 514 with limine$ (instead of limine or limine* ?)
Code: Select all
ENTRY="$(efibootmgr 2>/dev/null | grep ' limine$' | grep -o '000[0-9A-Z]')"
EDIT :
The following code for the line 520
Code: Select all
efibootmgr -c -d /dev/${DRVdest} -p ${ESPdest/*[a-z]/} -L limine -l "\EFI\limine/"${EFIname}".EFI" 2>/tmp/limine-installer/efibootmgr-install-error.log
seems to work
EDIT2:
The text was slightly modified
EDIT3:
If, at boot, the text in the limine menu is too small, you can add a line
(Or another suitable resolution)
to the file limine.cfg in the EFI partition (usually /dev/sda1)
(See https://github.com/limine-bootloader/limine/issues/226)
Re: Bug in limine installer (UEFI mode)
Posted: Sun Mar 09, 2025 2:05 am
by BarryK
Re: Bug in limine installer (UEFI mode)
Posted: Sun Mar 09, 2025 3:01 am
by SteveS
Thank you very much Caramel for taking a close look at the limine installer code.
Caramel wrote: Sat Mar 08, 2025 9:01 am
EDIT3:
If, at boot, the text in the limine menu is too small, you can add a line
(Or another suitable resolution)
I always found the text generated by limine installer too small for me, so I had created a modified .pet version doing this:
"replace the old header part generated in limine.cfg with the new header part from limine.cfg included in EasyOS".
This simply replaces these obsolete lines from line 437:
Code: Select all
echo "QUIET=no
TIMEOUT=20
GRAPHICS=no
DEFAULT_ENTRY=1
EDITOR_ENABLED=yes
INTERFACE_BRANDING=EasyOS Limine Boot Manager
" > ${MOUNTPOINT}/limine.cfg
with these lines from the limine.cfg supplied with EasyOS:
Code: Select all
echo "VERBOSE=no
TIMEOUT=10
DEFAULT_ENTRY=1
INTERFACE_BRANDING=EasyOS Limine Boot Manager
INTERFACE_RESOLUTION=800x600" > ${MOUNTPOINT}/limine.cfg
and also these lines from line 689:
Code: Select all
echo "QUIET=no
TIMEOUT=20
GRAPHICS=no
DEFAULT_ENTRY=1
EDITOR_ENABLED=yes
INTERFACE_BRANDING=EasyOS Limine Boot Manager
" > /mnt/${DEVdest}/limine.cfg
with these:
Code: Select all
echo "VERBOSE=no
TIMEOUT=10
DEFAULT_ENTRY=1
INTERFACE_BRANDING=EasyOS Limine Boot Manager
INTERFACE_RESOLUTION=800x600" > /mnt/${DEVdest}/limine.cfg
I had created the .pet file on Christmas day!
I should probably have thought about sharing it earlier. Here it is as an attachment.
Perhaps we could update the limine installer code with these changes to match the EasyOS limine.cfg file?
Re: Bug in limine installer (UEFI mode)
Posted: Mon Mar 17, 2025 10:57 am
by Caramel
Another problem with limine in Easy Scarthgap 6.6.3
In limine.cfg the lines
must be replaced by
or
(The protocol chainload is "unsupported" by this version of limine)
So in /usr/local/limine-installer/generate-menu-entry, the lines 29 and 238
must be replaced by
The lines 40 and 228
must be replaced by
Remark: In the limine menu Windows 11 is identified as Windows 10. It's not a problem but it's better to know it
EDIT: Corrections
EDIT2: Addition of the modification for the line 40
Re: Bug in limine installer (UEFI mode)
Posted: Thu Mar 27, 2025 12:29 pm
by BarryK
SteveS wrote: Sun Mar 09, 2025 3:01 am
Thank you very much Caramel for taking a close look at the limine installer code.
Caramel wrote: Sat Mar 08, 2025 9:01 am
EDIT3:
If, at boot, the text in the limine menu is too small, you can add a line
(Or another suitable resolution)
OK, done.
Re: Bug in limine installer (UEFI mode)
Posted: Thu Mar 27, 2025 2:34 pm
by BarryK
Caramel wrote: Mon Mar 17, 2025 10:57 am
So in /usr/local/limine-installer/generate-menu-entry, the lines 29 and 238
must be replaced by
The lines 40 and 228
must be replaced by
Thanks, fixed.
Blog post:
https://bkhome.org/news/202503/more-lim ... fixes.html
Re: Bug in limine installer (UEFI mode)
Posted: Wed Apr 02, 2025 5:54 pm
by SteveS
It's not a big deal, but for #20220721 copy limine.cfg
it's still not quite the exact copy of the header of the current limine.cfg of EasyOS.
The difference can be seen, notably with the TIMEOUT=20
instead of 10
and the addition of a 2nd line break instead of just 1.
That's why in my 1st message I updated the 2 line blocks concerned instead of just the resolution line only.
But it's not that important, of course 