Summary: | sys-kernel/genkernel-4.2.6-r2: requires new kernel 5.18 flag BLOCK_LEGACY_AUTOLOAD for initramfs | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Thibaud CANALE <thican> |
Component: | genkernel | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | ahipp0, gpuzankin, phils |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Thibaud CANALE
2022-06-12 09:27:47 UTC
I just ran into this exact same problem myself. Verifying right now that enabling BLOCK_LEGACY_AUTOLOAD solves the boot failure. (In reply to Phil Stracchino (Unix Ronin) from comment #1) > I just ran into this exact same problem myself. Verifying right now that > enabling BLOCK_LEGACY_AUTOLOAD solves the boot failure. Confirmed that the system would not boot, unable to find the boot device, until BLOCK_LEGACY_AUTOLOAD was enabled in the kernel. If this is now considered legacy functionality, then there needs to be a lot better documentation readily findable on how to configure booting "correctly" so that BLOCK_LEGACY_AUTOLOAD is NOT required. (In reply to Thibaud CANALE from comment #0) > With Linux kernel 5.18, the config flag "BLOCK_LEGACY_AUTOLOAD" has been > introduced. > If this flag it disabled, and genkernel is used to generate the initramfs, > this last can’t find the "root" partition to open or unlock. > > ... > > Once this BLOCK_LEGACY_AUTOLOAD kernel flag is set and the new kernel > rebuilt, the system boots as usual. Same issue on kernel 6.1.4 with "CONFIG_BLOCK_LEGACY_AUTOLOAD is not set" and a custom initramfs, which merely does `mdadm --assemble --scan`. (no udev is running as part of initramfs, but devtmpfs is automatically mounted prior to that) Rebuilding the kernel with CONFIG_BLOCK_LEGACY_AUTOLOAD=y fixed the problem. Not a genkernel user myself, but came across this when Googling. I have a script that runs `mdadm --assemble --scan` and it stopped working until I enabled BLOCK_LEGACY_AUTOLOAD. |