Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RESOLVED]RootFS Encrypted Install - Blank screen after GRUB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
iLag
n00b
n00b


Joined: 17 Jul 2024
Posts: 2

PostPosted: Thu Jul 18, 2024 3:16 am    Post subject: [RESOLVED]RootFS Encrypted Install - Blank screen after GRUB Reply with quote

Hello!

After using Gentoo for a few weeks, I decided to reinstall it with an encrypted root, using this guide. I think I have followed it to the letter(minus the partitions - I am using only 2 partitions, a 1GiB /boot partition and a root partition, all on a MBR partition table on a device with BIOS firmware), but when I exit the chroot environment and reboot, the GRUB menu shows up, I press enter on 'Gentoo GNU/Linux', a few lines print on the terminal, and the screen goes completely blank.

I think this may be caused by the kernel not building correctly, since upon running 'make install' in chroot, the following warning messages show:

Code:

  INSTALL /boot
Reading /usr/lib/kernel/install.conf...
/usr/lib/kernel/install.conf configures layout=grub
/usr/lib/kernel/install.conf configures initrd_generator=ugrd
/usr/lib/kernel/install.conf configures uki_generator=none

Running /usr/lib/kernel/preinst.d/35-amd-microcode.install 6.10.0-gentoo arch/x86/boot/bzImage...

 * Generating AMD CPU Microcode early initramfs image...
 * Created temporary directory: /tmp/tmp.nRWfCLZhqa
 * Created microcode archive at: /boot/amd-uc.img
 * Cleaned up temporary directory: /tmp/tmp.nRWfCLZhqa

Hook /usr/lib/kernel/preinst.d/35-amd-microcode.install finished successfully


Running /usr/lib/kernel/preinst.d/52-ugrd.install 6.10.0-gentoo arch/x86/boot/bzImage...

INFO     | Intializing class: InitramfsGenerator
INFO     | Module version: 1.13.0
INFO     | Intializing class: InitramfsConfigDict
INFO     | Module version: 1.5.1
INFO     | Processing module: ugrd.base.base
INFO     | Processing module: ugrd.base.core
INFO     | Resolved uid: 250
INFO     | Adding library path: /usr/lib64
INFO     | Processing module: ugrd.fs.mounts
INFO     | Processing module: ugrd.base.cmdline
INFO     | Processing module: ugrd.kmod.kmod
INFO     | Processing module: ugrd.fs.cpio
INFO     | Detected init at: /usr/sbin/init
INFO     | Loading config file: /etc/ugrd/config.toml
INFO     | Processing module: ugrd.kmod.standard_mask
INFO     | Processing module: ugrd.kmod.nosound
INFO     | Processing module: ugrd.kmod.novideo
INFO     | Processing module: ugrd.kmod.nonetwork
INFO     | Importing argument 'kernel_version' with value: 6.10.0-gentoo
INFO     | Importing argument 'cpio_rotate' with value: False
INFO     | Importing argument 'out_file' with value: arch/x86/boot/initrd
INFO     | Resolved out_dir to: arch/x86/boot
INFO     | Building initramfs
INFO     | Build directory does not exist, skipping cleaning: /tmp/initramfs
INFO     | Source path for libgcc_s: /usr/lib/gcc/x86_64-pc-linux-gnu/14/libgcc_s.so.1
INFO     | Found device mapper devices: dm-0
INFO     | Autodetected root type: ext4
INFO     | Autodetected root source: uuid=ae5b509e-b499-4f7c-9195-55fdc28dd592
INFO     | [mounts] Updating mount: root
INFO     | Detected a device mapper mount: /dev/mapper/root
INFO     | Autodetected LUKS mount, enabling the cryptsetup module: root
INFO     | Processing module: ugrd.crypto.cryptsetup
INFO     | [root] LUKS volume uuid: 6bc02813-4395-4a1f-b14b-df21b9a62965
INFO     | [ugrd.crypto.cryptsetup:root] No retries specified, using default: 5
INFO     | [root] Configuring cryptsetup for LUKS mount (root) on: dm-0
root:
  uuid: 6bc02813-4395-4a1f-b14b-df21b9a62965
  retries: 5

