Page MenuHomeFreeBSD

Allow rc.initdiskless to find configuration in subdirectories.
AcceptedPublic

Authored by jonathan on May 31 2016, 7:16 PM.
Tags
Referenced Files
Unknown Object (File)
Jan 9 2024, 5:08 AM
Unknown Object (File)
Dec 20 2023, 2:18 AM
Unknown Object (File)
Nov 9 2023, 6:25 PM
Unknown Object (File)
Nov 8 2023, 3:56 PM
Unknown Object (File)
Oct 8 2023, 5:21 PM
Unknown Object (File)
Oct 7 2023, 2:48 PM
Unknown Object (File)
Sep 26 2023, 5:54 PM
Unknown Object (File)
Sep 16 2023, 10:17 PM
Subscribers

Details

Reviewers
crees
rwatson
Summary

The current implementation of rc.initdiskless uses a glob pattern to find
local configuration directories and files, e.g., /conf/192.168.1.1/etc.
This approach has the limitation of only working with a single level of
configuration directory: one cannot use /conf/192.168.1.1/etc/ssh, as that
will be seen as an "/ssh" directory.

This commit uses find(1) instead, which is a little more complex but allows
for more sophisticated diskless setups, e.g., with custom per-host
/etc/ssh/sshd_config files.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4055
Build 4098: arc lint + arc unit

Event Timeline

jonathan retitled this revision from to Allow rc.initdiskless to find configuration in subdirectories..
jonathan updated this object.
jonathan edited the test plan for this revision. (Show Details)
jonathan added reviewers: crees, rwatson.
crees edited edge metadata.

I was thinking that I prefer something like * */* */*/*, but it is probably no faster and certainly less clear (and off the top of my head it might even break if unmatched?).

This is better.

This revision is now accepted and ready to land.May 31 2016, 9:47 PM