<br><br><div><span class="gmail_quote">On 6/19/07, <b class="gmail_sendername">Peter Jones</b> &lt;<a href="mailto:pjones@redhat.com">pjones@redhat.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tony Nelson wrote:<br>&gt; At 4:50 PM -0500 6/18/07, Bruno Wolff III wrote:<br>&gt;&gt; On Mon, Jun 18, 2007 at 16:51:55 -0400,<br>&gt;&gt;&nbsp;&nbsp;Jeremy Katz &lt;<a href="mailto:katzj@redhat.com">katzj@redhat.com</a>&gt; wrote:
<br>&gt;&gt;&gt; On Mon, 2007-06-18 at 14:07 -0500, Bruno Wolff III wrote:<br>&gt;&nbsp;&nbsp;...<br>&gt;&gt;&gt;&gt; Heck, for key maps there probably aren&#39;t so many that you can&#39;t try<br>&gt;&gt;&gt;&gt; multiple possibilities after getting the password.
<br>&gt;&gt;&gt; There are at least 30-40 that we allow in the installer alone at the<br>&gt;&gt;&gt; console.&nbsp;&nbsp;find -type f /lib/kbd/keymaps/i386 | wc -l gives around 140.<br>&gt;&gt;&gt; I don&#39;t think that trying either is really that practical.
<br>&gt;&gt; 40 probably isn&#39;t too many to make trying them all impractical. I expect<br>&gt;&gt; that it will take less than a second to try each one even with measures<br>&gt;&gt; to slow down password guessing. That&#39;s not nice for suspend resume, but
<br>&gt;&gt; wouldn&#39;t be a deal breaker for initial boots.<br>&gt;&nbsp;&nbsp;...<br>&gt;<br>&gt; Couldn&#39;t it just start with the one that worked last time?<br><br>Not really.&nbsp;&nbsp;We need to ask for the passphrase during thaw, in the
<br>initrd.&nbsp;&nbsp;At that time, the filesystem containing /boot is in the mounted<br>state, so we can&#39;t mount it to write the data anywhere.&nbsp;&nbsp;There&#39;s also no<br>mechanism to pass data from the running kernel to the one we&#39;re
<br>restoring into memory, which means we can&#39;t save the data during the<br>userland thaw sequence, either.</blockquote><div><br>I think we might be putting the cart before the horse.&nbsp;&nbsp; A user would be thawing from hibernation on a machine with an *existing* installation.&nbsp;&nbsp; Therefore language, and keymaps would have been chosen (during installation) prior to the hibernate operation.&nbsp;&nbsp; 
<br><br>Could it be possible to store the keyboard map in the initrd.&nbsp;&nbsp;&nbsp; During the install we select all of these.&nbsp; So, adding an option to /etc/sysconfig/mkinitrd for KEYMAP and/or LANGUAGE and saving/loading it in the initrd (by regeneration) after installation should be pretty straightforward.&nbsp;&nbsp; We could switch to the encryption options after keyboard/language has been selected/loaded.&nbsp;&nbsp; 
<br><br>Is this even plausible?<br></div></div><br clear="all"><br>-- <br>The early bird may get the worm, but the it&#39;s the second mouse that gets the cheese.