linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* /dev/initctl
@ 2003-01-20 22:34 Jim Holliaoke
  2003-01-21  0:27 ` /dev/initctl Miquel van Smoorenburg
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Holliaoke @ 2003-01-20 22:34 UTC (permalink / raw)
  To: linux-kernel

Folks,
    When I try to boot my linux system using a rescue
disk, login as root, mount my root filesystem,
pivot_root to it and try to execute '/sbin/init', I
get an error that says 'error opening/writing control
channel /dev/initctl'. I understand that /dev/initctl
is a FIFO that used to pass messages to init and the
error message is probably caused by the absence of the
running process on the other end to pick up the
message, but isn't this the feat that an initrd
achieves with no special effort? Am I understanding
this right or is executing init from an interactive
shell prohibited?

    I have tried to find an anwser at several places
on the internet, to no avail. I'd love it if someone
could clarify this for me. 

    Please CC me as I'm not subscribed to the list.

thanks,
Jim

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /dev/initctl
  2003-01-20 22:34 /dev/initctl Jim Holliaoke
@ 2003-01-21  0:27 ` Miquel van Smoorenburg
  0 siblings, 0 replies; 2+ messages in thread
From: Miquel van Smoorenburg @ 2003-01-21  0:27 UTC (permalink / raw)
  To: linux-kernel

In article <20030120223459.57535.qmail@web21512.mail.yahoo.com>,
Jim Holliaoke  <jholliaoke@yahoo.co.uk> wrote:
>    When I try to boot my linux system using a rescue
>disk, login as root, mount my root filesystem,
>pivot_root to it and try to execute '/sbin/init', I
>get an error that says 'error opening/writing control
>channel /dev/initctl'. I understand that /dev/initctl
>is a FIFO that used to pass messages to init and the
>error message is probably caused by the absence of the
>running process on the other end to pick up the
>message, but isn't this the feat that an initrd
>achieves with no special effort? Am I understanding
>this right or is executing init from an interactive
>shell prohibited?

Exactly, you cannot execute init from a shell. Init *must* have
process-id #1. If your shell is PID #1, try exec /sbin/init

If init isn't PID #1, it behaves like 'telinit'.

Mike.
-- 
They all laughed when I said I wanted to build a joke-telling machine.
Well, I showed them! Nobody's laughing *now*! -- acesteves@clix.pt


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-21  0:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-20 22:34 /dev/initctl Jim Holliaoke
2003-01-21  0:27 ` /dev/initctl Miquel van Smoorenburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).