This bug was originally filed in Launchpad as LP: #1951593
Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = 2022-02-15T21:54:28.754780+00:00
date_created = 2021-11-19T13:58:13.521039+00:00
date_fix_committed = 2022-01-12T14:38:12.336213+00:00
date_fix_released = 2022-02-15T21:54:28.754780+00:00
id = 1951593
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1951593
milestone = None
owner = bos
owner_name = Floris
private = False
status = fix_released
submitter = bos
submitter_name = Floris
tags = ['keyboard', 'layout']
duplicates = []
Launchpad user Floris(bos) wrote on 2021-11-19T13:58:13.521039+00:00
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.
This bug was originally filed in Launchpad as LP: #1951593
Launchpad details
Launchpad user Floris(bos) wrote on 2021-11-19T13:58:13.521039+00:00
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.