WARNING  | Kernel version is set to 6.10.0-gentoo, but the current kernel version is 6.6.32-gentoo-dist
INFO     | Autodetected kernel modules: dm_crypt, fuse, qrtr, snd_ctl_led, snd_hda_codec_idt, snd_hda_codec_generic, i915, ath9k, ath9k_common, ath9k_hw, libarc4, ath3k, ath, i2c_algo_bit, cec, mc, intel_uncore, hp_wmi, mei_hdcp, mei_pxp, jmb38x_ms, sparse_keymap, platform_profile, mei_me, memstick, mei, hp_accel, lpc_ich, lis3lv02d, wmi_bmof, wireless_hotkey, dm_multipath, overlay, nls_utf8, hfsplus, squashfs, crct10dif_pclmul, crc32_pclmul, crc32c_intel, polyval_clmulni, polyval_generic, ghash_clmulni_intel, sha512_ssse3, sha256_ssse3, sha1_ssse3, sdhci_pci, cqhci, uas, serio_raw, sdhci, usb_storage, mmc_core, loop, ivb_uncore, xhci_hcd, ehci-pci, pcieport, ahci, sdhci-pci
INFO     | Not adding built-in module to dependencies: ext4
INFO     | Not adding built-in module to dependencies: dm_crypt
INFO     | Not adding built-in module to dependencies: dm_mod
WARNING  | [qrtr] Failed to process autodetected kernel module dependencies: [qrtr] Modinfo returned no output.
WARNING  | [snd_ctl_led] Failed to process autodetected kernel module dependencies: [snd_ctl_led] Modinfo returned no output.
WARNING  | [snd_hda_codec_idt] Failed to process autodetected kernel module dependencies: [snd_hda_codec_idt] Modinfo returned no output.
WARNING  | [snd_hda_codec_generic] Failed to process autodetected kernel module dependencies: [snd_hda_codec_generic] Modinfo returned no output.
WARNING  | [ath9k] Failed to process autodetected kernel module dependencies: [ath9k] Modinfo returned no output.
WARNING  | [ath9k_common] Failed to process autodetected kernel module dependencies: [ath9k_common] Modinfo returned no output.
WARNING  | [ath9k_hw] Failed to process autodetected kernel module dependencies: [ath9k_hw] Modinfo returned no output.
WARNING  | [ath3k] Failed to process autodetected kernel module dependencies: [ath3k] Modinfo returned no output.
WARNING  | [ath] Failed to process autodetected kernel module dependencies: [ath] Modinfo returned no output.
WARNING  | [cec] Failed to process autodetected kernel module dependencies: [cec] Modinfo returned no output.
WARNING  | [mc] Failed to process autodetected kernel module dependencies: [mc] Modinfo returned no output.
WARNING  | [hp_wmi] Failed to process autodetected kernel module dependencies: [hp_wmi] Modinfo returned no output.
WARNING  | [mei_hdcp] Failed to process autodetected kernel module dependencies: [mei_hdcp] Modinfo returned no output.
WARNING  | [mei_pxp] Failed to process autodetected kernel module dependencies: [mei_pxp] Modinfo returned no output.
WARNING  | [jmb38x_ms] Failed to process autodetected kernel module dependencies: [jmb38x_ms] Modinfo returned no output.
WARNING  | [platform_profile] Failed to process autodetected kernel module dependencies: [platform_profile] Modinfo returned no output.
WARNING  | [memstick] Failed to process autodetected kernel module dependencies: [memstick] Modinfo returned no output.
WARNING  | [hp_accel] Failed to process autodetected kernel module dependencies: [hp_accel] Modinfo returned no output.
WARNING  | [lpc_ich] Failed to process autodetected kernel module dependencies: [lpc_ich] Modinfo returned no output.
WARNING  | [lis3lv02d] Failed to process autodetected kernel module dependencies: [lis3lv02d] Modinfo returned no output.
WARNING  | [wireless_hotkey] Failed to process autodetected kernel module dependencies: [wireless_hotkey] Modinfo returned no output.
WARNING  | [dm_multipath] Failed to process autodetected kernel module dependencies: [dm_multipath] Modinfo returned no output.
WARNING  | [hfsplus] Failed to process autodetected kernel module dependencies: [hfsplus] Modinfo returned no output.
WARNING  | [squashfs] Failed to process autodetected kernel module dependencies: [squashfs] Modinfo returned no output.
WARNING  | [crct10dif_pclmul] Failed to process autodetected kernel module dependencies: [crct10dif_pclmul] Modinfo returned no output.
WARNING  | [crc32_pclmul] Failed to process autodetected kernel module dependencies: [crc32_pclmul] Modinfo returned no output.
WARNING  | [crc32c_intel] Failed to process autodetected kernel module dependencies: [crc32c_intel] Modinfo returned no output.
WARNING  | [polyval_clmulni] Failed to process autodetected kernel module dependencies: [polyval_clmulni] Modinfo returned no output.
WARNING  | [polyval_generic] Failed to process autodetected kernel module dependencies: [polyval_generic] Modinfo returned no output.
WARNING  | [ghash_clmulni_intel] Failed to process autodetected kernel module dependencies: [ghash_clmulni_intel] Modinfo returned no output.
WARNING  | [sha512_ssse3] Failed to process autodetected kernel module dependencies: [sha512_ssse3] Modinfo returned no output.
WARNING  | [sha256_ssse3] Failed to process autodetected kernel module dependencies: [sha256_ssse3] Modinfo returned no output.
WARNING  | [sha1_ssse3] Failed to process autodetected kernel module dependencies: [sha1_ssse3] Modinfo returned no output.
WARNING  | [sdhci_pci] Failed to process autodetected kernel module dependencies: [sdhci_pci] Modinfo returned no output.
WARNING  | [cqhci] Failed to process autodetected kernel module dependencies: [cqhci] Modinfo returned no output.
WARNING  | [uas] Failed to process autodetected kernel module dependencies: [uas] Modinfo returned no output.
WARNING  | [serio_raw] Failed to process autodetected kernel module dependencies: [serio_raw] Modinfo returned no output.
WARNING  | [sdhci] Failed to process autodetected kernel module dependencies: [sdhci] Modinfo returned no output.
WARNING  | [mmc_core] Failed to process autodetected kernel module dependencies: [mmc_core] Modinfo returned no output.
WARNING  | [ivb_uncore] Failed to process autodetected kernel module dependencies: [ivb_uncore] Modinfo returned no output.
WARNING  | [pcieport] Failed to process autodetected kernel module dependencies: [pcieport] Modinfo returned no output.
WARNING  | [sdhci-pci] Failed to process autodetected kernel module dependencies: [sdhci-pci] Modinfo returned no output.
WARNING  | [process_module_metadata] kmod_init is not set, skipping.
INFO     | [deploy_nodes] Skipping real device node creation with mknod, as mknod_cpio is specified.
INFO     | Running init generator functions
WARNING  | [load_modules] No kernel modules to load
INFO     | [mount_late] Skipping late mounts, late_mounts is empty.
INFO     | Wrote file: /tmp/initramfs/etc/profile
INFO     | Included functions: check_var, setvar, readvar, prompt_user, edebug, einfo, ewarn, eerror, rd_fail, rd_restart, _find_init, mount_root, parse_cmdline_bool, parse_cmdline_str, get_crypt_dev, mount_base, export_exports, parse_cmdline, mount_fstab, crypt_init, mount_cmdline_root, do_switch_root
INFO     | Wrote file: /tmp/initramfs/init
INFO     | Using specified out_file: initrd
WARNING  | Removing existing file: arch/x86/boot/initrd
INFO     | XZ compressing the CPIO data, original size: 15.69 MiB
INFO     | Wrote 5.08 MiB to: arch/x86/boot/initrd

