Filesystems from fstab are not mounted automatically on boot

I found that it’s not able to mount anything automatically, even if I comment out the NFS mounts. It was actually an SELinux problem, as indicated by this message:

Jan 08 19:24:15 nepe kernel: audit: type=1400 audit(1736360655.149:4): avc:  denied  { read } for  pid=1455 comm="systemd-fstab-g" name="fstab" dev="dm-0" ino=26485206 scontext=system_u:system_r:sy>
Jan 08 19:24:15 nepe systemd-fstab-generator[1455]: Failed to open /etc/fstab: Permission denied

After doing restorecon /etc/fstab, it now works well again. (The solution was to have the patience to read through the full system log)

1 Like