guix/gnu/system
Ludovic Courtès 931f13840b
mapped-devices: Ensure 'cryptsetup open' gets a tty.
Fixes <https://issues.guix.gnu.org/54770>.
Regression introduced in 400c9ed3d7.

Previously, for an encrypted /home (say), "cryptsetup open" would be
invoked by shepherd, with /dev/null as its standard input.  It would
thus run in non-interactive mode and, instead of asking for a
passphrase, fail with:

  Nothing to read on input.

This change ensures it runs in interactive mode.

* gnu/build/file-systems.scm (system*/console, system*/tty): New
procedures.
* gnu/system/mapped-devices.scm (open-luks-device): Use 'system*/tty'
instead of 'system*'.
2022-04-08 18:14:35 +02:00
..
examples
images
accounts.scm
file-systems.scm
hurd.scm
image.scm
install.scm
keyboard.scm
linux-container.scm
linux-initrd.scm
locale.scm
mapped-devices.scm mapped-devices: Ensure 'cryptsetup open' gets a tty. 2022-04-08 18:14:35 +02:00
nss.scm
pam.scm
setuid.scm
shadow.scm
uuid.scm
vm.scm