On 8/13/07, <b class="gmail_sendername">Adam Jackson</b> &lt;<a href="mailto:ajackson@redhat.com">ajackson@redhat.com</a>&gt; 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>&gt; I just read somewhere somebody saying that rhgb was a horrible<br>&gt; idea and that a nicer boot process will come once kernel mode-<br>&gt; setting exists.&nbsp;&nbsp;Funny how some things kick your brain in such a way
<br>&gt; you actually look at things a little different.&nbsp;&nbsp;This was the kick I<br>&gt; needed&nbsp;&nbsp;after staring blankly at my bootlog charts trying to figure<br>&gt; out how to shave more time off the process (I have maxed out at 40
<br>&gt; seconds).<br>&gt;<br>&gt; My problem is that you have to take the speed hit of starting an X<br>&gt; server eventually.&nbsp;&nbsp;Kernel modesetting just isn&#39;t going to help that.<br>&gt; Well then all the pieces fell together and this is what I have hacked
<br>&gt; together so far.<br><br>To be fair, the X server isn&#39;t the slow part of starting graphics.&nbsp;&nbsp;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.&nbsp;&nbsp;This lets you mask the fact that kernel init still takes<br>&gt;10s on most hardware.<br><br>&gt; 1)&nbsp;&nbsp;Add an option to rhgb so it doesn&#39;t fork and daemonize<br>&gt; 2)&nbsp;&nbsp;patch /etc/gdm/Init/Default so it checks that rhgb is executable
<br>&gt; and the file /var/lock/subsys/rhgb doesn&#39;t exist.&nbsp;&nbsp;If those two<br>&gt; qualifications are true then run rhgb -n -f -u :0.0<br>&gt; 3)&nbsp;&nbsp;modify rc.sysinit with the gdm-early-login patch, so gdm is<br>&gt; started right after the root filesystem is mounted rw.
<br>&gt;<br>&gt; What this gives me is boot up, as soon as / is rw start up gdm.&nbsp;&nbsp;Gdm<br>&gt; starts rhgb using it&#39;s own X server.&nbsp;&nbsp;As soon as rhgb is done gdm<br>&gt; launches the greeter using the same X server.&nbsp;&nbsp;No flashing or
<br>&gt; switching back and forth to consoles, etc etc.<br><br>This sounds interesting.&nbsp;&nbsp;Got the patches handy?</blockquote><div><br>Certainly, I am just fleshing out a few more things.&nbsp; I found my first big hangup<br>which was the Xserver hanging for 4 seconds looking for xfs.&nbsp; Luckily this won&#39;t
<br>be a problem in Fedora 8.&nbsp; 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>