FS#79098 - [grub] > 2.06.r499.ge67a551a4-2 fails to boot i386-efi

Attached to Project: Arch Linux
Opened by Felix Meyer (fm) - Friday, 14 July 2023, 06:34 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:15 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Christian Hesse (eworm)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
All Versions after 2.06.r499.ge67a551a4-2 fail to boot on i386-efi


when i select a entry:
"You need to load the Kernel fist"


Additional info:
ASUSTeK COMPUTER INC. X205TA/X205TA
   dmesg.txt (53.7 KiB)
   grub.sh (0.1 KiB)
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:15 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/grub/issues/5
Comment by Toolybird (Toolybird) - Friday, 14 July 2023, 06:52 GMT
git bisect [1] should be the perfect way to find the culprit here. Are you up for it?

[1] https://wiki.archlinux.org/title/Bisecting_bugs_with_Git
Comment by Felix Meyer (fm) - Friday, 14 July 2023, 08:06 GMT Comment by Toolybird (Toolybird) - Friday, 14 July 2023, 08:14 GMT
Sorry if I was unclear. I meant git bisect the *upstream* repo to find the offending upstream commit.
Comment by Felix Meyer (fm) - Friday, 14 July 2023, 08:21 GMT
if [ "x${GRUB_DISABLE_UUID}" = "xtrue" ]; then

if [ "${GRUB_DISABLE_UUID}" = "true" ]; then

schould it be "true" insted of "xtrue"?? removed 2 x, ArchLinux commit in PKG.
Comment by Christian Hesse (eworm) - Friday, 14 July 2023, 08:27 GMT
Just a short side note... The package with version `2:2.06.r557.gac560966d-1` failed to boot on *ALL* EFI systems. So let's ignore that.

But to get it right... The system fails to boot with `2.06.r499.ge67a551a4-2`, but `2-2.06.r499.ge67a551a4-1` was ok? That's kind of crazy, as both are built from same source (with updated unifont and configuration dropings on top).

Did you try recent packages? Currently we have `2:2.12rc1-1` in repositories.
Comment by Felix Meyer (fm) - Friday, 14 July 2023, 08:33 GMT
i tried every version, need to chroot everytime to downgrade
Comment by Felix Meyer (fm) - Friday, 14 July 2023, 08:34 GMT
greater 2.06.r499.ge67a551a4-2, it works > not >=
Comment by Felix Meyer (fm) - Friday, 14 July 2023, 08:43 GMT
tested a few things, its a upstream bug.
Comment by Christian Hesse (eworm) - Friday, 14 July 2023, 09:21 GMT
The "x" does not change anything if you add or remove it on both sides. 😉
Some projects add it to make sure no empty string is used in the comparison.
Comment by Felix Meyer (fm) - Friday, 14 July 2023, 09:26 GMT
can be closed and marked as upstream
Comment by Lance (Raansu) - Saturday, 02 September 2023, 18:11 GMT
I just hit this bug trying to reinstall a Arch Linux system on a HP Pro Tablet 408 G1. Are we saying this is a upstream issue as in a bug with the GRUB code?
Comment by Maurizio Ferreira (Maurizio Ferreira) - Tuesday, 03 October 2023, 06:40 GMT
Perhaps this can help.

On the install pendrive I replaced the file EFI/BOOT/bootia32.efi with that found at

https://github.com/jfwells/linux-asus-t100ta/blob/master/boot

And with that I was able to boot correctly.

Best regards.

Maurizio.
Comment by Maurizio Ferreira (Maurizio Ferreira) - Wednesday, 04 October 2023, 12:35 GMT
With the downloaded module however I had a little problem, since the loader was not recognizing the '[' command present in some script.
So I've taken the ORIGINAL Grub sources, compiled them, created the efi module, copied it directly in my boot location and then booted. It works.

I was inspired by the mentioned site:

https://github.com/jfwells/linux-asus-t100ta/blob/master/boot/readme.md

I tried to download its sources and follow the instructions but I got several errors.

So I followed the instructions using instead the original sources of grub 2-06:

Downloaded the package from https://ftp.gnu.org/gnu/grub/

tar -xvf grub-2.06.tar.gz

cd grub-2.06

(the autogen command is not necessary)

export EFI_ARCH=i386

./configure --with-platform=efi --target=${EFI_ARCH} --program-prefix=""

make


The compilation went perfectly without even the slightest warning. Then :

cd grub-core

Then I used a slightly modified command to remove some module, add another (test) and specify a different prefix directory /grub instead of /boot/grub
(probably i could remove even more modules ...)
I neeeded to add the test module otherwise the '[' command was not recognized in the scripts.

Original command :

../grub-mkimage -d . -o bootia32.efi -O i386-efi -p /boot/grub ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd xfs xnu part_bsd part_gpt search search_fs_file chain btrfs loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart scsi loopback normal configfile gzio all_video efi_gop efi_uga gfxterm gettext echo boot chain eval

My command :

../grub-mkimage -d . -o bootia32.efi -O i386-efi -p /grub boot cat efi_gop efi_uga elf fat linux keylayouts memdisk minicmd part_apple ext2 extcmd xfs xnu part_bsd part_gpt search search_fs_file chain btrfs loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart scsi loopback normal configfile gzio all_video efi_gop efi_uga gfxterm gettext echo boot chain eval test

Then I took the bootia32.efi module, copied it on the target machine in the EFI/boot/arch directory, and booted successfully.

Best regards.
Maurizio



Comment by Lance (Raansu) - Wednesday, 04 October 2023, 22:45 GMT
I have since moved on to using systemd-boot after this bug was fixed. https://bugs.archlinux.org/task/79531

Loading...