GNU bug report logs - #25453
Inconsistent keyboard layout affecting encrypted root

Previous Next

Package: guix;

Reported by: Christopher Baines <mail <at> cbaines.net>

Date: Sun, 15 Jan 2017 07:03:01 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25453 in the body.
You can then email your comments to 25453 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Sun, 15 Jan 2017 07:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Baines <mail <at> cbaines.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 15 Jan 2017 07:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: bug-guix <at> gnu.org
Subject: Inconsistent keyboard layout affecting encrypted root
Date: Sun, 15 Jan 2017 06:55:24 +0000
[Message part 1 (text/plain, inline)]
I'm using a UK keyboard layout with a computer that I recently installed
GuixSD on with a encrypted root parition. Immediately after installation
when I attempted to boot in to the new system for the first time I had
to enter the passphrase twice, and in doing this, first I had to use the
keyboard layout under which I carried out the installation (the layout
which I had intended to use), and then during the early boot stage of
the system I had to enter the passphrase using a different keyboard
layout.

The ideal behaviour here is that the way in which the passphrase is set
in the installer is the way in which it has to be entered into Grub and
during the early boot of the system. 
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Fri, 20 Jan 2017 14:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Christopher Baines <mail <at> cbaines.net>
Cc: 25453 <at> debbugs.gnu.org
Subject: Re: bug#25453: Inconsistent keyboard layout affecting encrypted root
Date: Fri, 20 Jan 2017 15:01:36 +0100
Hi!

Christopher Baines <mail <at> cbaines.net> skribis:

> I'm using a UK keyboard layout with a computer that I recently installed
> GuixSD on with a encrypted root parition. Immediately after installation
> when I attempted to boot in to the new system for the first time I had
> to enter the passphrase twice, and in doing this, first I had to use the
> keyboard layout under which I carried out the installation (the layout
> which I had intended to use), and then during the early boot stage of
> the system I had to enter the passphrase using a different keyboard
> layout.

Currently installing a keymap is something done by the ‘console-keymap’
Shepherd service, which invokes ‘loadkeys’.  That happens after
“cryptsetup --open” has opened your encrypted root device, hence the
problem.

Should we install the keymap right in the initrd, before we’ve mounted
the root partition?  That would require copying the right keymap(s) and
probably ‘loadkeys’ to the initrd, which might make it quite big.

Suggestions?  How do others handle it?

Thanks for your report,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Sun, 14 Jan 2018 13:23:01 GMT) Full text and rfc822 format available.

Message #11 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Lirzin <mthl <at> gnu.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 25453 <at> debbugs.gnu.org, Christopher Baines <mail <at> cbaines.net>
Subject: Re: bug#25453: Inconsistent keyboard layout affecting encrypted root
Date: Sun, 14 Jan 2018 14:22:01 +0100
Hello,

ludo <at> gnu.org (Ludovic Courtès) writes:

> Christopher Baines <mail <at> cbaines.net> skribis:
>
>> I'm using a UK keyboard layout with a computer that I recently installed
>> GuixSD on with a encrypted root parition. Immediately after installation
>> when I attempted to boot in to the new system for the first time I had
>> to enter the passphrase twice, and in doing this, first I had to use the
>> keyboard layout under which I carried out the installation (the layout
>> which I had intended to use), and then during the early boot stage of
>> the system I had to enter the passphrase using a different keyboard
>> layout.
>
> Currently installing a keymap is something done by the ‘console-keymap’
> Shepherd service, which invokes ‘loadkeys’.  That happens after
> “cryptsetup --open” has opened your encrypted root device, hence the
> problem.

I am using '(console-keymap-service "fr")' in my system config, so I
would expect to have at least an AZERTY keyboard layout for the second
passphrase entered but I am not.  Am I overlooking something?

Thanks.

-- 
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37




Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Wed, 17 Jan 2018 07:06:02 GMT) Full text and rfc822 format available.

Message #14 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 25453 <at> debbugs.gnu.org, Christopher Baines <mail <at> cbaines.net>
Subject: Re: bug#25453: Inconsistent keyboard layout affecting encrypted root
Date: Tue, 16 Jan 2018 23:05:44 -0800
[Message part 1 (text/plain, inline)]
ludo <at> gnu.org (Ludovic Courtès) writes:

