Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel or genkernel-next for Gnome w. systemd?
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
paulto
n00b
n00b


Joined: 30 Mar 2020
Posts: 4
Location: US

PostPosted: Sun Apr 12, 2020 4:44 pm    Post subject: genkernel or genkernel-next for Gnome w. systemd? Reply with quote

Hello,

I am trying to install Gentoo with ...gnome/systemd profile from scratch. I found 2 forks from Handbook for systemd installations:

1) https://wiki.gentoo.org/wiki/Systemd

and

2) https://wiki.gentoo.org/wiki/Systemd/Installing_Gnome3_from_scratch

I have 2 questions:

a) general: 2) is marked as "probably outdated" but seems to be a better fit for my purpose. Is 1) or 2) one is best to follow? Or is there a better guidance?
b) specific: 1) recommends installing sys-kernel/genkernel whereas 2) explicitly says to not do it and install sys-kernel/genkernel-next instead. Which one should I install?

Thank you!
-paulto
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1464

PostPosted: Sun Apr 12, 2020 9:05 pm    Post subject: Reply with quote

paulto!
The recommendation for genkernel-next came from a time when genkernel was no longer actively developed.
In contrast, genkernel-next was well maintained by our nice Sabayon partners. Since last year, the developer "whissi" has been
very involved in the development of genkernel. But there are still many traps for beginners in the gentoo wiki for genkernel. Either badly explained or simply wrong.


My guess is that you need a working kernel for your installation as soon as possible.
If so, I would recommend that you don't run the genkernel section of the wiki. Instead, install

sys-kernel/gentoo-kernel-bin
or
sys-kernel/gentoo-kernel

Both use dracut to build the initramfs. Then proceed as described in the wiki.

Ma
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
paulto
n00b
n00b


Joined: 30 Mar 2020
Posts: 4
Location: US

PostPosted: Mon Apr 13, 2020 2:47 am    Post subject: Reply with quote

Thanks Ma!

I figured I needed to compile my own kernel to include a driver that was not in the generic kernel (rtl8152) so I went ahead with https://wiki.gentoo.org/wiki/Systemd which also recommended (as it turned out) depcleaning genkernel and using dracut and genkernel-next; but that also replaced my carefully tuned .config (good I had a copy).

So I am now manually compiling the kernel I configured in to my hardware and all recommendations in systemd articles and then plan to install it with mere "make install" and then run "genkernel --install initramfs" to install initramfs separately as per https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel (i.e. main thread); then will switch back to systemd thread. Unsure that I even need initramfs as I compile support for my file system in the kernel (trying to use f2fs as it is a laptop with SSD) and my partition structure is very basic.

If there is anything patently wrong with the above plan, would appreciate a tip; else I will try my luck.

(I am already thinking of at least one thing could go wrong: would that "genkernel --install initramfs" actially install initramfs that starts systemd or it will start openrc scripts? I selected both systems in "init" section of the "Gentoo Linux --> Support for init systems.. " kernel config but unsure if this is enough or even relevant)

-paulto
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 467
Location: /home

PostPosted: Mon Apr 13, 2020 7:36 am    Post subject: Reply with quote

genkernel-next is dead and probably being removed soon.
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1464

PostPosted: Mon Apr 13, 2020 8:25 am    Post subject: Reply with quote

paulto wrote:
Thanks Ma!

I figured I needed to compile my own kernel to include a driver that was not in the generic kernel (rtl8152)
-paulto



Maybe you can use a different kernel version. The RTL8152 is included in my kernel.

# cat /usr/src/linux/.config | grep RTL8152 wrote:

CONFIG_USB_RTL8152=m


https://cateee.net/lkddb/web-lkddb/USB_RTL8152.html
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1464

PostPosted: Mon Apr 13, 2020 8:58 am    Post subject: Reply with quote

Juippisi wrote:
genkernel-next is dead and probably being removed soon.


That's too bad. Genkernel-next has always served me well.
But on the other hand, I hope that all false "genkernel hopes" for a "great, gentoo fast super small kernel optimized just for my machine" will finally stop.

Maybe it would be best for genkernel if the file kernel-config in /usr/share/genkernel/defaults would disappear.
To put an end to the rumor that genkernel is building a kernel.

Ma
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
paulto
n00b
n00b


Joined: 30 Mar 2020
Posts: 4
Location: US

PostPosted: Mon Apr 13, 2020 4:10 pm    Post subject: Reply with quote

Marlo wrote:


Maybe you can use a different kernel version. The RTL8152 is included in my kernel.

# cat /usr/src/linux/.config | grep RTL8152 wrote:

CONFIG_USB_RTL8152=m


https://cateee.net/lkddb/web-lkddb/USB_RTL8152.html


Thanks Ma!

I have shelved this project till next weekend, will try to check then. I know for sure that my .config copied by genkernel did not include RTL8152 out of the box (it's kernel 5.4.something -- can't check for sure as the laptop is shelved too for now). The whole purpose of the exercise for me is to get some exposure to internals of which I lost track a while ago (it is going for me that I compiled my first Linux kernel around 1995 but it is going against me that I compiled my last one around 2005 :-) ). -paulto
Back to top
View user's profile Send private message
coderanger
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 132

PostPosted: Tue Apr 14, 2020 12:24 pm    Post subject: Reply with quote

Juippisi wrote:
genkernel-next is dead and probably being removed soon.


AFAIK only genkernel-next can produce proper initramfs for LVM+LUKS+Systemd installations, while genkernel's image fails to boot https://bugs.gentoo.org/706434
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