On 31/05/14(Sat) 10:29, Jean-Philippe Ouellet wrote:
> Hello,
> 
> As of the last snapshot I am unable to power down or reboot.
> Instead, it hangs after
>   syncing disks... done
>   sd1 detached
> 
> Suspend/resume still works fine, and I've never tried hibernating.
> 
> Maybe it has something to do with this commit?:
> http://marc.info/?l=openbsd-cvs&m=140145760105962

It is certainly related to this commit.  Could you try the diff below
and tell me if it helps, it seems that the last real shutdown hook used
by softraid does not work if cold is set to 1.

Index: amd64//machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/machdep.c,v
retrieving revision 1.178
diff -u -p -r1.178 machdep.c
--- amd64//machdep.c    30 May 2014 13:46:16 -0000      1.178
+++ amd64//machdep.c    31 May 2014 14:59:23 -0000
@@ -783,7 +783,6 @@ boot(int howto)
 
        uvm_shutdown();
        splhigh();              /* Disable interrupts. */
-       cold = 1;
 
        /* Do a dump if requested. */
        if (howto & RB_DUMP)
@@ -791,6 +790,7 @@ boot(int howto)
 
 haltsys:
        doshutdownhooks();
+       cold = 1;
        mainbus = device_mainbus();
        if (mainbus != NULL)
                config_suspend(mainbus, DVACT_POWERDOWN);

Reply via email to