Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

infinite loop on initramfs stage(dracut)

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
rabidbo
n00b
n00b
Posts: 5
Joined: Fri Oct 17, 2025 4:25 pm

infinite loop on initramfs stage(dracut)

  • Quote

Post by rabidbo » Sat Nov 22, 2025 9:06 pm

Hello, gentoo wizards

I'm trying to use crux with full disk encryption setup, by help on this forum it's bootable, but got stuck on initramfs stage, to be more verbose: dracut asks passphrase and after the loop begins: (sorry for shitty photo quality)
https://pasteboard.co/Jlpq8vOxBk2b.jpg

I have no idea what to do next: I was advised to make kernel as monolithic as I can, but I don't know what I need, because system doesn't boot.

kernel conf:
pastebin.com/9XWdYQD3

cmd params(syslinux):

root=/dev/mapper/crypt-root rw rd.auto=1 rd.debug rd.shell log_buf_len=1M

Thanks in advance!
Top
pietinger
Moderator
Moderator
Posts: 6613
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Nov 23, 2025 12:37 am

Is this the same machine as in your last thread?

I remember it was an Intel machine and I gave you some advice for the kernel confguration. This .config is even more wrong as back then.

Why do you want an old (outdated) crux kernel?

Just use our Gentoo distribution kernel or gentoo-sources ... 8)

Internal note:

Code: Select all

# CONFIG_X86_X2APIC is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set
# CONFIG_IRQ_REMAP is not set
(and many more)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
rabidbo
n00b
n00b
Posts: 5
Joined: Fri Oct 17, 2025 4:25 pm

  • Quote

Post by rabidbo » Sun Nov 23, 2025 1:49 pm

Hello, thanks for your help.

My bad, .config is wrong. Machine the same. Here's actual one: https://pastebin.com/rSTfHG7C

Is 6.12.23 is so outdated? it is lts, and supported up to 2027, but maybe I don't know something.

Actually, I want to try(and learn how) to configure kernel. I've read gentoo guides(and yours), but now It's pretty useless until my system doesn't boot, so I don't know what I need.

I don't know where's problem, Is it in init script or in kernel configuration.

As I think there's only way to go:

1)Try to configure kernel monolithic as I can(blindly, till I can't boot)
2)Make my own minimal initramfs with only decrypt and lvm stuff in it.

So, the main problem is kernel configuration. Can you advise some sources, despite gentoo giudes?

Thanks in advance!
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun Nov 23, 2025 2:30 pm

rabidbo,

You might be putting you self too much. your description seems indicate your want to create a configuration and make sure it work. This might work well for someone have much experience but could be difficult for someone new to the scene.

I would suggest you first get a bootable setup (for example using gentoo binary kernel) then try to setup full disk encryption with working kernel. then take the working kernel configuration to work on your chosen kernel tree. This way you will have reference on how thing work. it will make easier for later debugging on what is not working.

full disk encryption require initramfs (sometime it is known as early rootfs). So it could be important to know how initramfs work cycle in managing finding encrypted device(s), how to pass information on kernel command line etc...
Top
pietinger
Moderator
Moderator
Posts: 6613
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Nov 23, 2025 3:48 pm

rabidbo wrote:[1] Is 6.12.23 is so outdated? it is lts, and supported up to 2027, [...]

[2] Can you advise some sources, despite gentoo giudes?
1) At the moment the current version of 6.12 is 6.12.58 ... the latest stable kernel is 6.17.8 (I recommend) ... and in one or two weeks 6.18 is coming, which will be the next LTS kernel.

2) TBH there was a time I searched in the internet for descriptions about all the options you have in a kernel configuration ... and found almost nothing (outdated or wrong) ... so, I can really help you only when you use our gentoo-sources. Please note, that the starting default-config may be different between every distribution ... and my manual kernel configuration guide relies on ours. BTW a short question: How have you changed your kernel .config? (and then installed?) I dont know how much experience you have with this, but maybe start at the very beginning here: https://wiki.gentoo.org/wiki/User:Pieti ... figuration (in this article there are two links pointing to 6.12 and 6.17 ... choose then: https://wiki.gentoo.org/wiki/User:Pieti ... ent_Kernel ... this is 6.17 ... at the moment ... until one or two weeks ... then it will become 6.18 )

Otherwise, @pingtoo recommended exactly what I also recommend. 8)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
rabidbo
n00b
n00b
Posts: 5
Joined: Fri Oct 17, 2025 4:25 pm

  • Quote

Post by rabidbo » Sun Nov 23, 2025 9:01 pm

Ok, can you suggest where's to find gentoo binary kernel?
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun Nov 23, 2025 9:52 pm

rabidbo wrote:Ok, can you suggest where's to find gentoo binary kernel?
sys-kernel/gentoo-kernel-bin
Top
zen_desu
Guru
Guru
Posts: 500
Joined: Fri Oct 25, 2024 3:14 pm
Location: your area

  • Quote

Post by zen_desu » Mon Nov 24, 2025 1:43 am

rabidbo wrote:
As I think there's only way to go:

1)Try to configure kernel monolithic as I can(blindly, till I can't boot)
2)Make my own minimal initramfs with only decrypt and lvm stuff in it.

So, the main problem is kernel configuration. Can you advise some sources, despite gentoo giudes?

Thanks in advance!
1) A more monolithic kernel sounds nice, but is actually more likely to cause problems/confusion. It becomes hard/impossible to see which modules are being used by what when they are builtin, when they are modules, that tends to be much easier.

2) If you want to make your own initramfs, ugrd is designed to just work for lvm/luks setups (no user config required) and you can check out the build dir in /tmp/initramfs_build and edit it and make it your own. It will make a more "static" init that is modeled after the gentoo wiki pages on making an initramfs. The bash portion of it (the actual initramfs it makes) should be relatively simple POSIX shell that doesn't do much more than basic logging, basic checks, and mounting your rootfs.

One thing to consider is that there is really not a whole lot of value added making things monolithic especially when an initramfs is necessary anyways (LUKS based rootfs's). Doing that can actually cause a bit more confusion, and for certain things (such as network and graphics cards), builtin drivers means you mush also build the firmware in, or the hardware won't work. Modules also mean you can force unload/reload parts of the kernel without rebooting, which can be helpful.

dist-kernel (gentoo-kernel and gentoo-kernel-bin) are both rather modular which may "unnecessarily" require an initramfs in some cases, but is generally a good approach for kernel config.
µgRD dev
Wiki writer
Top
Post Reply

8 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy