Bug 1688935

Summary: LUKS boot password prompt keyboard layout
Product: Red Hat Enterprise Linux 8 Reporter: Jakub Bittner <jbittner>
Component: plymouthAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.2CC: bsanford, hdegoede, jkoten, mclasen, rstrode, systemd-maint-list, tpelka, tpopela
Target Milestone: rcKeywords: Rebase
Target Release: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: plymouth-0.9.4-1.20200615git1e36e30.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1880509 (view as bug list) Environment:
Last Closed: 2020-11-04 04:04:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1681715    
Bug Blocks: 1825061, 1880509, 1907422    

Description Jakub Bittner 2019-03-14 18:08:14 UTC
Description of problem:
LUKS graphical password prompt during boot does not tell user keyboard layout.

Version-Release number of selected component (if applicable):


How reproducible:
Boot system with LUKS encrypted volume.

Steps to Reproduce:
1. Install RHEL with encrypted (root) volume
2. Reboot
3. Wait till LUKS password prompt appears
4. Look around for keyboard layout icon/text

Actual results:
No way to find out what keyboard layout is used for input

Expected results:
User knows input keyboard layout

Additional info:
In case you installed RHEL with default (English) keyboard layout, you will not notice any problem. In case RHEL uses different layout than english, user is not able to find which one and password input may be a problem.

Comment 2 Hans de Goede 2019-08-04 08:26:11 UTC
Note Alberto Ruiz and I have been looking into doing a keyboard-layout indicator for plymouth for Fedora. There is a UI design for how this should look like (for Fedora) here: https://gitlab.gnome.org/Teams/Design/os-mockups/raw/master/password-entry/password-entry.png and then specifically the "Disk Encryption" mockups at the end.

This is something which we plan to work on sometime in the future. Support for this cannot be added to RHEL until support has been added for this to the upstream plymouth code.

Figuring out which keyboard layout is in use is going to be somewhat tricky. We will likely need to reproduce the kernel commandline and /etc/vconsole.conf parsing from systemd-vconsole-setup and assume that systemd-vconsole-setup has done its work properly.

If someone wants to work on this, please contact me or Alberto for coordination so that we do not do double work.

Comment 3 Hans de Goede 2019-10-12 10:57:37 UTC
The changes implementing keyboard layout indicator have landed upstream and in Fedora 31, currently in Fedora this looks like this (with capslock active, so including capslock warning symbol):
https://fedorapeople.org/~jwrdegoede/flickerfree-videos/keyboard-indicators.png

This will likely require some work to adjust for the RHEL-8 plymouth theme.

Upstream plymouth has seen a lot of changes recently, so backporting this will be non trivial. A lot of those changes are also necessary to deal better with modern DisplayPort MST (multi stream transport) laptop-docks where external monitors may show up after plymouth has started, because DP MST enumeration is slow. For this reason upstream plymouth now supports monitor hot(un)plug, something which we really also need for RHEL. As such I believe that a rebase to the latest upstream version (after upstream has done a new release) would be the best solution to get this functionality into RHEL.

Comment 14 Tomas Pelka 2020-09-18 18:06:00 UTC
OK after chat with halfline I was able to verify that the layout is showed properly.

Just note that you need to have plymouth-theme-spinner rpm installed.

Than you need to 
plymouth-set-default-theme  --rebuild-initrd bgrt
to set the default theme

After that I can see the layout.

Moving to verified.

The initrd rebuild is not done automatically therefore halfline created - Bug 1880509, let's see if we can still pull it to 8.3.

Comment 17 errata-xmlrpc 2020-11-04 04:04:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (plymouth bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4810