You are not logged in.

#1 2004-11-30 00:27:14

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

"init 1" & udev issue?

Well, for the first time since I upgraded to udev, I tried "init 1", and it almost worked  sad

All of the daemons are stopped but then I get:

> Entering single user mode ...
init: /dev/initctl: No such file or directory
INIT: no more processes left in the runlevel

When I look for /dev/init, I get:

prw-------  1 root root 0 2004-11-29 18:45 /dev/initctl

I originally thought I needed permission as user so I did a chmod 666 on the node, but for not. I am pretty darn sure that "init 1" worked fine before the udev upgrade. (Now with that said and some of my moronic questions that I have posted lately, one should not really believe me all that much  :? )

Offline

#2 2004-11-30 05:05:43

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: "init 1" & udev issue?

Yep, I can confirm this bug.

Thanks dekernel.  I'll have a fix out soon.

Offline

#3 2004-11-30 05:31:22

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: "init 1" & udev issue?

Quick fix:

--- /etc/rc.single      2004-11-23 14:41:40.000000000 -0800
+++ rc.single   2004-11-29 21:31:03.000000000 -0800
@@ -57,6 +57,7 @@
 if [ "$RUNLEVEL" = "1" ]; then
        printsep
        printhl "Entering single-user mode..."
+       /bin/kill -HUP 1
        exec /sbin/init -t1 S
 fi
 

Offline

#4 2004-11-30 22:42:13

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: "init 1" & udev issue?

Works like a champ!

Offline

#5 2004-11-30 23:05:43

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: "init 1" & udev issue?

Looks like I posted to soon. Once I do a "init 1" and then do a "init 3" (my default is 3 in inittab). Everything appears to be okay until I start KDE.
The problem is that I can't seem to get a shell. Konsole just opens a window without a shell running.

When I did a Ctrl-Alt-Backspace to kill KDE (I did this because I wanted to see the screen output).
I did some errors like:
kdecore: (KProcess): WARNING: Can't open pseudo teletype
...
kded: Fatal IO error: client killed

Any idea's? All daemons appeared to start ok including UDev.

Offline

#6 2004-12-01 12:34:49

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: "init 1" & udev issue?

One thing I noticed was during the processing of "init 1", it appears that UDev is attempted to be started. Not sure if this is correct. Once root's password is entered, udevd is still running. Is this correct in maintance mode?

Next, when I do a "init 3" to get back, I still have to do:
1) mount /dev/pts
2) mount /dev/shm
before I can get my consoles back under KDE. My guess this is not limited to KDE, but that is the only WM that I have installed.

Offline

#7 2004-12-02 04:07:32

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: "init 1" & udev issue?

Here is what I think needs to be done, and I am hoping that someone can set me straight here because my knowledge here is nothing short of shallow to nil!!!!

It looks like both /dev/pts and /dev/shm are unmounted during the 'init 1' action, but /etc/mtab does not reflect this. May I venture a guess that /etc/rc.single needs to check for entries in /etc/mtab for either entry and remove accordingly. Then /etc/rc.multi needs to check /etc/mtab for either and mount accordingly?

Do I get even a point for trying?

Offline

Board footer

Powered by FluxBB