> Hi!
>
> Christopher Baines <mail <at> cbaines.net> skribis:
>
>> I'm using a UK keyboard layout with a computer that I recently installed
>> GuixSD on with a encrypted root parition. Immediately after installation
>> when I attempted to boot in to the new system for the first time I had
>> to enter the passphrase twice, and in doing this, first I had to use the
>> keyboard layout under which I carried out the installation (the layout
>> which I had intended to use), and then during the early boot stage of
>> the system I had to enter the passphrase using a different keyboard
>> layout.
>
> Currently installing a keymap is something done by the ‘console-keymap’
> Shepherd service, which invokes ‘loadkeys’.  That happens after
> “cryptsetup --open” has opened your encrypted root device, hence the
> problem.
>
> Should we install the keymap right in the initrd, before we’ve mounted
> the root partition?  That would require copying the right keymap(s) and
> probably ‘loadkeys’ to the initrd, which might make it quite big.
>
> Suggestions?  How do others handle it?
>
> Thanks for your report,
> Ludo’.

I may be wrong, but keep in mind that Grub and other bootloaders might
require their own configuration to set the keyboard layout, also.

-- 
Chris
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Wed, 17 Jan 2018 07:30:02 GMT) Full text and rfc822 format available.

Message #17 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: ng0 <ng0 <at> n0.is>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 25453 <at> debbugs.gnu.org, Christopher Baines <mail <at> cbaines.net>
Subject: Re: bug#25453: Inconsistent keyboard layout affecting encrypted root
Date: Wed, 17 Jan 2018 08:29:20 +0000
[Message part 1 (text/plain, inline)]
Ludovic Courtès transcribed 1.1K bytes:
> Hi!
> 
> Christopher Baines <mail <at> cbaines.net> skribis:
> 
> > I'm using a UK keyboard layout with a computer that I recently installed
> > GuixSD on with a encrypted root parition. Immediately after installation
> > when I attempted to boot in to the new system for the first time I had
> > to enter the passphrase twice, and in doing this, first I had to use the
> > keyboard layout under which I carried out the installation (the layout
> > which I had intended to use), and then during the early boot stage of
> > the system I had to enter the passphrase using a different keyboard
> > layout.
> 
> Currently installing a keymap is something done by the ‘console-keymap’
> Shepherd service, which invokes ‘loadkeys’.  That happens after
> “cryptsetup --open” has opened your encrypted root device, hence the
> problem.
> 
> Should we install the keymap right in the initrd, before we’ve mounted
> the root partition?  That would require copying the right keymap(s) and
> probably ‘loadkeys’ to the initrd, which might make it quite big.
> 
> Suggestions?  How do others handle it?

Yes, this has been annoying me to the point of simply taking it for
granted for now, and replacing it in my own set of defaults.

To answer your question: Others handle it in the initrd aswell.

For example in Gentoo with OpenRC, you set the keyboardlayout for
the initrd. In Archlinux iirc before and after adoption of systemd
you set the keymap for it. In Debian if memory serves me right you
set the keyboard layout. I think I don't need to go on...

What's the size difference for the initrd then in numbers?
I don't think we have to wory about size as we'll never run
on devices smaller than router devices (at least that's my
current assumption looking at the size of a typical minimal
GuixSD, it's possible but requires lots of customization).

> Thanks for your report,
> Ludo’.
> 
> 
> 

-- 
ng0 :: https://ea.n0.is
A88C8ADD129828D7EAC02E52E22F9BBFEE348588 :: https://ea.n0.is/keys/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Sun, 13 Jan 2019 21:37:01 GMT) Full text and rfc822 format available.

Message #20 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: guix-devel <at> gnu.org
Cc: 25453 <at> debbugs.gnu.org
Subject: Keyboard layout configuration
Date: Sun, 13 Jan 2019 22:36:21 +0100
Hello Joshua,

Thanks a lot for working on this!  I’d really like 1.0 to provide a
reasonable way to configure the keyboard layout once and for all.

I suggest we continue the discussion in the context of
<https://issues.guix.info/issue/25453>.

Joshua Branson <jbranso <at> dismail.de> skribis:

> I believe I have identified conceptually how to do some of these things.
>
> This project breaks down into four areas
>
> Getting the layout to work with:
>
> 1) grub
> 2) linux's initrd
> 3) console
> 4) X/wayland's layout
> 5) How to do the above

