View previous topic :: View next topic |
Author |
Message |
Adrien.D Apprentice
Joined: 18 Jan 2015 Posts: 160
|
Posted: Tue Nov 26, 2024 5:31 pm Post subject: Install Gentoo with systemd : kernel won't boot |
|
|
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 |
|
|
nox23 n00b
Joined: 15 Jul 2012 Posts: 39
|
Posted: Tue Nov 26, 2024 6:29 pm Post subject: |
|
|
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 |
|
|
Adrien.D Apprentice
Joined: 18 Jan 2015 Posts: 160
|
Posted: Tue Nov 26, 2024 6:45 pm Post subject: |
|
|
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 |
|
|
Adrien.D Apprentice
Joined: 18 Jan 2015 Posts: 160
|
Posted: Tue Nov 26, 2024 8:24 pm Post subject: |
|
|
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 |
|
|
keekkenen n00b
Joined: 05 Oct 2024 Posts: 11
|
Posted: Tue Nov 26, 2024 9:29 pm Post subject: Re: Install Gentoo with systemd : kernel won't boot |
|
|
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 |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 441 Location: Nijmegen
|
Posted: Mon Dec 02, 2024 2:08 pm Post subject: Re: Install Gentoo with systemd : kernel won't boot |
|
|
Adrien.D wrote: |
Now we need to use "installkernel" tool to install kernel.
|
sys-kernel/installkernel is not required, though you probably were using it before as well without realizing it. The kernel's 'make install' calls /sbin/installkernel if it is found, otherwise it copies the built kernel to /boot/vmlinuz.
Quote: | When i build my kernel, the system won't boot.
When i use the prebuilt kernel, the system boot. |
I strongly suspect the issue is the kernel configuration, not the installation. But we'll need to see the installation logs to be sure.
keekkenen wrote: |
EFI, uki, dracut, installkernel..I tried to use wiki, but couldn't get the kernel in efi partition or efi boot record for it.
|
Code: | USE=efistub emerge -1 -j1 installkernel && mkdir -p ${ESP}/EFI/Gentoo && make install |
_________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
|
|
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
|
|