I installed Fedora 41 on my system a few days ago. I had Fedora 40 running previously.
I ran into some initial problems using my existing “/home” partition, but was able to resolve those with help from this board.
Starting today, when my computer boots, it does not mount “/home” at all. I can log in, but everything is default and I have to run “sudo mount -a” to get “/home” to mount.
This is very annoying because it resets all my configuration every time I reboot.
Could you provide some more details? Given that there was F40 installed previously, how did you install F41: by upgrading the existing system or by reinstalling?
In case of reinstalling, did you preserve the existing /home directory?
Please provide the output from cat /etc/fstab/, from inxi -Fzxx and from journalctl -b | grep -B 5 -A 5 home (the latter one run right after a reboot).
Please also provide the link to the other thread where you’ve got help on fixing the previous issues with the /home partition.
I’d be happy to hear other recommendations, other than disabling SELinux.
I’ll be honest, I don’t really understand the value of SELinux, especially for single user systems.
It seems to cause a lot of other trouble for me. For example, podman can’t mount my home directory with SELinux enabled. I get permission denied, and when I use the :z option, it says it can’t relable it.
Disabling the SELinux module because you have an issue is the equivalent of turning off your firewall because you want to run permit inbound SSH traffic. It will work but it’s not really advisable.
You’d be better off learning a little about selinux, what the message means, finding the rule which prevents the systemd-fstab-generastor from reading /etc/fstab and amending it (or writing a new rule to permit that access.
You could always drop into SELinux permissive mode to make sure you have the right issue tracked down before applying the new rule.
I had to do a similar thing with F40 when I wanted to create a VPN to one of my servers and my certificate file was blocked from being read by an existing SELinux rule. Perfectly OK on my previous installation using a different distro but not on Fedora.
Given that the OP has freshly installed F41, it’s a fair expectation for the system to be working OOTB, without any SELinux adjustments. However, there are issues, possibly caused by the fact that during installation an existing /home subvolume has been reused, but not necessarily.
@endlisnis, the first thing you could try is to set SELinux to permissive mode (by using the kernel argument enforcing=0), and then autorelabeling the filesystem(s) (with fixfiles -F onboot and rebooting*).
If it works, than you can reset SELinux to enforcing mode. The sestatus command will tell you the current mode.
*EDIT: You might want to reboot twice, to be able to see if the solution is working (possibly needed in case /etc/fstab has a mislabling as well).
I modified /etc/fstab after initial installation of F41 (to add in my network mounts). I did this by copying the file to my home directory, appending some data to it, and then copying it back. I’m assuming that I messed up the SELinux labelling of the file during that procedure. I doubt this is a “bug” in F41, probably just me not understanding SELinux.