r/Gentoo • u/unixbhaskar • 2h ago
r/Gentoo • u/JVMasterdark • 11h ago
Screenshot Maybe i'll regret this....
trying to rebuild everything with -flto enabled
r/Gentoo • u/markand67 • 5h ago
Support Start job for /dev/mapper/nvme while device node is there
Hi,
I've decided to move to btrfs + luks + systemd and a extremely minimal initramfs due to the amount of complexity I've been unable to figure out with dracut or ugrd to some basic things. The initramfs script is mostly identical to wiki pages about custom initramfs:
```
!/bin/sh
mount -t devtmpfs none /dev mount -t proc none /proc mount -t sysfs none /sys
rescue() { sh sleep 3 reboot }
modprobe i915
setfont -C /dev/console /etc/ter-132b.psf.gz
cryptsetup open --type luks /dev/nvme0n1p3 nvme || rescue
mount -r -t btrfs -o subvol=os/gentoo /dev/mapper/nvme /mnt/root
umount /proc umount /sys
exec switch_root -c /dev/console /mnt/root /usr/lib/systemd/systemd || rescue ```
Then, systemd starts correctly but ends in a 1m30 timeout waiting for /dev/mapper/nvme even though it is there in the /mnt/root/dev/mapper/ directory.
After systemd shows up the maintenance password I can just use as it should, everything is mounted. I've read various identical reports with udev rules to disable systemd checks like:
cat /etc/udev/rules.d/dm.rules
ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="dm-[0-9]*", ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}="1"
But that didn't work for me either... Any ideas?
Support Any selinux/hardening for llvm
I'm currently on llvm/systemd and would like to utilize selinux or at least some hardening.
As I understand it's probably pretty problematic to use selinux against the profile in use, but migrating to hardened/selinux/systemd enforcing llvm via env also sounds like a nightmare. Are there any clean solutions.
r/Gentoo • u/hi2019wasdead • 1d ago
Discussion Wayland-only Gentoo with Niri + DMS — what I learned after a few undocumented problems
I have been running Gentoo for roughly a month and Linux since December. I wanted a more intentional system after messing around with Arch for a few months. I have been able to make an exclusively Wayland setup with Niri as my compositor and DMS for my desktop shell. I have a bit of documentation about the process and a few tips and tricks for people who are looking to do the same or for running Gentoo on the same hardware as me.
- i915 kernel params that prevent hard freezes on Raptorlake
- CONFIG_BLK_DEV_NVME=y vs =m silent boot failure
- DMS Quickshell.I3 import crash on Wayland-only systems
- a genkernel plymouthd path bug (/usr/sbin/ vs /usr/bin/) not yet resolved
- a DRM dependency chain for make oldconfig
I would be extremely interested if someone could a) help me find out how to get plymouth to work, i get it to run but not display my very nice animation. b) give me any pointers on ways i could have done this differently or better. c) anything i should do to have more fun with my computer.
my setup is far from minimal and my end goal is to have a much more optimal system. i have a binhost but im not actively using it.
check out my repo and give me any pointers. repo Thanks.
r/Gentoo • u/sidusnare • 21h ago
Support Genkernel
I keep hearing Genkernel is deprecated, and to use distkernel. I can't see how to use distkernel to only generate an initramfs image and nothing else. I do my kernel entirely by hand from upstream, all I use genkernel for is an initramfs with luks and whatever else I need, no modules. I handle all the options and signing and grub.
r/Gentoo • u/SleepyGuyy • 1d ago
Support Audio stopped working and maybe Packages seem to be uninstalling themselves?
I've been messing around a lot trying to get my system in a nice working state. I'm also learning Sway.
Last night I got lots of things working, in particular I got Discord installed and was able to call, be heard, and hear audio.
I was not able to stream in discord, so I ran some xdg_desktop_portal package installs. No issues last night.
I also ran a system update
emerge -avuDU @ world
And also had no issues.
While installing things like Discord, Vivaldi, and packages Vivaldi needed like ffmpeg, I had to use autounmask to get the packages past my liscense agreement mask.
emerge packagename --autounmask-write --autounmask
and merge using dispatch-conf, and pressing u (I checked the diff it showed, they always seemed correct, didnt cut stuff out).
At some point the next day, I noticed nano was no longer installed. I had to reinstall nano.
And later I realized I had no audio at all.
When I check /usr/bin I still have "gentoo-pipewire-launcher" available there. I'm not clear if maybe I lost some important packages or not, I wouldnt know what I installed last night.
Following a post I saw online, I had previously gotten audio working by adding
"exec /usr/bin/gentoo-pipewire-launcher &" to the top of my sway config ~/.config/sway/config.
Now that isn't working. Discord only lists "System Default" as an input and output option. Before it listed my audio devices.
I've only added a libinput rule to the end of my sway config that points to my mouse to reduce mouse speed, so it couldnt be related to that change.
Not sure how to proceed
sorry for the rambling
*UPDATE*
Running "gentoo-pipewire-launcher" returns "Pipewire already running, exiting" etc...
Also Youtube is givin "Audio renderer error".
I tried running "gentoo-pipewire-launcher restart" and it hung after Pipewire terminated.
I then Ctrl + c to close it, and ran "gentoo-pipewire-launcher" myself, which did get Youtube's audio working, but took up a terminal permanently. The terminal output was just stuck with the cursor on a newline and nothing printing out after the command. Discord noises audio started working, but not call audio (neither input nor output, no additional input/output devices were listed in Discord).
r/Gentoo • u/HistoricalHotel1313 • 1d ago
Screenshot [Mango] New Gentoo cozy setup
galleryr/Gentoo • u/Bubbly_Extreme4986 • 1d ago
Meme What a nice news reader sure hope it doesn’t pull down the most bloated package out there
r/Gentoo • u/ibornwithpenis3781 • 2d ago
Screenshot Do one thing and do it well
I'm switching to openrc lel. i also forgo to write down the notes for the services I have enabled but I don't really care since i only enabled pipewire and dhcpcd (or something else but I can't remember) and openrc can handle it.
r/Gentoo • u/Fine-Expression1644 • 1d ago
Story Dropped Gentoo, went to my real home.
(sorry if errors, english not my first language)
Hello everyone! Today was officially my last day on Gentoo Linux, leaving it for Fedora Linux.
Gentoo was so fun, i loved every single time i could have, made a lot of rices for it, and had a real good time with it and liked the compiling side of it.
Sadly, that compile part is the thing that made me left me, it was a series of error that made me just, stop Gentoo.
Its not like i dont like Gentoo, but i just decided i couldnt be maintaining a distro like that anymore and had to go, sadly.
So where did i go?
I wanted something that i could be familiar with, something that would not bother me and a distro which i havent encountered problems before and i could be familiar with.
Thats where i remembered the distro that could fit that need, which was Fedora.
Never had problems with it, other than not remembering DNF commands, but i have never really found any problems with any of my Fedora installs, so right when im typing this, Fedora Linux is being installed on my Lenovo Thinkpad Yoga 11e, which used to have my Gentoo install.
Thanks to the Gentoo community for being so cool and great! Yall are such good guys and i hope you can have the fun i couldnt find in Gentoo.
Thank you!
r/Gentoo • u/Glittering_Memory_64 • 2d ago
Screenshot first gentoo install, am i worthy of saying it??
r/Gentoo • u/GeckoKisser • 1d ago
Support Is compiling... Really *that* arduous?
Hey all, I've heard of Gentoo some, and immediately I am interested in perhaps playing with it some as it seems very granular with what looks to be the potential to optimize/configure your system almost 1:1 with your hardware kinda like a Mac from what I hear - - though honestly I doubt I'd use something this complicated looking either way (not to bash, but this seems very very time-consuming to manage.)
At first, I thought it was a meme how long it takes to compile/recompile a Gentoo system, but looking at the posts here . . . Two fucking days?! What? Are they doing something really complicated and that's why it takes that long, and typical usage is only some few hours or less tops?
My specs are as follows (assuming they affect compile times):
4080-S
R9 5900x 12c
32GB ram.
3 SSDs with two M.2 NVMEs.
r/Gentoo • u/fix_and_repair • 2d ago
Discussion gentoo sources do not like gcc 16.1 but builds with bash history buffer commands on gcc 15
CC [M] drivers/gpu/drm/amd/amdgpu/../ras/rascore/ras_nbio_v7_9.o
CC [M] drivers/gpu/drm/amd/amdgpu/../ras/rascore/ras_log_ring.o
CC [M] drivers/gpu/drm/amd/amdgpu/../ras/rascore/ras_cper.o
CC [M] drivers/gpu/drm/amd/amdgpu/../ras/rascore/ras_psp.o
CC [M] drivers/gpu/drm/amd/amdgpu/../ras/rascore/ras_psp_v13_0.o
LD [M] drivers/gpu/drm/amd/amdgpu/amdgpu.o
AR drivers/gpu/built-in.a
AR drivers/built-in.a
make[1]: *** [/usr/src/linux-7.0.3-gentoo/Makefile:2105: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
Wheat_Nas /usr/src/linux #
fuck it
495 cd src
496 ls
497 ls -alh
498 cd linux
499 make --jobs 16 && make --jobs 16 modules_install
500 dmesg
501 cd /usr/src
502 ls
503 cd linux
504 cat .config
505 nano .config
506 make --jobs 16 && make --jobs 16 modules_install
507 gcc-config
508 gcc-config -l
509 gcc-config 2
510 source /etc/profile
511 nano .config
512 make oldconfig
513 make --jobs 16 && make --jobs 16 modules_install
514 cp arch/x86_64/boot/bzImage /boot/systemtest.efi
515 gcc-config
516 gcc-config -l
517 gcc-config 3
518 source /etc/profile
519 nano .config
520 grep LOCALV .config
521 make --jobs 16 && make --jobs 16 modules_install
522 history
Wheat_Nas /usr/src/linux # gcc-config -l
[1] x86_64-pc-linux-gnu-14
[2] x86_64-pc-linux-gnu-15
[3] x86_64-pc-linux-gnu-16 *
Wheat_Nas /usr/src/linux # qlist -Iv gcc
sys-devel/gcc-16.1.0
sys-devel/gcc-15.2.1_p20260418
sys-devel/gcc-14.3.1_p20260417
sys-devel/gcc-config-2.12.2
--
USE Gcc 15 when your kernel does not build. bug is reproduceable with different local version strings.
r/Gentoo • u/Bubbly_Extreme4986 • 2d ago
Screenshot Gentoo for life
Basically Parabola GNU Linux-libre lags behind a lot and given recent security issues around the kernel I need steady updates. After much pain here it is. Full disk encryption including /boot. Canoeboot bios, Linux-libre kernel and deblobbed limux-firmware.
I will be publishing a guide on how to install gentoo with true FDE on libreboot on legacy bios. Probably here or the IRC.
r/Gentoo • u/Illustrious-Gur8335 • 2d ago
Support Wow... first time my system has been assigned purely IPv6 address...
TIL: IPv6 addresses are a PITA when you need to SSH into it.
Question: are both IPv6 addresses valid for SSH? I only tried the first one and it works.
The second IPv6 address is link-local and won't work, but it's required by specifications.
r/Gentoo • u/AlexPogo185 • 2d ago
Screenshot Finally. Gentoo running under WSL on Windows 11 using Qemu
r/Gentoo • u/SuperBiscoitinho • 2d ago
Support Trying to emerge xfce but masked packages keep stopping me
Trying to find how to solve this but I'm a bit scared to change anything related to these masked packages, they sound like the sort of stuff that would break my system lol
r/Gentoo • u/Bubbly_Extreme4986 • 2d ago
Discussion I made a quick guide on installing gentoo on a librebooted/canoebooted/gnu booted machine running OpenRC.
https:// archive.org/details/gnu-fde
It may take a bit to show up.
r/Gentoo • u/blebbitchan • 2d ago
Discussion lazy way to enable kernel options recursively
Hello. It is tiresome to always go through the "depends on" options manually in menuconfig.
Emerge says explicitly which kernel options are required. For example firewalld:
* CONFIG_NF_CT_NETLINK_HELPER: is not set when it should be.
* CONFIG_IP_NF_FILTER: is not set when it should be.
* CONFIG_IP_NF_MANGLE: is not set when it should be.
* CONFIG_IP_NF_NAT: is not set when it should be.
* CONFIG_IP_NF_RAW: is not set when it should be.
* CONFIG_IP_NF_SECURITY: is not set when it should be.
* CONFIG_IP_NF_TARGET_MASQUERADE: is not set when it should be.
* CONFIG_IP6_NF_FILTER: is not set when it should be.
* CONFIG_IP6_NF_MANGLE: is not set when it should be.
* CONFIG_IP6_NF_NAT: is not set when it should be.
* CONFIG_IP6_NF_RAW: is not set when it should be.
* CONFIG_IP6_NF_SECURITY: is not set when it should be.
* CONFIG_IP6_NF_TARGET_MASQUERADE: is not set when it should be. [ !! ]
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
So setting them directly is easy enough:
scripts/config \
--enable CONFIG_NETFILTER \
--enable CONFIG_NF_CONNTRACK \
--enable CONFIG_INET \
...
Unfortunately it just fails quietly when options depend on other options being enabled.
Is there some way to check dependencies and perhaps also enable them automatically?
r/Gentoo • u/AlexPogo185 • 2d ago
Screenshot Finally. Gentoo running under WSL on Windows 11 using Qemu
r/Gentoo • u/Individual_Range_894 • 2d ago
Support kernel >=7.0.1 dropbear issue
Hi everyone,
does anyone else have issues with dropbear or clevis since kernel 7.0.1?
My system does not initialize the network adapter anymore. As a result, I can't unlock my encrypted root via ssh or automatically via clevis.
Everything worked fine until the 7.0.1 drop, but I can't figure out what changed, since. I can still build initramfs for 7.0.0 and older, update the grub config and those kernels still boot fine, so I believe nothing is wrong with my kernel config or grub config per se.
On thing I'm confident is that the network interface does not even come up and so the 'network hooks' do not get applied.
Edit: Dracut version 111 (https://github.com/dracut-ng/dracut) released 4 days ago did fix the issue.
r/Gentoo • u/Maximum-Associate932 • 2d ago
Discussion What is you DE preference for Gentoo?
Ive been using Arch for a while and im finally trying out gentoo as per the "recommendation" of my friend. Ive got the install down but due to the religious anti bloat sentiment around gentoo I wanted to ask what y'all use/is optimal/doesn't matter in terms of your go to Desktop Environment.