There’s also the question of how to “translate” keyboard layouts among
all of these.  Debian has a mechanism whereby you specify the layout in
a single place, and it then does the right thing for GRUB, Linux, X, and
so on.  I forgot how it works, but we should aim for something like
that.

> 1)  I was not able to get grub to generate an alternate keyboard layout.
>
> #+BEGIN_SRC sh :results output :exports both
> sudo grub-kbdcomp -o /boot/grub/dvorak.gkb dvorak
> #+END_SRC
>
> #+RESULTS:
> : /home/joshua/.guix-profile/bin/grub-kbdcomp: line 76: ckbcomp: command not found
> : ERROR: no valid keyboard layout found. Check the input.
>
> Do we have ckbcomp installed?  How do I install that?

I searched on packages.debian.org, and it’s in ‘console-setup’, which
happens to be the thing I was mentioning above:  :-)

  https://packages.debian.org/stretch/console-setup

It looks like Debian is actually upstream for this package, but it may
be usable on non-Debian systems as well.

> 2) Linux's initrd

We’d probably need to invoke ‘loadkeys’ or similar from the initrd, and
to embed only the specific layout files that we need.  See (gnu system
linux-initrd).

> 3) console
>    This shouldn't be all that hard to do.  We just have to add a
>    console-keymap-service.

Yes, #2 and #3 are actually the same thing (and redundant), except that
in #2 we have to be careful not to embed too much in the initrd.

> 4) X/Wayland's layout shouldn't be all that hard to do too.  X is just
> a simple xorg-start-command tweak.  I'm not certain how to do the same
> for wayland yet.

OK.

> 5) Now, how do I go about doing the above?  I thought about modifying
> %base-services and %desktop services, but some users won't use those
> variables.  So I am going to have to do some change at a deeper level.
> I believe that I found the reconfigure module in the guix source code,
> and I see the variable called "operating-system-user-services".  My
> intent is to modify this variable, and that should be how a good-old
> reconfigure will change your layout.

I think we’ll have to use ‘console-setup’.

The difficulty is that we want a single ‘keyboard-layout’ field (say) in
the OS config that would have an effect on GRUB, the Linux console,
Xorg, and Wayland, *if* they are used (setting the keyboard layout
shouldn’t require you to use Xorg, for instance.)

So I think we cannot use the standard Guix-y static approach where
services are instantiated directly with the right configuration.

Instead, Xorg & co. may need to look for a config file at a fixed
location, say /etc/guix/keyboard-layout.conf, pretty much the same way
it’s done on Debian & co.

Thoughts?

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Sun, 13 Jan 2019 22:51:01 GMT) Full text and rfc822 format available.

Message #23 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: nee <nee <at> cock.li>
To: guix-devel <at> gnu.org
Cc: 25453 <at> debbugs.gnu.org
Subject: Re: Keyboard layout configuration
Date: Sun, 13 Jan 2019 23:49:56 +0100
[Message part 1 (text/plain, inline)]
Am 13.01.19 um 22:36 schrieb Ludovic Courtès:
>> 1) grub
>> 2) linux's initrd
>> 3) console
>> 4) X/wayland's layout
>> 5) How to do the above
> 

Hello, I was working on this recently and made a patch for X11 that
fixes the layout in the slim login and when you login into gnome3 or
whatever desktop environment.

