Comment 9 for bug 606373

Revision history for this message
Scott Moser (smoser) wrote :

I'm attaching an init wrapper for debugging purposes. I placed this script in /sbin/init, and moved upstart to /sbin/init.real.
Then, rebooted.

The console shows (snipped):
Loading, please wait...
[ 0.373808] udev[61]: starting version 162
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 0.534353] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:
(null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
Tue Sep 14 21:03:16 UTC 2010: hi world 191 ()
 21:03:16 up 0 min, 0 users, load average: 0.00, 0.00, 0.00
total 0
lr-x------ 1 root root 64 Sep 14 21:03 0 -> /dev/null
lrwx------ 1 root root 64 Sep 14 21:03 1 -> /dev/console
lrwx------ 1 root root 64 Sep 14 21:03 2 -> /dev/console
mountall: Disconnected from Plymouth
191 reports i=3
191 reports i=4
191 reports i=5

Note, that 'i=3' this is missing output for 'i=0', 1, and 2;
For 3 seconds, this process was writing data to /dev/console that was getting lost.
echo "wrote to ${out} after $i"

(note, the above console came from a boot before I added redirections of /dev/console for
  echo "$i, could not write to ${out}"
and
  echo "wrote to ${out} after $i"
So, those messages would not have appeared.