unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Grub installation and configuration
@ 2023-03-03 17:47 Emmanuel Beffara
  2023-03-07 16:12 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Emmanuel Beffara @ 2023-03-03 17:47 UTC (permalink / raw)
  To: help-guix

Hello again,

Continuing on my adventures with installing Guix System on LVM on LUKS with
Grub as bootloader, I would like to suggest a few adujstments to how Grub is
installed in Guix:

- Install the keymaps in the EFI partition like the Grub modules, so that the
  proper keymap is setup early in the boot process.

  In the context of full-disk encryption, this is very important because in
  the current state of things, one has to enter the passphrase using the
  default US layout before the proper keymap can be loaded from the encrypted
  store. One can manage working around that with a bit of training, but having
  to enter a passphrase with an incorrect keymap is objectively a broken
  behaviour.

  Furthermore, when the kernel later requires the passphrase again, it has to
  be entered in the proper layout. This is inconsistent.

- Set the terminal_output before any user input is required (and in particular
  the passphrase request), for proper interaction.

  In my case, the laptop has a HiDPI display and Grub starts with a nice
  terminal in 3840x2160 resolution with very small characters. Not only is
  it unreadable, but Grub is also known to be extremely slow with high
  resolutions [1], which makes interaction painful.

[1] https://askubuntu.com/questions/1227735/grub-is-extremely-slow-1-second-per-key-input

- Offer the option to put kernels and initrds in the EFI partition (and also
  any resource needed by Grub like the background picture, locales etc), so
  that Grub can be fully functional without decrypting. Apart from solving the
  issue of having to enter the passphrase twice and with different keymaps,
  this would also allow having Guix System in an encrypted partition while
  allowing to boot other systems without requiring its passphrase.

I would love to propose patches for that but I am too much of a beginner with
Guix to be able to do that right now…

-- 
Emmanuel


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-08  3:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03 17:47 Grub installation and configuration Emmanuel Beffara
2023-03-07 16:12 ` Ludovic Courtès
2023-03-07 17:41   ` Emmanuel Beffara
2023-03-07 22:52   ` Vagrant Cascadian
2023-03-08  3:25     ` Felix Lechner via

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).