I also made a patch for grub that fixes the layout when you edit the
boot command for a menu entry, but not for the luks prompt. I think that
might require installing a custom grub image (grub-mkimage) with
grub-bios-setup instead of using grub-install (I saw some posts on the
archlinux forum I don't have a link to right now). But this patch should
lay the groundwork for it, as it can generate grub keyboard config files.

The patches are pretty dirty, but I might not have that much time in the
next few weeks to work on this, and since is hot on the mailing list
right now, I'm sending them here now.

Happy hacking!
[0001-bootloader-grub-custom-keyboard-layout.patch (text/x-patch, attachment)]
[0001-services-Init-the-keyboard-layout-in-xorg-configurat.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Tue, 15 Jan 2019 22:23:01 GMT) Full text and rfc822 format available.

Message #26 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: nee <nee <at> cock.li>
Cc: guix-devel <at> gnu.org, 25453 <at> debbugs.gnu.org
Subject: Re: Keyboard layout configuration
Date: Tue, 15 Jan 2019 23:21:56 +0100
Hello nee!

nee <nee <at> cock.li> skribis:

> Am 13.01.19 um 22:36 schrieb Ludovic Courtès:
>>> 1) grub
>>> 2) linux's initrd
>>> 3) console
>>> 4) X/wayland's layout
>>> 5) How to do the above
>> 
>
> Hello, I was working on this recently and made a patch for X11 that
> fixes the layout in the slim login and when you login into gnome3 or
> whatever desktop environment.
>
> I also made a patch for grub that fixes the layout when you edit the
> boot command for a menu entry, but not for the luks prompt. I think that
> might require installing a custom grub image (grub-mkimage) with
> grub-bios-setup instead of using grub-install (I saw some posts on the
> archlinux forum I don't have a link to right now). But this patch should
> lay the groundwork for it, as it can generate grub keyboard config files.
>
> The patches are pretty dirty, but I might not have that much time in the
> next few weeks to work on this, and since is hot on the mailing list
> right now, I'm sending them here now.

Nice, you did well!

I’ve already pushed “bdfresize” and “console-setup” partly based on your
patches:

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=fe77ede70ad292c8fcba80f34b356fecd86f7f78
  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=41a54622b691b68e342a0c7de23fec8de14cb739

The GRUB and Xorg parts look overall like the right thing to me—I’ll
take some time to review more closely soon.

Then we’ll also need to think about extending the bootloader API (not
GRUB-specific), and then providing a way to specify the layout globally
in a single place.

Anyway, thanks a lot for helping out!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Wed, 16 Jan 2019 13:11:01 GMT) Full text and rfc822 format available.

Message #29 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: nee <nee <at> cock.li>
Cc: guix-devel <at> gnu.org, 25453 <at> debbugs.gnu.org
Subject: Re: Keyboard layout configuration
Date: Wed, 16 Jan 2019 14:10:23 +0100
nee <nee <at> cock.li> skribis:

