On 8/13/07, <b class="gmail_sendername">Adam Jackson</b> <<a href="mailto:ajackson@redhat.com">ajackson@redhat.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, 2007-08-11 at 18:20 -0400, Jon Nettleton wrote:<br>> I just read somewhere somebody saying that rhgb was a horrible<br>> idea and that a nicer boot process will come once kernel mode-<br>> setting exists.  Funny how some things kick your brain in such a way
<br>> you actually look at things a little different.  This was the kick I<br>> needed  after staring blankly at my bootlog charts trying to figure<br>> out how to shave more time off the process (I have maxed out at 40
<br>> seconds).<br>><br>> My problem is that you have to take the speed hit of starting an X<br>> server eventually.  Kernel modesetting just isn't going to help that.<br>> Well then all the pieces fell together and this is what I have hacked
<br>> together so far.<br><br>To be fair, the X server isn't the slow part of starting graphics.  The<br>real reason for wanting kernel modesetting is so we can do this stuff<br>all the way forward in the boot process, basically as soon as you hit
<br>the initramfs.  This lets you mask the fact that kernel init still takes<br>>10s on most hardware.<br><br>> 1)  Add an option to rhgb so it doesn't fork and daemonize<br>> 2)  patch /etc/gdm/Init/Default so it checks that rhgb is executable
<br>> and the file /var/lock/subsys/rhgb doesn't exist.  If those two<br>> qualifications are true then run rhgb -n -f -u :0.0<br>> 3)  modify rc.sysinit with the gdm-early-login patch, so gdm is<br>> started right after the root filesystem is mounted rw.
<br>><br>> What this gives me is boot up, as soon as / is rw start up gdm.  Gdm<br>> starts rhgb using it's own X server.  As soon as rhgb is done gdm<br>> launches the greeter using the same X server.  No flashing or
<br>> switching back and forth to consoles, etc etc.<br><br>This sounds interesting.  Got the patches handy?</blockquote><div><br>Certainly, I am just fleshing out a few more things.  I found my first big hangup<br>which was the Xserver hanging for 4 seconds looking for xfs.  Luckily this won't
<br>be a problem in Fedora 8.  Now I am just working out a better way of starting <br>gdm earlier.<br><br>Then I just need to make rhgb a bit more dynamic for reading services ;-)<br><br>I will keep you posted.<br><br>Jon
<br><br></div><br></div><br>