2003-01-20 22:25:55

by Jim Holliaoke

[permalink] [raw]
Subject: /dev/initctl

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


2003-01-21 00:18:35

by Miquel van Smoorenburg

[permalink] [raw]
Subject: Re: /dev/initctl

In article <[email protected]>,
Jim Holliaoke <[email protected]> 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*! -- [email protected]