Page MenuHomeFreeBSD

rc: Improve load_kld
ClosedPublic

Authored by des on Sat, Jun 20, 1:18 PM.
Tags
None
Referenced Files
F161714918: D57706.id180155.diff
Mon, Jul 6, 4:51 AM
F161710272: D57706.id.diff
Mon, Jul 6, 4:01 AM
Unknown Object (File)
Sat, Jul 4, 11:00 PM
Unknown Object (File)
Sat, Jul 4, 5:54 AM
Unknown Object (File)
Sat, Jul 4, 5:35 AM
Unknown Object (File)
Sat, Jul 4, 5:33 AM
Unknown Object (File)
Fri, Jul 3, 9:28 PM
Unknown Object (File)
Fri, Jul 3, 9:25 PM
Subscribers

Details

Summary
  • Centralize the usage message.
  • Document and enforce that -e and -m are mutually exclusive; previously, speficying both would result in only -e being applied.
  • If -e was not specified, and -m was not specified or did not match, fall back to kldstat -n file which will always work for modules that aren't built into the kernel.

This means the kld and ntpd scripts can now rely on load_kld to dtrt.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74055
Build 70938: arc lint + arc unit