Page MenuHomeFreeBSD

fix /etc/rc.d/gssd so that it doesn't run before /usr is mounted
ClosedPublic

Authored by rmacklem on Nov 13 2020, 1:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 14, 12:07 AM
Unknown Object (File)
Fri, Jan 9, 10:48 AM
Unknown Object (File)
Tue, Jan 6, 12:35 PM
Unknown Object (File)
Mon, Jan 5, 10:38 PM
Unknown Object (File)
Sat, Jan 3, 3:12 AM
Unknown Object (File)
Dec 15 2025, 11:12 AM
Unknown Object (File)
Dec 13 2025, 9:23 PM
Unknown Object (File)
Dec 10 2025, 10:50 PM
Subscribers

Details

Summary

meowthink@gmail.com reported that the gssd daemon was not
starting, because /etc/rc.d/gssd was executed before his local
/usr file system was mounted.
He fixed the problem by adding mountcritlocal to the REQUIRED
line.

This fix seems safe and works for a separately mounted /usr file
system on a local disk.
The case of a separately mounted remote /usr file system (such as
NFS) is still broken, but there is no obvious solution for that.
Adding mountcritremote would fix the problem, but it would
cause a POLA violation, because all kerberized NFS mounts
in /etc/fstab would need the "late" option specified to work.

Test Plan

Tested with/without gssd_enable="YES" in /etc/rc.conf.
(The gssd started fine on the system, which does have
a separately mounted /usr from a local disk.)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 34778

Event Timeline

Seems reasonable. I've not tested it.

I wonder if this one should get a Relnotes: yes, so that users get reminded about it when 13.0 is released.

etc/rc.d/gssd
7

I am not sure, but maybe it should be sorted alphabetically? Just an idea.

This revision is now accepted and ready to land.Nov 13 2020, 9:44 AM