Page MenuHomeFreeBSD

Make LOCALBASE available as a sysctl value
ClosedPublic

Authored by se on Oct 29 2020, 3:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 6, 11:32 PM
Unknown Object (File)
Sat, Feb 28, 2:08 AM
Unknown Object (File)
Thu, Feb 26, 10:45 AM
Unknown Object (File)
Sat, Feb 21, 11:17 PM
Unknown Object (File)
Sat, Feb 21, 11:08 PM
Unknown Object (File)
Sat, Feb 21, 7:54 PM
Unknown Object (File)
Sun, Feb 15, 11:09 AM
Unknown Object (File)
Dec 26 2025, 3:28 AM
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