Marco d'Itri wrote:
> reassign 397002 upstart
> thanks
> 
> On Nov 04, Jan Hudec <[EMAIL PROTECTED]> wrote:
> 
>> The /etc/init.d/udev script thinks it's run from interactive shell when being
>> run from upstart (init replacement). That is because
>> RUNLEVEL and PRELEVEL are not set and /proc/self/fd/0 is /dev/null, which is

Having RUNLEVEL/PREVLEVEL set to the correct values has to be fixed in
upstart-compat-sysv indeed. I'll prepare updated packages for that.

>> not equal to /dev/console. Result is, that the boot process is suspended for
>> 60 seconds.
> 
> <Keybuk> it's arguably a bug in the Debian upstart-compat-sysv
> <Keybuk> they should have "console owner" in there for Debian, as Debian 
> lacks 
>          Ubuntu's "no boot messages" policy

It's correct, that Debian hasn't have a "no boot messages" policy, yet I
want to support both use cases (verbose and quiet boot process) and
leave it up to the user to choose.
As Jan already correctly noticed, in quiet mode (console logged) 0 or
stdin is set to /dev/null and the udev init script would have to be
updated to check for that case. Patch for that against udev is attached.
Strictly speaking this patch is not necessary though for a standard boot
sequence, because a fixed upstart-compat-sysv will set
RUNLEVEL/PREVLEVEL to S/N and warn_if_interactive will return correctly
in that case (before the check for tty is made). It would only be needed
if you restart udev when the system is running (and RUNLEVEL/PREVLEVEL
are not S/N). But I guess this use case is not that common.
So I'll leave it up to Marco, if he applies the patch to udev or not.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
--- debian/udev.init	2006-11-05 03:23:42.000000000 +0100
+++ debian/udev.init.old	2006-11-05 03:25:28.000000000 +0100
@@ -111,7 +111,7 @@
   fi
 
   TTY=$(my_tty)
-  if [ -z "$TTY" -o "$TTY" = "/dev/console" ]; then
+  if [ -z "$TTY" -o "$TTY" = "/dev/console" -o "$TTY" = "/dev/null" ]; then
     return
   fi
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to