On Sat, Nov 16, 2002 at 05:44:01PM +0100, Anders Andersson wrote:
> On Sat, Nov 16, 2002 at 11:35:49AM -0500, Craig Rodrigues wrote:
> > Could you try the following?
> > 
> > At the boot prompt, before the kernel boots up:
> > 
> > unset acpi_load
> > set boot_verbose=YES
> > boot -v
> 
> OK, now I feel stupid since I could swear that I already did try to
> disable ACPI.
> 
> But with ACPI disabled it boots fine.
> 
> phk, sorry to confuse you :-)



I had a very similar problem.  I had a system here which would crash upon
bootup when acpi was loaded.  Since I couldn't boot into the system to
read the man pages, I didn't know what to do.

At the boot prompt, I typed show.  It clearly listed:
acpi_load=YES

I then typed:
set acpi_load=NO
boot

Of course, the system still tried to load acpi, and crashed.
The correct thing to do would have been to read loader(8), and deduce
that it would be necessary to unset acpi_load in order to not load
acpi.  This tripped me up, and might trip other new users who try 5.0.

Would a patch of this sort be something to consider?


--- sys/boot/i386/libi386/i386_module.c.orig    Sat Nov 16 15:01:07 2002
+++ sys/boot/i386/libi386/i386_module.c Sat Nov 16 15:20:04 2002
@@ -57,7 +57,8 @@
        disabled = 1;
     }
 
-    if (getenv("acpi_load") && (!disabled)) {
+    rv = getenv("acpi_load");
+    if (rv != NULL && (!disabled) && (strcasecmp(rv,"NO") != 0)) {
        error = mod_load("acpi", NULL, 0, NULL);
        if (error != 0)
            printf("ACPI autoload failed - %s\n", strerror(error));


-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to