Page MenuHomeFreeBSD

Make LOCALBASE available as a sysctl value
ClosedPublic

Authored by se on Oct 29 2020, 3:21 PM.
Tags
None
Referenced Files
F107821212: D27009.diff
Sat, Jan 18, 12:21 PM
F107815033: D27009.diff
Sat, Jan 18, 10:25 AM
Unknown Object (File)
Sat, Jan 11, 11:37 AM
Unknown Object (File)
Sun, Jan 5, 9:55 AM
Unknown Object (File)
Dec 12 2024, 8:25 PM
Unknown Object (File)
Nov 22 2024, 11:03 AM
Unknown Object (File)
Nov 20 2024, 2:38 PM
Unknown Object (File)
Nov 3 2024, 8:33 PM
Subscribers
None

Details

Summary

Make the value of _PATH_LOCALBASE the base system was built with available to user-land programs, libraries and scripts

This sysctl variable could e.g. be used in the rc framework to adjust values in /etc/defaults/rc.conf to the LOCALBASE of the running system, in most cases removing the need to locally overwrite the default values.
Start-up scripts that have to consider port/package supplied data could also be adjusted to use this value.

Test Plan

Build kernel and world with these patches applied
Test that "sysctl user.localbase" returns the value that has been used to build the world.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable