View previous topic :: View next topic |
Author |
Message |
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
Posted: Mon Jul 18, 2022 5:04 pm Post subject: OpenRC doesn't start at boot |
|
|
Hello, Gentoo Forum!
Just started using Gentoo a couple of weeks ago. I am no longer able to boot my SSD. I can see the pre-Open RC output from the boot sequence and I get the prompt to enter the password to decrypt my SSD.
Once I decrypt the drive, nothing else happens. I am able to see text I enter at the command line, but no RC scripts execute, and thus I have no shell.
I haven't modified my crypttab, fstab, or grub config since they worked. I tried booting from a new kernel and a confirmed working kernel (doesn't seem to be a kernel issue, but what do I know?) to the same result.
Please let me know what other info to provide to see what the issue is.
EDIT: probably also relevant to mention that I can decrypt and mount the SSD partition from the Gentoo live CD. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54331 Location: 56N 3W
|
Posted: Mon Jul 18, 2022 6:19 pm Post subject: |
|
|
burningserenity,
Welcome to Gentoo.
I suspect that you have lost the console output for some reason.
That is, everything is working normally but you can't see it.
Post the output of
Make friends with wgetpaste and use it to put your kernel .config file onto a pastebin site, then post the link you get back so we can see it.
If you have another system and you set up sshd while you are in the chroot, you may find that you can log in over ssh and wgetpaste tho output of the dmesg command.
That may have some useful error messages. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54331 Location: 56N 3W
|
Posted: Mon Jul 18, 2022 7:31 pm Post subject: |
|
|
burningserenity,
dmesg looks good. Its using the EFI framebuffer to start then switches to i915drmfb.
Given your Code: | 00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b]
DeviceName: Onboard - Video
Subsystem: CLEVO/KAPOK Computer CoffeeLake-H GT2 [UHD Graphics 630] [1558:95e1]
Kernel driver in use: i915
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104M [GeForce GTX 1070 Mobile] [10de:1ba1] (rev a1)
Subsystem: CLEVO/KAPOK Computer GP104M [GeForce GTX 1070 Mobile] [1558:95e1]
Kernel driver in use: nouveau | that's all normal.
Code: | [ 0.000000] Linux version 5.15.41-gentoo-x86_64 (root@catalyst) (x86_64-pc-linux-gnu-gcc (Gentoo 11.3.0 p4) 11.3.0, GNU ld (Gentoo 2.37_p1 p2) 2.37) #1 SMP Mon Jun 6 00:15:25 UTC 2022 | suggests that's the liveCD.
Its not from the kernel config you posted, as that says ... Code: | #
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.18.11 Kernel Configuration
# |
Your kernel has We know that works to get you started.
and That drivel needs firmware, witch is provided by linux-firmware.
It must be loaded from the initrd. You do have an initrd as you are using an encrypted root.
Tell how you configure, build and install your kernel and its matching initrd. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
Posted: Mon Jul 18, 2022 7:40 pm Post subject: |
|
|
What is the initrd, exactly? I use portage to handle kernel installation, using savedconfig. I use dracut to create the initramfs. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1688
|
Posted: Mon Jul 18, 2022 8:02 pm Post subject: |
|
|
burningserenity wrote: | What is the initrd, exactly? I use portage to handle kernel installation, using savedconfig. I use dracut to create the initramfs. |
initrd is what used to be used instead of initramfs. Some people use the terms interchangeably today even if they are not exactly the same internal structure. They share the same purpose. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54331 Location: 56N 3W
|
Posted: Mon Jul 18, 2022 8:08 pm Post subject: |
|
|
burningserenity,
The initrd is a small root filesystem in a file.
Its loaded by your boot loader or even built into the kernel.
Its supposed to contain everything needed to mount the root filesystem, that cannot be built into the kernel.
It also contains kernel modules, which is what binds it to a specific kernel.
The kernel checks the 'version magic' for bits of itself and will not load mismatching modules.
dracut has a good reputation. I don't use it but there are very few reported problems with it here.
Portage does not handle kernel installation, at least, not the way I mean. It puts the sources into /usr/src.
Then its up to you.
What commands do you use to get your kernel from /usr/src into /boot with its matching initrd, then tell the boot loader all about it so you can use it? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54331 Location: 56N 3W
|
Posted: Mon Jul 18, 2022 9:09 pm Post subject: |
|
|
burningserenity,
That makes life easy, as you say, its all controlled by portage.
That's the kernel. What about the intrd/iniramfs and putting everything into /boot, so the boot loader can find it.?
I'm one of these people that grknight warned you about. :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
Posted: Mon Jul 18, 2022 9:24 pm Post subject: |
|
|
The initramfs is made by dracut and is triggered by portage. I believe dracut copies over the images to /boot. I manually run `grub-mkconfig -o /boot/grub/grub.cfg` each time after I install a new kernel. |
|
Back to top |
|
|
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
Posted: Tue Jul 19, 2022 12:55 pm Post subject: |
|
|
The kernel is installed via installkernel, per portage output. |
|
Back to top |
|
|
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
Posted: Tue Jul 19, 2022 5:33 pm Post subject: |
|
|
I found that if I wait long enough on boot, dracut errors with `/dev/mapper/root` does not exist. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54331 Location: 56N 3W
|
Posted: Tue Jul 19, 2022 7:11 pm Post subject: |
|
|
burningserenity,
Either your low level block device driver is missing or LVM in the initrd/initramfs fails to start.
You have Code: | 00:17.0 SATA controller [0106]: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller [8086:a353] (rev 10)
DeviceName: Onboard - SATA
Subsystem: CLEVO/KAPOK Computer Cannon Lake Mobile PCH SATA AHCI Controller [1558:95e1]
Kernel driver in use: ahci
02:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM951/PM951 [144d:a802] (rev 01)
Subsystem: Samsung Electronics Co Ltd PM963 2.5" NVMe PCIe SSD [144d:a801]
Kernel driver in use: nvme | for block device support.
Are they both available in the kernel?
With dracut, modules will work.
What about Multiple Disk support?
That's the kernel part of LVM?
I suspect that dracut needs to be told to include LVM support but I've never used it. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
Posted: Tue Jul 19, 2022 8:19 pm Post subject: |
|
|
I switched to the binary kernel till this is resolved, to simplify things, so it has all that stuff loaded.
Adding the lvm module to dracut did not work.
What did work was getting to the dracut rescue console, remounting my crypt root as /dev/mapper/root (it's mounted as /dev/mapper/luks-<hex>), then exiting the dracut console.
Now my question is, how do I get dracut to initially mount my crypt root properly like it did before? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54331 Location: 56N 3W
|
Posted: Tue Jul 19, 2022 8:26 pm Post subject: |
|
|
burningserenity,
I can't help with dracut. Now you have a different question, start a new topic. You will get more helpers that way.
Refer to this topic for the history. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
burningserenity n00b
Joined: 18 Jul 2022 Posts: 65
|
Posted: Tue Jul 19, 2022 8:53 pm Post subject: |
|
|
Thanks, I’ll do that. |
|
Back to top |
|
|
|