From owner-freebsd-current Thu Mar 6 4:26:35 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 E0DCE37B401 for ; Thu, 6 Mar 2003 04:26:33 -0800 (PST) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0935B43F3F for ; Thu, 6 Mar 2003 04:26:32 -0800 (PST) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h26CQR908622; Thu, 6 Mar 2003 09:26:27 -0300 Message-ID: <3E673E73.3050108@tcoip.com.br> Date: Thu, 06 Mar 2003 09:26:27 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Michal Mertl Cc: current@FreeBSD.ORG Subject: Re: potential for foot-shooting with KLD's References: <20030302153608.P44831@prg.traveller.cz> In-Reply-To: <20030302153608.P44831@prg.traveller.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Michal Mertl wrote: > Imagine you decided to go with modular kernel. You comment out 'device > random' in your kernel-config and place 'random_load=3D"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 does= n't > understand 'unset XX_load'. It doesn't work to say 'set XX_load=3D"NO"'= > either. The only way I found to make it not load the modules is to 'loa= d > /boot/kernel/kernel;set module_path=3D"";boot'. Unfortunately it doesn'= t > help me either because I need to load special acpi_dsdt.aml which isn't= > then loaded either. > > The fix could be to be able to say 'unset XX_load' or make 'set > XX_load=3D"NO"' work. The other fix (probably more difficult to do) > would be to make all modules loading/linking fail when they're > statically compiled in. Alas, granted that I can't test this atm, but from commit logs it seems=20 that -current *does* document this in "?" too! Shame on you! :-) --=20 Daniel C. Sobral Ger=EAncia de Opera=E7=F5es Divis=E3o de Comunica=E7=E3o de Dados Coordena=E7=E3o de Seguran=E7a TCO Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message