Bug 1843379

Summary: Unable to install fedora when keyboard layout 'us-altgr-intl' is used
Product: Red Hat Enterprise Linux 8 Reporter: Radek Vykydal <rvykydal>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: anaconda-maint-list, extras-qa, jkonecny, jonathan, jstodola, kellin, pzatko, rvykydal, SpikeFedora, vanmeeuwen+fedora, vponcova, vslavik, wwoods
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-33.16.3.5-1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1836047 Environment:
Last Closed: 2020-11-04 03:23:25 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: 1836047    
Bug Blocks:    

Description Radek Vykydal 2020-06-03 07:39:58 UTC
+++ This bug was initially created as a clone of Bug #1836047 +++

Created attachment 1688721 [details]
Screenshot showing error message: 'us-altgr-intl' is not a valid keyboard layout and variant specification

Description of problem:
Installing Fedora 32 trough a kickstart file with keyboard layout 'us-algr-intl' results in

DBusError: 'us-altgr-intl' is not a valid keyboard layout and variant specification


Version-Release number of selected component (if applicable):
anaconda 32.24.7-1.fc32

How reproducible:
always

Steps to Reproduce:
0. Prepare a kickstart file with option 'keyboard --vckeymap=us-altgr-intl' or 'keyboard us-altgr-intl' and make it accessible at http://<some-http-server/fedora.ks
1. Boot using https://dl.fedoraproject.org/pub/fedora/linux/releases/32/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-32-1.6.iso
2. Once the Fedora 32 menu appears, move the cursor to 'Install Fedora 32'
3. Press Tab
4. Change line to 'vmlinuz initrd=initrd.img ks=http://<some-http-server/fedora.ks'
5. Press Enter

Alternatively:
0. Prepare a kickstart file with option 'keyboard --vckeymap=us-altgr-intl' or 'keyboard us-altgr-intl' and make it accessible at http://<some-http-server/fedora.ks
1. Boot through PXE/iPXE using the following iPXE script
        #!ipxe
        set base-url http://dl.fedoraproject.org/pub/fedora/linux/releases/32/Everything/x86_64/os/images/pxeboot/
        kernel ${base-url}vmlinuz initrd=initrd.img ks=http://<some-http-server/fedora.ks
        initrd ${base-url}initrd.img



Actual results:
Error message during installation: 
dasbus.error.DBusError: 'us-altgr-intl' is not a valid keyboard layout and variant specification

Expected results:
Working installation of Fedora 32 with keyboard layout 'us-altgr-intl'


Additional info:
This worked fine up until and including Fedora 31. 'us-algr-intl' should be a valid vckeymap parameter according to https://docs.fedoraproject.org/en-US/fedora/f32/install-guide/appendixes/Kickstart_Syntax_Reference/#sect-kickstart-commands-keyboard since

# find /usr/lib/kbd/keymaps/ -name us-altgr-intl*
/usr/lib/kbd/keymaps/xkb/us-altgr-intl.map.gz

Once Fedora 32 is installed (using a different keyboard layout) the layout can be changed to 'us-altgr-intl' through:

# localectl set-keymap us-altgr-intl
# localectl status 
   System Locale: LANG=en_US.UTF-8
       VC Keymap: us-altgr-intl
      X11 Layout: us
     X11 Variant: euro

Comment 1 Radek Vykydal 2020-06-03 07:44:35 UTC
RHEL-8.3.0-20200602.n.1

RHEL crash at the beginning of the installation:

Starting installer, one moment...
anaconda 33.16.3.4-1.el8 for Red Hat Enterprise Linux 8.3 (pre-release) started.
 * installation log files are stored in /tmp during the installation
 * shell is available on TTY2
 * if the graphical installation interface fails to start, try again with the
   inst.text bootoption to start text installation
 * when reporting a bug add logs from /tmp as separate text/plain attachments  
Traceback (most recent call last):
  File "/sbin/anaconda", line 497, in <module>                                 
    keyboard.activate_keyboard(localization_proxy)                             
  File "/usr/lib64/python3.6/site-packages/pyanaconda/keyboard.py", line 140, in activate_keyboard
    sync_run_task(task_proxy)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/common/task/__init__.py", line 46, in sync_run_task
    task_proxy.Finish()
  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 447, in _call_method
    **kwargs,
  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 476, in _get_method_reply
    return self._handle_method_error(error)                                    
  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 498, in _handle_method_error
    raise exception from None
dasbus.error.DBusError: 'us-altgr-intl' is not a valid keyboard layout and variant specification

Comment 2 Radek Vykydal 2020-06-03 07:46:34 UTC
This is a regression - works in RHEL 8.2.

Comment 3 Radek Vykydal 2020-06-03 09:26:40 UTC
Upstream PR: https://github.com/rhinstaller/anaconda/pull/2633

Comment 4 Radek Vykydal 2020-06-03 13:30:14 UTC
PR: https://github.com/rhinstaller/anaconda/pull/2634

Comment 10 errata-xmlrpc 2020-11-04 03:23:25 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 (anaconda 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:4729