HomeFreeBSD

rc.d: unbreak sysctl lastload

Description

rc.d: unbreak sysctl lastload

/etc/rc.d/securelevel is supposed to run /etc/rc.d/sysctl lastload
late at boot time to apply /etc/sysctl.conf settings that fail
to apply early. However, this does not work in default configuration
because of kern_securelevel_enable="NO" by default.

Add new script /etc/rc.d/sysctl_lastload that starts unconditionally.

Reported by: Marek Zarychta
MFC after: 1 month

(cherry picked from commit f4b38c360e63a6e66245efedbd6c070f9c0aee55)

Details

Provenance
eugen_grosbein.netAuthored on May 19 2021, 1:02 PM
Parents
rG8b9b3d90de5d: UPDATING: Not unusual side effect of the awk bug fixed in 40a925385fa6b
Branches
Unknown
Tags
Unknown