I've been stuck trying to install Gentoo on my new LG gram 17 laptop (Intel) for the past few days, and looking for some inspiration on how to figure out the problem. I've installed and used Gentoo for many years now on previous laptops and desktops, so I'm not new to this. But I seem to be totally stuck right now with my custom kernel.
Where to start?
I have 2 partitions, 1 GB for a FAT32 EFI System Partition (ESP), and the rest of 2TB as an encrypted LUKS partition (with a BTRFS filesystem and several sub-volumes). I have never set up Gentoo with disk encryption or BTRFS before, but I really wanted to try this out this time. In my chroot environment, I've configured and built my kernel, installed GRUB on the ESP, created an initial RAMFS with dracut (including the btrfs and crypt modules), and created the GRUB configuration file.
The problem is consistently this: GRUB loads its menu fine, it loads the kernel and initramfs (echoing the relevant messages right before doing so), then says:
...and then nothing after that, not even a visible kernel panic.EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI Stub: Measured initrd data into PCR 9
Initially I identified all the drivers and firmware I needed and built everything into the kernel. The display driver is xe and not i915 but I've tried enabling both for good measure. I have also tried to enable and disable various typical framebuffer devices with no luck. Finally, I tried building both xe and i915 as modules (installing the modules, re-running dracut and checking that they had been picked up), again with no luck.
At this point, I suspect this has nothing to do with the display driver but something more basic that I'm missing due to my unfamiliarity with initramfs loading (I've previously used EFI stub to load the kernel directly, which is not an option here because of the encrypted partition).
Some details:
- lspci -k output on LiveUSB https://pastebin.com/uVeSSfgv
- dmesg output on LiveUSB https://pastebin.com/GvnxQ1V3
- kernel config (/proc/config) on LiveUSB https://pastebin.com/v8eJFjff
- kernel config (/usr/share/linux-6.12.58-gentoo/.config) on disk https://pastebin.com/yGTmJrUC
With the kernel configuration referenced above (last one), I perform a "make -j8" and copy over arch/x86_64/boot/bzImage over to /boot, then run dracut with the following configuration:
Code: Select all
add_dracutmodules+=" crypt btrfs resume "
add_drivers+=" xe i915 "
early_microcode="yes"My generated grub.cfg is here: https://pastebin.com/3Pu17FcG
I would appreciate some help in pinpointing what I'm doing wrong, or at least make it print something more useful.

