Date: Sun, 17 Sep 2000 13:04:22 -0600 From: Warner Losh <imp@village.org> To: arch@freebsd.org, sjr@home.net Subject: sysctl on boot. Message-ID: <200009171904.NAA24354@harmony.village.org>
next in thread | raw e-mail | index | archive | help
Stephen Roznowski reports in PR conf/19629 that there's a weakness in /etc/rc.sysctl. As it stands now, it runs early in the boot process. And it needs to run early in the boot process for many sysctls. However, there is a problem. If you modload a driver or module after this point, any variables set early in the boot process will not be effective (because the setting fails). A short term fix is to just rerun /etc/rc.sysctl at the end of the boot sequence, just before the secrelevel change. Stephen's PR suggests this with a patch. I think it is good, but wanted to get some feedback from others before doing this. A long term fix might be to give the kernel a memory so it can initialize the sysctls from the get go. However, that's much harder to pull off and a whole lot more work. Comments? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009171904.NAA24354>