Hook /usr/lib/kernel/preinst.d/52-ugrd.install finished successfully

Installing kernel image for 6.10.0-gentoo...
Installing initramfs image for 6.10.0-gentoo...
Installing System.map for 6.10.0-gentoo...
Installing config for 6.10.0-gentoo...

Running /usr/lib/kernel/postinst.d/91-grub-mkconfig.install 6.10.0-gentoo /boot/vmlinuz-6.10.0-gentoo...

 * Backing up existing grub config as /boot/grub/grub.cfg~...
'/boot/grub/grub.cfg' -> '/boot/grub/grub.cfg~'
 * Generating new GRUB config as /boot/grub/grub.cfg...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.10.0-gentoo
Found initrd image: /boot/amd-uc.img /boot/initramfs-6.10.0-gentoo.img
Found linux image: /boot/vmlinuz-6.10.0-gentoo.old
Found initrd image: /boot/amd-uc.img /boot/initramfs-6.10.0-gentoo.img.old
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

Hook /usr/lib/kernel/postinst.d/91-grub-mkconfig.install finished successfully


Additionally, I am not sure why 'make install' tries to generate 'AMD CPU Microcode early initramfs image' - I have an intel cpu, not an AMD one. Also, while the first warning message says that the current kernel version is 6.6.32, running 'eselect kernel list' shows only 1 kernel, which is 'linux-6.10.0-gentoo'.

I am not sure what other information is necessary to debug this, but I will list some details that I think might be useful:

