Gentoo help: sys-kernel/Installkernel (wiki.gentoo.org)
from MidsizedSedan@lemmy.world to linux@lemmy.ml on 23 Mar 08:52
https://lemmy.world/post/27270835

Im following the handbook, and I’m up to configuring the kernel. (In a vm. Skipping the optional installing firmware/microcode for now)

Trying for an OpenRC system, but it looks like all the steps need systemd.

All the videos I watched seems to skip this step and just go to Kernel configuration and compilation, but I dont want to a) mix old videos and up-to-date handbook, and b) blindly copy commands. I understood mostly everything untill now. Just this kernel step where I got lost the first time I tried to install gentoo.

#linux

threaded - newest

groche@lemmy.rochegmr.com on 23 Mar 09:18 next collapse

You can install gentoo-kernel-bin and everything works fine. About SystemD, you needn’t systemd as init, but you need systemd as udev or other things. Only follow the guide with a non-systemd profile

allywilson@lemmy.ml on 23 Mar 10:04 next collapse

Can you share which step you are up to which doesn’t have a non-systemd instruction?

MidsizedSedan@lemmy.world on 23 Mar 10:52 collapse

Around 2.1

<img alt="" src="https://lemmy.world/pictrs/image/a7e4d3c7-1113-4fdb-b43f-4c47088c91a0.jpeg">

Systemd boot, OpenRC, then systemd-utils

I should probably bring up this will be my first non-systemd distro. (Maybe I should have looked at Artix first. But too late)

bodaciousFern@lemmy.dbzer0.com on 23 Mar 11:07 next collapse

So if you want to use systemd-boot as the bootloader you have to (apparently) install the systemd-utils package. Or you can just use GRUB / efistub.

Edit: looks like groche beat me to it 😁

It’s probably been 4 years since I last had to rebuild my Gentoo, but I would be very surprised if there weren’t good OpenRC instructions. I built mine with systemd and Gentoo handbook instructions always felt like ‘Are you sure you don’t want to use OpenRC? Ok, here are the systemd steps I guess’

groche@lemmy.rochegmr.com on 23 Mar 11:06 next collapse

But you want to use systemd-boot? Obviously you need to install systems-utils if you want to install systemd-boot, but you can use grub or something else bootloader

mkwt@lemmy.world on 23 Mar 11:48 collapse

Within section 2.1 choose only one subsection to follow. Those are all alternative bootloader options.

The bootloader subsection chosen in 2.1 on this page should match what is done in Configuring the Bootloader. The default path on that page is GRUB, which does not require any systemd components.

If following the GRUB path, follow instructions in 2.1.1 and skip the rest of 2.1. This is not at all clear in the handbook.

I believe that sys-kernel/installkernel is a utility script internal to the Gentoo project that can be configured to work with various bootloader solutions, including (optionally) systemd, and that is what this section 2.1 is talking about.

This appears to be an out of order dependency in the handbook

Shimitar@downonthestreet.eu on 23 Mar 13:47 next collapse

Gentoo lover and long time user here, OpenRC only.

Feel free to pm/DM me for any question in general.

I use Genkernel, works like a charm.

MidsizedSedan@lemmy.world on 24 Mar 11:04 collapse

Spend my Saturdays on my machine. Rest of the week im reading the handbook on my lunchbreaks. Think I know what to do now, but will see how I go this weekend.

<img alt="" src="https://lemmy.world/pictrs/image/08fe3fb6-d086-4419-b6bf-7090931fda81.jpeg">

mvirts@lemmy.world on 25 Mar 18:04 collapse

🤣

Presi300@lemmy.world on 24 Mar 13:42 collapse

Installkernel doesn’t care about your init system, only about the bootloader. It happily works with grub so you don’t need to worry about it