From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#25453: Inconsistent keyboard layout affecting encrypted root Date: Wed, 17 Jan 2018 08:29:20 +0000 Message-ID: <20180117082920.fiyi672klgu3cg3q@abyayala> References: <87wpdwzuar.fsf@cbaines.net> <87vat9akzj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hp4l6x36su6cio4p" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebiAi-0008Th-1R for bug-guix@gnu.org; Wed, 17 Jan 2018 02:30:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebiAe-0002LI-02 for bug-guix@gnu.org; Wed, 17 Jan 2018 02:30:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51425) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebiAd-0002Kq-S2 for bug-guix@gnu.org; Wed, 17 Jan 2018 02:30:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ebiAc-0007JR-2a for bug-guix@gnu.org; Wed, 17 Jan 2018 02:30:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87vat9akzj.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 25453@debbugs.gnu.org --hp4l6x36su6cio4p Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s transcribed 1.1K bytes: > Hi! >=20 > Christopher Baines skribis: >=20 > > 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. >=20 > Currently installing a keymap is something done by the =E2=80=98console-k= eymap=E2=80=99 > Shepherd service, which invokes =E2=80=98loadkeys=E2=80=99. That happens= after > =E2=80=9Ccryptsetup --open=E2=80=9D has opened your encrypted root device= , hence the > problem. >=20 > Should we install the keymap right in the initrd, before we=E2=80=99ve mo= unted > the root partition? That would require copying the right keymap(s) and > probably =E2=80=98loadkeys=E2=80=99 to the initrd, which might make it qu= ite big. >=20 > 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=E2=80=99. >=20 >=20 >=20 --=20 ng0 :: https://ea.n0.is A88C8ADD129828D7EAC02E52E22F9BBFEE348588 :: https://ea.n0.is/keys/ --hp4l6x36su6cio4p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlpfCWAACgkQ4i+bv+40 hYhifw/9GGiG3cOMQc1LD0556Y3Nx/Cr8kcFALNUlNXc2415NSdj45V5WJdwkQe2 irW7Nwtn75B9qCrC16eVHLSCBA0bieqEKkKxswxh04tVVGArnPIoXl6Vt/otW/i0 YeZqYz1RNMO9dIA5ntw27bS915FA4RFr7TUbVvAeMcKb31ZX5kDl2V1tVmk2UPLJ sVSc0HrAtl+giPytO21uKQ4YByFBAu2wvVXcKTSJTTyqjxa2dpsKBneYwB1ha0PH 6pj0JJXvrtf5kB3yJ7GXW6mdndtBQO+k/BCcx17JsXAL/W++1/KGfUNSvyG0CBhW T0XYtsM1I33MMXwzgkdL8VlRdnj29On7kpDZ5mwqh2u+0MftaOUfqjrMGnvxPGUM 9eoxAC1jLABVmUUJ0CRbDZYqsTxUm7nCAUhs6OHSDR498QuWasnn/7+kHhi4UOCv /N1M7nSrlBE0Vniyv71Dp7S62bUlN2wrpJt2ID8JSLrSIIIQ3/4pS0RIdu0rakSc tNtyVU0BfPsgFaz9wAkfKuwmPwTku5MqhEnP+I1rJTPfiiKyAfGqDCxBEToFwwjo /m5R5iV0ocDbQfG6eYh76O9fXEiWtH0NnDDFguOm9x7leDPGe0eBTPQuIV+Z5zAS 83nMRqKcxDcKvrCpgtKayPpTHuD8HDHNawH6BdtOERFKhuYyI3Q= =tVZX -----END PGP SIGNATURE----- --hp4l6x36su6cio4p--