Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install Gentoo with systemd : kernel won't boot
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
Adrien.D
Apprentice
Apprentice


Joined: 18 Jan 2015
Posts: 160

PostPosted: Tue Nov 26, 2024 5:31 pm    Post subject: Install Gentoo with systemd : kernel won't boot Reply with quote

Hello,

I installed lots of Gentoo, but always with OpenRC, just 1 or 2 times with systemd.

Now we need to use "installkernel" tool to install kernel.

When i build my kernel, the system won't boot.
When i use the prebuilt kernel, the system boot.

I tried to use the config file of prebuilt kernel (i copied the config) and built with SAME config, the system won't boot.
I think the problem isn't the kernel, and not the configuration but other thing.

The system try to boot and blocked on "A start job is running for /dev/dis..db5550d452e46 (4min 20s / no limit)
After a long time, i enter to dracut shell.

I tried to use the "debian installkernel" ( https://wiki.gentoo.org/wiki/Installkernel#Debian.27s_installkernel so installkernel without systemd flag) but i can't have a system booted.

When i reboot on the prebuilt kernel, i don't have log on my root partition (to try to diagnose the issue)

The only thing i have to find the issue is this boot screen blocked to this state :
https://www.cjoint.com/doc/24_11/NKArE74Cj3O_gentoo-systemd.png

Can you help me ?

My config (which works on OpneRC) : https://pastebin.com/F7ZDxheP
_________________
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Back to top
View user's profile Send private message
nox23
n00b
n00b


Joined: 15 Jul 2012
Posts: 39

PostPosted: Tue Nov 26, 2024 6:29 pm    Post subject: Reply with quote

Do you have lvm and/or luks in your setup ?
Dracut can't find your root device.
Do you use dracut to boot openrc gentoo ?
It seems to be dracut related ?
Some infos about the dracut config can be helpful.
Back to top
View user's profile Send private message
Adrien.D
Apprentice
Apprentice


Joined: 18 Jan 2015
Posts: 160

PostPosted: Tue Nov 26, 2024 6:45 pm    Post subject: Reply with quote

Do you have lvm and/or luks in your setup ?
=> No, i usually use LVM, i tested in a VM with BIOS and only 1 / ext4 partition to exclude LVM issue

Dracut can't find your root device.
=> Looks like true. It's not a kernel panic, so i think the problem isn't the kernel, but i will try to search

Do you use dracut to boot openrc gentoo ?
=> Yes same installation : install kernel + grub (2) + dracut (generated by installkernel or manually)

It seems to be dracut related ?
=> Try to find

Some infos about the dracut config can be helpful.
=> No additionnal config for dracut, all set by default
_________________
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Back to top
View user's profile Send private message
Adrien.D
Apprentice
Apprentice


Joined: 18 Jan 2015
Posts: 160

PostPosted: Tue Nov 26, 2024 8:24 pm    Post subject: Reply with quote

I found this thread : https://forums.gentoo.org/viewtopic-p-8783321.html#8783321

Switching from SCSI to SATA works well.
I think dracut is the problem, i will test some other things with SCSI support in dracut !

For the moment SATA works well
_________________
Desktop : MSI Gaming Pro X470 - AMD Ryzen 5 2600X - RX 560 - OpenRC GNOME - gentoo-sources-6.1 LTS
Server : Acer Barebone - Intel i3-8100T - OpenRC CLI - gentoo-sources-5.4 LTS
VMs : A lot of VMS to practice Gentoo of course :) (proxmox, virtualbox)
Back to top
View user's profile Send private message
keekkenen
n00b
n00b


Joined: 05 Oct 2024
Posts: 10

PostPosted: Tue Nov 26, 2024 9:29 pm    Post subject: Re: Install Gentoo with systemd : kernel won't boot Reply with quote

Adrien.D wrote:

Now we need to use "installkernel" tool to install kernel.

I'm not sure about it.
I used Gentoo previous times in the before UEFI era. It was simple.

EFI, uki, dracut, installkernel..I tried to use wiki, but couldn't get the kernel in efi partition or efi boot record for it.
It's too complicated for me.

I wrote a simple script which makes three simple actions - building the kernel, coping it to efi partition with config and creating an efi boot record for it. It's easy and it works for me.
_________________
7950x3d / x670e MSI Tomagawk / Sapphire RX 7800XT 16Gb / G.Skill 64Gb 5600 / A-Data Legend 960 2Tb (x2), A-Data SX8200PNP 256Gb
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