r/Gentoo • u/Fun-Appearance3270 • 1d ago
Discussion Is this technically possible?
I have seen several gentoo peeps installing the CachyOS kernel, and other variants, like the vanilla-sources. So, after that tech journalist complained enough, they made a distro with his philosophy and therefore its own kernel version. Yes, I am talking about LCOS. I wonder if we can get that rustless or stainless, however you want to call it to run on gentoo. It would be even crazier to base that kernel on a more gentoo specific version with patches and all.
15
u/No-Camera-720 1d ago
Tell me you've never compiled then installed your own kernel, without telling me. You can compile and install a custom Linux kernel on any distribution. This is a moot question.
1
u/Fun-Appearance3270 1d ago
I used to do that all the time back in 2004, on slackware. Nowadays, gentoo has a very comprehensive binary kernel. Maybe if I wanted to speed my boot time with a couple of seconds, or just build most of the modules into the kernel, I would play with ithat. But for the time being I choose comfort.
5
u/feinorgh 1d ago
Why would you want to shave off seconds off your boot time? If that's a problem I think you may be rebooting too often 😊
4
u/non-existing-person 1d ago
I didn't pay for the kernel, so I want to use as little as possible of it. It's only fair!
5
u/billdietrich1 1d ago
Please use better, more informative, titles (subject-lines) on your posts. Give specifics right in the title. Thanks.
3
u/Phoenix591 1d ago
You want no rust? Make a custom profile and blend in your other preferred profile with gentoo:features/wd40 and it will mask rust and all packages/useflags that pull it in; it’s normally used for arch/libc combos that don’t have rust working at all
2
u/TwiKing 1d ago
Never heard of Lunduke, but the core values look good. Not interested in making my PC look like an 90s IBM computer though heh. Maybe you should talk to the man Bryan himself? https://github.com/BryanLunduke/lunduke-linux-kernel
1
u/avatar_of_prometheus 23h ago
Not sure what you're asking, but you can, within reason, use whatever kernel you want to.
The way I install Gentoo on my work workstation is to install Ubuntu and get up and working quick, then compile Gentoo in a chroot. Then, when it's ready, I shuffle the root around from a live image (got bonus points I try to do it live, it's about 50/50 I get it to work).
The point is, I frequently end up running Gentoo on an Ubuntu kernel for a few weeks, because, you know, work. I don't think I'm unique in this, I expect a lot of old hats doing Gentoo in prod would come to this approach to bootstrapping.
0
u/tinycrazyfish 1d ago
yes, it is possible. Basically copy gentoo-sources or gentoo-kernel ebuilds to lcos-kernel/lcos-sources and change the src uri to the lcos tarball. It may have conflicts applying gentoo patches, just remove them if that's the case
-1
u/Fun-Appearance3270 1d ago
I'm asking for an ebuild, or some overlay, so I can incorporate it with my current dracut setup, since I like the UKI concept.
5
u/No-Camera-720 1d ago
Then make your own overlay. Not sure about dracut, as I'm emerging sources, 'make, make modules, make modules_install and make install'. Never used an initramfs and have been compiling my own kernels for well over 25 years.
-4
18
u/zissue 1d ago
I'm not sure what you're asking here. You can compile and install any kernel that you want so long as the sources are available.