Skip to content

Commit

Permalink
initramfs: setup keymapping and video for prompts
Browse files Browse the repository at this point in the history
From Steve Langasek <steve.langasek@canonical.com>:
> The poorly-named 'FRAMEBUFFER' option in initramfs-tools controls
> whether the console_setup and plymouth scripts are included and used
> in the initramfs. These are required for any initramfs which will be
> prompting for user input: console_setup because without it the user's
> configured keymap will not be set up, and plymouth because you are
> not guaranteed to have working video output in the initramfs without
> it (e.g. some nvidia+UEFI configurations with the default GRUB
> behavior).

> The zfs initramfs script may need to prompt the user for passphrases
> for encrypted zfs datasets, and we don't know definitively whether
> this is the case or not at the time the initramfs is constructed (and
> it's difficult to dynamically populate initramfs config variables
> anyway), therefore the zfs-initramfs package should just set
> FRAMEBUFFER=yes in a conf snippet the same way that the
> cryptsetup-initramfs package does
> (/usr/share/initramfs-tools/conf-hooks.d/cryptsetup).

https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1856408

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Signed-off-by: Steve Langasek <steve.langasek@canonical.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
Closes #9723
  • Loading branch information
rlaager authored and behlendorf committed Dec 17, 2019
1 parent ba434b1 commit ad97643
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/initramfs/conf-hooks.d/zfs
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Force the inclusion of Busybox in the initramfs.
BUSYBOX=y

# Setup the keyboard mapping so passphrases can be entered correctly.
KEYMAP=y

# Require the plymouth script to guarantee working video for the passphrase
# prompting.
FRAMEBUFFER=y

0 comments on commit ad97643

Please sign in to comment.