- In the rootfs encryption guide on the gentoo wiki, two methods of generating initramfs are detailed - either using UGRD or using Dracut. In this case, I am using UGRD.
- I am using the 'full manual approach' to kernel management
- I found a gentoo forum post that recommended enabling framebuffer support to fix a similar issue(I can't seem to re-find the exact post, but I think it linked to this section of the wiki). Following it, I enabled all 4 kernel config options listed:
Code:
<*>   VGA 16-color graphics support
 [*]   VESA VGA graphics support
 [*]   EFI-based Framebuffer Support
 <*>   Simple framebuffer support

- Apart from changes detailed by the installation handbook, dm_crypt wiki page, and all 4 early framebuffer options, I don't think I changed anything.

Sorry if I say something stupid or rude, english is not my first language. Thank you in advance for any and all help.


Last edited by iLag on Sun Aug 18, 2024 4:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
Shadow_Fury
Apprentice
Apprentice


Joined: 20 Apr 2021
Posts: 196
Location: 11.435765792823453, 143.05926743686274

PostPosted: Sat Aug 17, 2024 7:59 pm    Post subject: Reply with quote

What GPU are you using? i know that nvidia cards have some particularities with which of the framebuffer options is selected.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5222
Location: Bavaria

PostPosted: Sun Aug 18, 2024 9:20 am    Post subject: Reply with quote

iLag,

first of all: Welcome to Gentoo Forums ! :D

Code:
WARNING  | Kernel version is set to 6.10.0-gentoo, but the current kernel version is 6.6.32-gentoo-dist

tells me you have installed our distribution kernel AND gentoo-sources-6.10 ... maybe de-install one of them (*) ... and then check again your manually configured kernel with:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves
(Maybe you miss framebuffer console)

*) clean /usr/src/ and the softlink /usr/src/linux; but dont delete your distribution kernel in /boot, so you can boot it with grub if you need it

P.S.: Because you want 6.10 please read also:
https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Kernel_Version_6.10#Notes_for_6.10
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
iLag
n00b
n00b


Joined: 17 Jul 2024
Posts: 2

PostPosted: Sun Aug 18, 2024 4:02 pm    Post subject: Reply with quote

Thank you for your response and for the welcome.

I was able to sidestep this issue since I made this post by using a distribution kernel instead of a manually-configured kernel, and modifying its configuration via this method. Unless I'm misremembering, I only changed configuration options that pertained to RootFS encryption - and not any of the framebuffer options.

Quote:
tells me you have installed our distribution kernel AND gentoo-sources-6.10 ... maybe de-install one of them (*) ... and then check again your manually configured kernel with:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves
(Maybe you miss framebuffer console)


My machine also doesn't seem to have the sys-kernel/gentoo-sources package anymore, only the virtual/dist-kernel package. I'm almost certain that, at the time of me making this post, I had only sys-kernel/gentoo-sources emerged - which is confusing, since I've no clue what exactly could have been causing this error to occur(As mentioned above, the distribution kernel didn't have any framebuffer configuration options changed, yet it worked without the error occurring). But since the distribution kernel is perfectly functional, maybe it isn't a problem anymore.
Back to top
View user's profile Send private message
Shadow_Fury
Apprentice
Apprentice


Joined: 20 Apr 2021
Posts: 196
Location: 11.435765792823453, 143.05926743686274

PostPosted: Sun Aug 18, 2024 4:26 pm    Post subject: Reply with quote

iLag wrote:
Thank you for your response and for the welcome.

I was able to sidestep this issue since I made this post by using a distribution kernel instead of a manually-configured kernel, and modifying its configuration via this method. Unless I'm misremembering, I only changed configuration options that pertained to RootFS encryption - and not any of the framebuffer options.

Quote:
tells me you have installed our distribution kernel AND gentoo-sources-6.10 ... maybe de-install one of them (*) ... and then check again your manually configured kernel with:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves
(Maybe you miss framebuffer console)


My machine also doesn't seem to have the sys-kernel/gentoo-sources package anymore, only the virtual/dist-kernel package. I'm almost certain that, at the time of me making this post, I had only sys-kernel/gentoo-sources emerged - which is confusing, since I've no clue what exactly could have been causing this error to occur(As mentioned above, the distribution kernel didn't have any framebuffer configuration options changed, yet it worked without the error occurring). But since the distribution kernel is perfectly functional, maybe it isn't a problem anymore.


you should probably indicate that your problem is solved in the title of the post, for example by putting [resolved] in it (just edit the first post of the thread).
good to hear that you got your system working.

Happy Gentoo-ing!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum