DLPX-95602 X11 console Keymaps broken #552
                
     Merged
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Problem
To update keymapping,
/usr/bin/delphix-startup-screenusessudo localectl set-x11-keymapwhich is no longer the supported mechanism in Ubuntu 24.04 release. Below shows the error when running the commandSolution
Set the keyboard layout by editing /etc/default/keyboard and applying it with
setupcon. This mechanism avoidslocalectl set-x11-keymap(which is disabled on Debian/Ubuntu builds).Notes:
- This change does NOT trigger update-initramfs; only applies to the running system's console. Delphix
doesn't have TTY interactions before pivot-root, e.g. encrypted root passphrase, and
rescue shell can be done with the default "us" layout.
-
dpkg-reconfigure keyboard-configurationis another way to update keymap which would also doupdate-initramfswhich is unnecessary and more involved, mounting and unmounting EFI partition.Testing Done
Updating to different keyboard layouts and verified
dumpkeys(1)produced different key mappings.