non-us keyboard layout not setup in initramfs

Bug #1719612 reported by William Daniau
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
console-setup (Ubuntu)
Fix Released
Critical
Julian Andres Klode
Artful
Won't Fix
Undecided
Unassigned

Bug Description

Description: Ubuntu Artful Aardvark (development branch)
Release: 17.10

In Artful the /etc/console/cached.kmap.gz file does not exists, in its place, it uses some files with more precise names susch as cached_UTF-8_del.kmap.gz. However the initramfs scripts still uses cached.kmap.gz . The consequence is that the keyboard layout remains US in the initramfs which is a problem for full encrypted installation when entering passphrase.
Proposed solution is to make a symbolic link from cached_UTF-8_del.kmap.gz to cached.kmap.gz. Then the initramfs tools will find the /etc/console/cached.kmap.gz file and includes it in the initramfs.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1719612/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
tags: added: artful
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Romain Fluttaz (botux) wrote :

Thanks !
So quick solve :

Open a terminal [Ctrl]+[Maj]+[t]

sudo ln -s /etc/console-setup/cached_UTF-8_del.kmap.gz /etc/console-setup/cached.kmap.gz
sudo update-initramfs -u

So now we can come back to a complex encryption disk password without to have to find/guess the us correspondence !

I just remember, but in the installer, the keyboard setup is after we choose disk encryption password. So some people who didn't know this bug and that their keyboard where in English keyboard layout, they might not really now their real password ! Fun !

Grummfy (grummfy)
tags: added: keyboard
Steve Langasek (vorlon)
Changed in initramfs-tools (Ubuntu):
importance: Undecided → Critical
no longer affects: ubuntu
no longer affects: Ubuntu Artful
Changed in initramfs-tools (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Revision history for this message
Julian Andres Klode (juliank) wrote :

The hooks are shipped in console-setup.

affects: initramfs-tools (Ubuntu) → console-setup (Ubuntu)
Changed in console-setup (Ubuntu Artful):
status: New → Confirmed
Revision history for this message
Julian Andres Klode (juliank) wrote :

Hmm, the behavior from the bug description (or well, not exactly, but the backspace was added to the filename then) was introduced in 1.71, before xenial.

Revision history for this message
Julian Andres Klode (juliank) wrote :

So, are we sure that problem does not exist in 16.04?

Revision history for this message
Julian Andres Klode (juliank) wrote :

We are sure. Odd thing.

Changed in console-setup (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Julian Andres Klode (juliank)
Changed in console-setup (Ubuntu Artful):
status: Confirmed → Triaged
tags: added: id-5a7b8a1a70ea213ce0cfc246
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (7.0 KiB)

This bug was fixed in the package console-setup - 1.178ubuntu1

---------------
console-setup (1.178ubuntu1) bionic; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - Add an apport hook.
    - If the locale is C during configuration, only set CHARMAP to ISO-8859-15
      on kFreeBSD; otherwise restore the previous behaviour from before the
      kFreeBSD port of using UTF-8 in that case.
    - Change the default font from Fixed to VGA for Lat15; while it's not
      entirely complete, it looks better and is largely good enough.
    - Set keymap and font in the initramfs if possible and sensible.
    - debian/vtrgb, debian/vtrgb.vga,
      debian/console-setup-linux.setvtrgb.service, debian/rules,
      debian/console-setup-linux.postinst: use Ubuntu's virtual terminal color
      scheme by default, with a VGA color scheme available as an alternative.
    - Don't copy keyboard-configuration questions to /target in OEM mode.
      oem-config will ask them later, and copying these confuses it.
    - Tolerate absence of setupcon in postinst scripts.
    - Added templates for keyboard detection.
    - If the detect-keyboard debconf plugin is available
      (cdebconf-newt-detect-keys in the installer), then offer to use it to
      detect the keyboard layout.
    - Fix default keyboard selection for language/country combinations
      lacking a proper combined locale.
    - Map ppc64el/* to XKBMODEL=pc105.
    - keyboard_present.sh: Quiet config/postinst when we have no USB devices.
    - debian/preprocessor: revert the removal of keyboard names (for size) of
      console-setup-udeb: we do need those, since we don't use the simplified
      xkb-keymap template from Debian just yet: this way we can still show
      country/language names when selecting a keyboard, layout or variant.
    - Don't make debian/copyright a symlink to COPYRIGHT, this is disallowed
      by the Ubuntu archive installer.
    - Include pc105.tree for ubiquity; make sure it gets built.
    - Add Keyboard/Makefile rule to build pc105.tree.
    - Fix command injection in ckbcomp.
    - Generate a locale locally for translating keyboard names in
      kbdnames-maker.
    - xmlreader, KeyboardNames.pl: Added model entry to skip model selection.
    - setupcon:
      - the variables are taken from a config file which, if changed,
        invalidates the cache.
      - there is only ever one keyboard map per system.
      - the system should not have to resolve filenames to find the keymap cache
        on boot.
      - Map XKBMODEL=SKIP to '' for compatibility with existing
        configs.
      - Explicitly exit 0, so that postinsts don't fail in the event that
        loadkeys can't find a console.
    - Handle unattended upgrades without breaking plymouth when updating
      console fonts.
    - debian/rules: revert hard-coding of a list of "debconf-selectable"
      layouts for the udebs, since we don't use this debconf question in Ubuntu
      and all layouts are selectable.
    - Make sure we give a meaningful name to ch layouts: "Switzerland" instead
      of "German (Switzerland), since it includes French too.
    - Add console-setup-tty and the ude...

Read more...

Changed in console-setup (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Michael Aaron Murphy (mmstick76) wrote :

Are we sure that this is fixed? It seems to still be happening.

Revision history for this message
INF1 (inf1-2) wrote :

Hello,

I have been having this issue for a while now... at least 5-years (using an azerty board). I have still use the encryption drive for security reasons...

Today, when I type the password at boot time to decrypt the drive, I can't get access to it ? If I boot up with a with a USB version and type the same password to decrypt the connected drive it works fine? Anyone knows whazup? Thx !

Steve Langasek (vorlon)
Changed in console-setup (Ubuntu Artful):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.