From owner-freebsd-current  Mon Mar  3 18: 8: 2 2003
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1D6F637B401
	for <current@FreeBSD.org>; Mon,  3 Mar 2003 18:08:00 -0800 (PST)
Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 80CBA43FCB
	for <current@FreeBSD.org>; Mon,  3 Mar 2003 18:07:58 -0800 (PST)
	(envelope-from keramida@ceid.upatras.gr)
Received: from gothmog.gr (patr530-a027.otenet.gr [212.205.215.27])
	by mailsrv.otenet.gr (8.12.8/8.12.8) with ESMTP id h2427s5q005675;
	Tue, 4 Mar 2003 04:07:55 +0200 (EET)
Received: from gothmog.gr (gothmog [127.0.0.1])
	by gothmog.gr (8.12.8/8.12.8) with ESMTP id h2427r9w000766;
	Tue, 4 Mar 2003 04:07:54 +0200 (EET)
	(envelope-from keramida@ceid.upatras.gr)
Received: (from giorgos@localhost)
	by gothmog.gr (8.12.8/8.12.8/Submit) id h2426Whr000705;
	Tue, 4 Mar 2003 04:06:32 +0200 (EET)
	(envelope-from keramida@ceid.upatras.gr)
Date: Tue, 4 Mar 2003 04:06:32 +0200
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: Michal Mertl <mime@traveller.cz>
Cc: current@FreeBSD.org
Subject: Re: potential for foot-shooting with KLD's
Message-ID: <20030304020632.GA681@gothmog.gr>
References: <20030302153608.P44831@prg.traveller.cz> <20030303171905.GC56386@gothmog.gr> <20030304004124.B68258@prg.traveller.cz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030304004124.B68258@prg.traveller.cz>
Sender: owner-freebsd-current@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-current.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-current>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-current>
X-Loop: FreeBSD.ORG

On 2003-03-02 17:34, Michal Mertl <mime@traveller.cz> wrote:
: Imagine you decided to go with modular kernel. You comment out 'device
: random' in your kernel-config and place 'random_load="YES"' in
: /boot/loader.conf. When you reboot and don't rebuild the kernel first, you
: have your machine unbootable - at least in case you previously had acpi in
: your kernel and acpi doesn't work without OS supplied dsdt (as in my
: case) or you need acpi as a module or any other module.
:
: The way out is to boot from install CDROM, have fixit floppy, mount the
: old root and remove the random.ko module. Which is pretty inconvenient,
: when you don't have the medias handy.
:
: The problem is that I can't ask loader not to load some module. It doesn't
: understand 'unset XX_load'. It doesn't work to say 'set XX_load="NO"'
: either. The only way I found to make it not load the modules is to 'load
: /boot/kernel/kernel;set module_path="";boot'. Unfortunately it doesn't
: help me either because I need to load special acpi_dsdt.aml which isn't
: then loaded either.

On 2003-03-03 17:19:05, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
:
: How about `unset XX_load' ?
:
: - Giorgos

On 2003-03-04 00:41, Michal Mertl <mime@traveller.cz> wrote:
: > How about `unset XX_load' ?
:
: It works only for acpi.

I just tried editing my /boot/loader.conf to make sure you haven't hit
upon a bug.  I added this line:

	ipfw_load="YES"

and rebooted.  The loader loaded both /boot/kernel/kernel and ipfw.ko
as you'd expect.  I then used the `unload' command and loaded only my
kernel afterwards:

	OK unload
	OK load /boot/kernel/kernel
	OK boot -s

Voila!  Only my kernel and acpi.ko were loaded.  Then, without editing
my /boot/loader.conf I rebooted and inteerrupted the loader after
ipfw.ko and the kernel were loaded.  I disabled ACPI with:

	OK unset acpi_load
	OK boot -s

Only the kernel and ipfw.ko were loaded.  Then, I tried yet another
way of disabling ipfw.ko at load time, and set ipfw_load to "NO" in
my loader.conf.  Only the kernel and acpi.ko were loaded.

What is it that troubles you?  I'm not sure I can reproduce it.

- Giorgos

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message