> --- a/gnu/packages/bootloaders.scm
> +++ b/gnu/packages/bootloaders.scm
> @@ -55,6 +55,7 @@
>    #:use-module (gnu packages swig)
>    #:use-module (gnu packages valgrind)
>    #:use-module (gnu packages virtualization)
> +  #:use-module (gnu packages xorg)
>    #:use-module (gnu packages web)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix download)
> @@ -110,6 +111,12 @@
>                       ;; Make the font visible.
>                       (copy-file (assoc-ref inputs "unifont") "unifont.bdf.gz")
>                       (system* "gunzip" "unifont.bdf.gz")
> +
> +                     ;; patch the path to ckbcomp
> +                     (substitute* "util/grub-kbdcomp.in"
> +                       (("^ckbcomp ")
> +                        (string-append (assoc-ref inputs "console-setup")
> +                                       "/bin/ckbcomp ")))
>                       #t))
>                    (add-before 'check 'disable-flaky-test
>                      (lambda _
> @@ -134,6 +141,10 @@
>         ;; to determine whether the root file system is RAID.
>         ("mdadm" ,mdadm)
>  
> +       ;; console-setup's ckbcomp is invoked by grub-kbdcomp
> +       ;; it is required for generating alternative keyboard layouts
> +       ("console-setup" ,console-setup)

I pushed this bit on your behalf as commit
ab100b905f4073b24d69af3de6de61c4c55ce27d.

It’s a bit sad that the closure of ‘grub-efi’ goes from 162 MiB to
223 MiB because of Perl, which is used to run this tiny ‘ckbcomp’
program.  At some point we should consider translating it to Scheme,
especially since it’s essentially data.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Tue, 12 Mar 2019 16:35:01 GMT) Full text and rfc822 format available.

Message #32 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: Taylan Kammer <taylan.kammer <at> gmail.com>
To: nee <nee <at> cock.li>
Cc: guix-devel <at> gnu.org, 25453 <at> debbugs.gnu.org
Subject: Re: bug#25453: Keyboard layout configuration
Date: Tue, 12 Mar 2019 20:34:15 +0100
nee <nee <at> cock.li> wrote:
> Am 13.01.19 um 22:36 schrieb Ludovic Courtès:
>>> 1) grub
>>> 2) linux's initrd
>>> 3) console
>>> 4) X/wayland's layout
>>> 5) How to do the above
>> 
>
> Hello, I was working on this recently and made a patch for X11 that
> fixes the layout in the slim login and when you login into gnome3 or
> whatever desktop environment.
>
> I also made a patch for grub that fixes the layout when you edit the
> boot command for a menu entry, but not for the luks prompt. I think that
> might require installing a custom grub image (grub-mkimage) with
> grub-bios-setup instead of using grub-install (I saw some posts on the
> archlinux forum I don't have a link to right now). But this patch should
> lay the groundwork for it, as it can generate grub keyboard config files.
>
> The patches are pretty dirty, but I might not have that much time in the
> next few weeks to work on this, and since is hot on the mailing list
> right now, I'm sending them here now.

Heya, just wanted to give my personal thanks for working on this. :-) As
a user of an unusual keyboard layout (Colemak), this is one of my main
pet annoyances with Guix.


And by the way, an unpleasent off-topic issue:

After getting curious and visiting the homepage of your email domain
'cock.li' I was at first amused to see Chen from Touhou, but then pretty
sad to see a frivolous use of racist and sexist slurs and what I guess
is supposed to be "humorously meant hate speech" (thinking of the domain
name "nuke.africa" for instance).  I understand that this is probably
supposed to be a kind of childish black humor (I spent a lot of time on
4chan back in my time) but let's not forget that we're not, in fact,
children anymore, and that stuff like this can be quite seriously
upsetting to some people.  Imagine that we have, say, a middle-aged
African computer scientist in our community, who isn't familiar with
such "humor", or a young female college student with a background in a
conservative family with rigid gender roles, and consider how they might
feel after seeing domain names like "getbackinthe.kitchen", "nigge.rs",
and the like.  I'd urge you to use another address for correspondence
with an open community like this one, given that anyone could get
curious like me and visit the homepage of your domain.

- Taylan




Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Fri, 15 Mar 2019 20:30:02 GMT) Full text and rfc822 format available.

Message #35 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: nee <nee-git <at> hidamari.blue>
To: Taylan Kammer <taylan.kammer <at> gmail.com>
Cc: guix-devel <at> gnu.org, 25453 <at> debbugs.gnu.org
Subject: Re: bug#25453: Keyboard layout configuration
Date: Fri, 15 Mar 2019 19:19:29 +0100
> And by the way, an unpleasent off-topic issue:

Hello, thank you for your considerate message. I'm using the my own
domain for email in the future.

Happy hacking!




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 17 Mar 2019 13:42:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Wed, 20 Mar 2019 23:08:02 GMT) Full text and rfc822 format available.

Message #40 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: nee <nee <at> cock.li>
Cc: guix-devel <at> gnu.org, 25453 <at> debbugs.gnu.org
Subject: Re: bug#25453: Keyboard layout configuration
Date: Thu, 21 Mar 2019 00:07:08 +0100
Hello nee,

Ludovic Courtès <ludo <at> gnu.org> skribis:

> I’ve already pushed “bdfresize” and “console-setup” partly based on your
> patches:
>
>   https://git.savannah.gnu.org/cgit/guix.git/commit/?id=fe77ede70ad292c8fcba80f34b356fecd86f7f78
>   https://git.savannah.gnu.org/cgit/guix.git/commit/?id=41a54622b691b68e342a0c7de23fec8de14cb739
>
> The GRUB and Xorg parts look overall like the right thing to me—I’ll
> take some time to review more closely soon.

