Page MenuHomeFreeBSD

etc: add config tag to /root/.k5login
ClosedPublic

Authored by ivy on Apr 19 2025, 5:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 17, 11:19 AM
Unknown Object (File)
Mon, Dec 15, 4:39 PM
Unknown Object (File)
Thu, Nov 27, 3:52 PM
Unknown Object (File)
Wed, Nov 26, 7:21 PM
Unknown Object (File)
Nov 17 2025, 1:18 AM
Unknown Object (File)
Nov 17 2025, 1:18 AM
Unknown Object (File)
Nov 14 2025, 10:28 AM
Unknown Object (File)
Nov 14 2025, 5:06 AM
Subscribers

Details

Summary

this prevents the file being overwritten every time FreeBSD-runtime is
upgraded.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Apr 19 2025, 5:48 AM

I went looking for other examples of the config tag and saw that none of /root/.shrc, /root/.profile, /root/.cshrc, /root/.login have it. We should probably fix that. I believe adding ROOTTAGS=config to bin/sh/Makefile and bin/csh/Makefile will do the trick.

In D49907#1137997, @des wrote:

I went looking for other examples of the config tag and saw that none of /root/.shrc, /root/.profile, /root/.cshrc, /root/.login have it.

but, they do end up with the config tag in the built system (worldstage/runtime.plist):

@config(root,wheel,0644,) /root/.profile
@config(root,wheel,0644,) /root/.shrc

/root/.k5login seems to be the only one missing. my recollection (when i originally fixed this a couple months back) is that the other files are part of things that already have the correct Makefile logic for this (like sh, csh) while k5login was missed because it's installed specially.

We should probably fix that. I believe adding ROOTTAGS=config to bin/sh/Makefile and bin/csh/Makefile will do the trick.

i am not opposed to this but, given these files already install with the correct tags, is it necessary?

In D49907#1138529, @ivy wrote:

i am not opposed to this but, given these files already install with the correct tags, is it necessary?

No, it's clearly already taken care of by some magic elsewhere that I'm not aware of.

This revision is now accepted and ready to land.Apr 21 2025, 5:26 PM
This revision was automatically updated to reflect the committed changes.