[Bug 272129] rc.d/kld should run before rc.d/sysctl

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 21 Jun 2023 11:12:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272129

            Bug ID: 272129
           Summary: rc.d/kld should run before rc.d/sysctl
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: dfr@rabson.org

Kernel modules can add sysctl entries. If the user wishes to change the default
value of those sysctls,= using sysctl.cont, they must load the kld before
rc.d/sysctl runs. In practice this means loading it at boot time via
/boot/loader.conf even though loading later in the boot process via rc.conf's
kld_list variable is more efficient. Adding 'REQUIRE: kld' to rc.d/sysctl would
make the ordering of these two scripts deterministic and allows sysctl.conf to
manage sysctl variables for kernel modules loaded via kld_list.

-- 
You are receiving this mail because:
You are the assignee for the bug.