Inspired by your other patches I’ve posted this series:

  https://issues.guix.info/issue/34929

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Thu, 21 Mar 2019 19:24:02 GMT) Full text and rfc822 format available.

Message #43 received at 25453 <at> debbugs.gnu.org (full text, mbox):

From: Taylan Kammer <taylan.kammer <at> gmail.com>
To: nee <nee-git <at> hidamari.blue>
Cc: guix-devel <at> gnu.org, 25453 <at> debbugs.gnu.org
Subject: Re: bug#25453: Keyboard layout configuration
Date: Thu, 21 Mar 2019 23:23:01 +0100
nee <nee-git <at> hidamari.blue> writes:

>> And by the way, an unpleasent off-topic issue:
>
> Hello, thank you for your considerate message. I'm using the my own
> domain for email in the future.
>
> Happy hacking!

Thank you for being understanding, happy hacking! :-)


- Taylan




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 24 Mar 2019 22:22:02 GMT) Full text and rfc822 format available.

Notification sent to Christopher Baines <mail <at> cbaines.net>:
bug acknowledged by developer. (Sun, 24 Mar 2019 22:22:02 GMT) Full text and rfc822 format available.

Message #48 received at 25453-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Christopher Baines <mail <at> cbaines.net>
Cc: 25453-done <at> debbugs.gnu.org
Subject: Re: bug#25453: Inconsistent keyboard layout affecting encrypted root
Date: Sun, 24 Mar 2019 23:21:10 +0100
Hi Chris!

ludo <at> gnu.org (Ludovic Courtès) skribis:

> Christopher Baines <mail <at> cbaines.net> skribis:
>
>> I'm using a UK keyboard layout with a computer that I recently installed
>> GuixSD on with a encrypted root parition. Immediately after installation
>> when I attempted to boot in to the new system for the first time I had
>> to enter the passphrase twice, and in doing this, first I had to use the
>> keyboard layout under which I carried out the installation (the layout
>> which I had intended to use), and then during the early boot stage of
>> the system I had to enter the passphrase using a different keyboard
>> layout.
>
> Currently installing a keymap is something done by the ‘console-keymap’
> Shepherd service, which invokes ‘loadkeys’.  That happens after
> “cryptsetup --open” has opened your encrypted root device, hence the
> problem.

This is finally fixed by commit
ae7a316b9da0d1a50c5abdc531c68c8e98e561c9, which initializes the console
keyboard layout straight from the initrd.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#25453; Package guix. (Mon, 25 Mar 2019 05:45:03 GMT) Full text and rfc822 format available.

Message #51 received at 25453-done <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 25453-done <at> debbugs.gnu.org
Subject: Re: bug#25453: Inconsistent keyboard layout affecting encrypted root
Date: Mon, 25 Mar 2019 05:44:31 +0000
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi Chris!
>
> ludo <at> gnu.org (Ludovic Courtès) skribis:
>
>> Christopher Baines <mail <at> cbaines.net> skribis:
>>
>>> I'm using a UK keyboard layout with a computer that I recently installed
>>> GuixSD on with a encrypted root parition. Immediately after installation
>>> when I attempted to boot in to the new system for the first time I had
>>> to enter the passphrase twice, and in doing this, first I had to use the
>>> keyboard layout under which I carried out the installation (the layout
>>> which I had intended to use), and then during the early boot stage of
>>> the system I had to enter the passphrase using a different keyboard
>>> layout.
>>
>> Currently installing a keymap is something done by the ‘console-keymap’
>> Shepherd service, which invokes ‘loadkeys’.  That happens after
>> “cryptsetup --open” has opened your encrypted root device, hence the
>> problem.
>
> This is finally fixed by commit
> ae7a316b9da0d1a50c5abdc531c68c8e98e561c9, which initializes the console
> keyboard layout straight from the initrd.

Exciting, thanks Ludo :)
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 22 Apr 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.