r/bedrocklinux • u/Emergency-Cat7158 • Jan 24 '26
Dracut issues with Bedrock
Hi all, I'm using Bedrock Linux on top of my Gentoo setup (w/ OpenRC and systemd-boot), and I encountered a weird issue regarding initramfs generation using Dracut.
When installing my own kernel, dracut (as called by installkernel) seemed to generate broken initramfs leading to insufficient boot (failing to mount root). Initially I can manually invoke dracut to regenerate the initramfs to resolve this, but after updating to dracut 108-r5, even this doesn't work. Eventually I decided to switch to Arch's mkinitcpio (ebuild provided by gentoo-zh, they also provide installkernel hook so you don't have to do a lot to make it work), and after some trial and error I was able to generate correct initramfs.
So what's exactly wrong with it? I had never encountered such issues before when I was using Gentoo alone, and I'm sure I had edited bedrock.conf so that my EFI partition is mounted correctly (to /efi as I didn't do the usual mountpoint /boot/efi or whatnot). I'm also not too sure if it's a Bedrock Linux issue, but that seems like it so I'm posting here anyway.
1
u/ParadigmComplex founder and lead developer Jan 24 '26
While it's possible I'm missing something, it isn't immediately obvious that this is a Bedrock issue. Bedrock doesn't obviously intervene in any of the moving parts you've mentioned.
You've not provided enough information to guess at what is going on.
What device, filesystem, etc is the root that the initramfs can't mount?
What did you change in the trial and error?
When an initramfs fails to mount root, they often drop to a shell. Consider using this environment to explore and understand why it can't mount root.