[Bug 2030788] Re: "localectl set-x11-keymap" doesn't work in mantic

Chad Smith 2030788 at bugs.launchpad.net
Fri Aug 25 03:57:49 UTC 2023


I've pushed a commit to fix cloud-init's PR 4361 to ensure we write
/etc/default/keyboard correctly instead of calling localectl
set-x11-keymap directly.

I have also published preliminary 23.3 cloud-init deb packages for both
Jammy and Mantic to
https://launchpad.net/~chad.smith/+archive/ubuntu/cloud-init-uploads
that can be used to validate that writing /etc/default/keyboard directly
works as advertised


 This proposed changeset is small enough that cloud-init user-data can actually modify itself on disk before cc_keyboard runs using write_files directives.


@DaveJones,

I've attached test_write_etc_default_keyboard.yaml which is cloud-config
user-data that will leverage the proposal in PR #4361.

Would you be able to launch daily mantic arm64 images on raspi with the
following user-data test_write_etc_default_keyboard.yaml  to confirm the
proposed cloud-init fixes from PR 4361 properly set the keymap/layout
for you?

Once we validate that behavior on Focal, Jammy and Lunar doesn't
degrade, we will include this in 23.3 release  (tomorrow/Monday) and SRU
it into Focal/Jammy and Lunar.


** Attachment added: "test_write_etc_default_keyboard.yaml"
   https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2030788/+attachment/5694901/+files/test_write_etc_default_keyboard.yaml

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2030788

Title:
  "localectl set-x11-keymap" doesn't work in mantic

Status in cloud-init package in Ubuntu:
  In Progress
Status in systemd package in Ubuntu:
  Confirmed

Bug description:
  On the raspi arm64 server image, I used to use cloud-init's keyboard
  module to set my keyboard to GB by default. However, on mantic
  localectl (which the keyboard module uses) is now reporting:

    $ localectl set-x11-keymap gb pc105
    Setting X11 and console keymaps is not supported in Debian

  So ... how do I get my £ key by default now? Or should this be filed
  against systemd as well?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2030788/+subscriptions




More information about the foundations-bugs mailing list