Pledge shutdown halt

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Pledge shutdown halt

Ian McWilliam-2

Anybody see this on shutdown? 

shutdown -hp now

        *** FINAL System shutdown message from [hidden email]

         ***                                         
                                 

        System going down IMMEDIATELY 

        System shutdown time has arrived

        halt: revoke: Inappropriate ioctl for device

        Kernel and userland built today

        OpenBSD 5.8-current (GENERIC.MP) #0: Wed Nov 18 14:15:33 AEDT 2015

         
  [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Machine still shuts down and powers off.

        Ian McWilliam
Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Theo de Raadt
>
> Anybody see this on shutdown?=C2=A0
>
> shutdown -hp now
>
> *** FINAL System shutdown message from [hidden email]
>
> System going down IMMEDIATELY=C2=A0
>
> System shutdown time has arrived=20
>
> halt: revoke: Inappropriate ioctl for device

I think your kernel is very slightly out of sync, but will double
check the changes I made.

Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Andreas Kusalananda Kähäri
In reply to this post by Ian McWilliam-2
I also get this with sources updated on Monday.

Andreas


On Wed, Nov 18, 2015 at 03:56:46PM +1100, Ian McWilliam wrote:

>
> Anybody see this on shutdown? 
>
> shutdown -hp now
>
> *** FINAL System shutdown message from [hidden email]
>
>  ***                                         
>                                  
>
> System going down IMMEDIATELY 
>
> System shutdown time has arrived
>
> halt: revoke: Inappropriate ioctl for device
>
> Kernel and userland built today
>
> OpenBSD 5.8-current (GENERIC.MP) #0: Wed Nov 18 14:15:33 AEDT 2015
>
>  
>   [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> Machine still shuts down and powers off.
>
> Ian McWilliam
>

--
:: Andreas Kusalananda Kähäri
:: Bioinformatics Developer
:: Uppsala, Sweden
::----------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Theo de Raadt-2
In reply to this post by Ian McWilliam-2
What ttys are you guys rebooting from.  Is it seen on console?  Or... is it
only seen from xterm...?

Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Raf Czlonka-2
In reply to this post by Theo de Raadt
On Wed, Nov 18, 2015 at 05:43:15AM GMT, Theo de Raadt wrote:

> >
> > Anybody see this on shutdown?=C2=A0
> >
> > shutdown -hp now
> >
> > *** FINAL System shutdown message from [hidden email]
> >
> > System going down IMMEDIATELY=C2=A0
> >
> > System shutdown time has arrived=20
> >
> > halt: revoke: Inappropriate ioctl for device
>
> I think your kernel is very slightly out of sync, but will double
> check the changes I made.

Same here with '-r' on recent snapshots:

    reboot: revoke: Inappropriate ioctl for device

Raf

Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Raf Czlonka-2
In reply to this post by Theo de Raadt-2
On Wed, Nov 18, 2015 at 06:31:57AM GMT, Theo de Raadt wrote:
> What ttys are you guys rebooting from.  Is it seen on console?  Or... is it
> only seen from xterm...?

Both local console and over SSH.

Raf

Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Andreas Kusalananda Kähäri
In reply to this post by Theo de Raadt-2
On Tue, Nov 17, 2015 at 11:31:57PM -0700, Theo de Raadt wrote:
> What ttys are you guys rebooting from.  Is it seen on console?  Or... is it
> only seen from xterm...?
>

I just now rebuilt my amd64 machine with a fresh checkout from
"[hidden email]:/cvs".

The message displays in the terminal from which the command was
executed.  Rebooting as root in the console, I see the message in the
console.  Rebooting with "doas reboot" from logging in as a user with
SSH I get the same:

$ doas reboot
reboot: revoke: Inappropriate ioctl for device
Shared connection to xxx.xxx.xx.xxx closed.
Connection to xxx.xxx.xx.xxx closed by remote host.

I do not run X.

--
:: Andreas Kusalananda Kähäri
:: Bioinformatics Developer
:: Uppsala, Sweden
::----------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Stuart Henderson-6
In reply to this post by Theo de Raadt-2
On 2015/11/17 23:31, Theo de Raadt wrote:
> What ttys are you guys rebooting from.  Is it seen on console?  Or... is it
> only seen from xterm...?

In my case, reboot is run from an ssh session, the message is seen on
that session, and system console is on serial.

Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Ian McWilliam-2
In reply to this post by Theo de Raadt-2
On 18/11/2015 5:31 PM, Theo de Raadt wrote:
> What ttys are you guys rebooting from.  Is it seen on console?  Or... is it
> only seen from xterm...?
>
>
ssh session. I'll have to check the console tomorrow. No X configured to
run on the box.

Ian McWilliam

Reply | Threaded
Open this post in threaded view
|

Re: Pledge shutdown halt

Ian McWilliam-2
 

----- Original Message -----
From: "Ian McWilliam"
To:"Theo de Raadt" ,
Cc:
Sent:Wed, 18 Nov 2015 20:09:58 +1100
Subject:Re: Pledge shutdown halt

 On 18/11/2015 5:31 PM, Theo de Raadt wrote:
 > What ttys are you guys rebooting from. Is it seen on console? Or...
is it
 > only seen from xterm...?
 >
 >
 ssh session. I'll have to check the console tomorrow. No X configured
to
 run on the box.

 Ian McWilliam

Rebuilt kernel + userland from todays sources.

        OpenBSD 5.8-current (GENERIC.MP) #0: Thu Nov 19 10:32:02 AEDT 2015

         
  [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
The message is no longer displayed on reboot / shutdown on ssh session
or console.
Ian McWilliam