Feature request: keyboard layout module

Bug #1951593 reported by Floris
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

It would be nice if generic support to set a keyboard layout was added to cloudinit.

- It seems one can currently do set keyboard layout when using the Ubuntu installer, with autoinstall.
But when using just cloudinit with ready made images (e.g. with the Ubuntu server images for the Pi), there does not seem to be an option for it.

- As an alternative, I tried writing /etc/default/keyboard with write_files manually, and runcmd'ing "dpkg-reconfigure -f noninteractive keyboard-configuration" but that leaves to be desired.
Since it is run pretty late in the boot process, the new keyboard layout does not take effect until first reboot.
And it obviously will only work with Debian based distributions.
Generic commands to set a keyboard layout (that could also work with other Linux distributions in the future) would be nicer.

Revision history for this message
James Falcon (falcojr) wrote :

This seems like a reasonable request. Thanks for the suggestion. Contributions are always welcome.

Changed in cloud-init:
status: New → Opinion
importance: Undecided → Medium
Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Opinion → Fix Committed
Revision history for this message
Brett Holman (holmanb) wrote : Fixed in cloud-init version 22.1.

This bug is believed to be fixed in cloud-init in version 22.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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