LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS-11.0 systemd: Can not boot with GRUB-2.06 (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-11-0-systemd-can-not-boot-with-grub-2-06-a-4175701270/)

anak_bawang 09-30-2021 04:20 AM

LFS-11.0 systemd: Can not boot with GRUB-2.06
 
Finishing LFS-11.0 systemd.

Can not boot using GRUB-2.06. Only displaying GRUB Loading on top left of the screen but with no menu in the middle screen.

Removing all grub files installed on system. Change to GRUB-2.04 (LFS-10.1). Boot perfectly.

Any explanation?

Notes:
Why changing to 2.04 version?
Using LFS-10.1 (with GRUB-2.04) as host to build LFS-11.0 (with GRUB-2.06).
Previously using multiple menu (editing grub.cfg) on host system to boot new LFS. It works. Try to boot new LFS directly. Failed. So that is why I change to 2.04 version.

bryan_S 10-02-2021 07:43 AM

I'm using grub 2.06 and it's working okay. The only issue i had was an error with attached USB devices; either a usb card reader or a usb dvd drive. Grub menu would come up offset (top left of grub menu in center of screen) with an error msg about invalid sector size - I could select menu items but they wouldn't boot. No problems after i disconnected the usb device.

I'm using uefi boot following the instructions in the book. It's nice not to have to depend on another distro's grub to boot (i was using debian grub). Only issue i had with the book instructions, I think i had to manually copy the font file to its correct place.

anak_bawang 10-02-2021 09:02 PM

Finally, I have find solutions to this problem.

Recompiling grub with CFLAGS -Os

Code:

CFLAGS+=" -Os"                \
./configure --prefix=/usr    \
            --sysconfdir=/etc \
            --disable-efiemu  \
            --disable-werror

And the reference :
https://www.linuxquestions.org/quest...nt-4175696226/


All times are GMT -5. The time now is 02:52 PM.