From owner-freebsd-current Thu Sep 21 7:41:26 2000 Delivered-To: freebsd-current@freebsd.org Received: from scully.zoominternet.net (scully.zoominternet.net [63.67.120.3]) by hub.freebsd.org (Postfix) with SMTP id 5818437B422 for ; Thu, 21 Sep 2000 07:41:23 -0700 (PDT) Received: (qmail 29419 invoked from network); 21 Sep 2000 14:31:15 -0000 Received: from acs-24-154-25-35.zoominternet.net (24.154.25.35) by scully.zoominternet.net with SMTP; 21 Sep 2000 14:31:15 -0000 Date: Thu, 21 Sep 2000 10:31:05 -0400 (EDT) From: Donn Miller X-Sender: dmmiller@acs-24-154-25-35.zoominternet.net To: current@freebsd.org Subject: kldload and alternate kernel locations... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Normally, kldload can only find .ko modules in /boot/kernel. What if you have KERNEL=MYKERNEL set in /etc/make.conf, for instance, which will result in a kernel installed in /boot/MYKERNEL? kldload doesn't find the modules then (because all the .ko's are in /boot/MYKERNEL). I've first noticed this problem at start-up, when I got the message: green_saver: not found or something to that extent. Basically, there's a line in /etc/rc.i386 which says: kldstat -v | grep -q _saver || kldload ${saver}_saver I think we should change it to something like kldstat -v | grep -q _saver || kldload /boot/${kernel}/${saver}_saver because kldload can't find modules not installed in /boot/kernel. I think /etc/rc.i386 should include /boot/loader.conf to determine the location of the .ko modules, since that's where $kernel is defined. Another solution (instead of modifying rc.i386) would be to modify kldload so that it somehow checks the value of $kernel set in /boot/loader.conf to check the location of kernel modules. I think this is a more elegant solution, but I don't know if it's necessarily easier. - Donn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message