← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 2084001] Re: fixconkeys-part1 malfunctions if more than one keyboard layout is active at once at installation time

 

How are the keyboard layouts ordered? And how can you be certain the
that first keyboard layout is the correct one?

diff -Nru calamares-settings-ubuntu-24.10.5/common/fixconkeys-part1 calamares-settings-ubuntu-24.10.6/common/fixconkeys-part1
--- calamares-settings-ubuntu-24.10.5/common/fixconkeys-part1	2024-09-28 20:46:11.000000000 +0000
+++ calamares-settings-ubuntu-24.10.6/common/fixconkeys-part1	2024-10-09 04:18:15.000000000 +0000
@@ -1,3 +1,3 @@
 #!/bin/bash
-setxkbmap -query | awk '/layout/{ print $2 }' > /dev/shm/fixconkeys-layout
+setxkbmap -query | awk '/layout/{ print $2 }' | cut -d',' -f1 > /dev/shm/fixconkeys-layout


** Changed in: calamares-settings-ubuntu (Ubuntu)
       Status: Confirmed => Incomplete

** Also affects: calamares-settings-ubuntu (Ubuntu Oracular)
   Importance: Undecided
       Status: Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to calamares-settings-ubuntu in Ubuntu.
https://bugs.launchpad.net/bugs/2084001

Title:
  fixconkeys-part1 malfunctions if more than one keyboard layout is
  active at once at installation time

Status in calamares-settings-ubuntu package in Ubuntu:
  Incomplete
Status in calamares-settings-ubuntu source package in Oracular:
  Incomplete

Bug description:
  The fixconkeys-part1 script currently uses the "layout" field of the
  output of `setxkbmap -query` to determine what keyboard layout to set
  at the console level, which makes the disk decryption prompt work. The
  problem is it assumes this field will only ever list one keyboard
  layout, when in reality it can list multiple keyboard layouts
  separated by commas. When this happen, the keyboard will silently fail
  to be properly set up.

  To fix this, only the first keyboard layout returned by `setxkbmap
  -query` should be taken into account. This isn't a perfect solution,
  but it's better than the current situation and is safe.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/calamares-settings-ubuntu/+bug/2084001/+subscriptions



References