← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1951593] Re: Feature request: keyboard layout module

 

See https://github.com/canonical/cloud-init/pull/1176

** Changed in: cloud-init
       Status: Opinion => Fix Committed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1951593

Title:
  Feature request: keyboard layout module

Status in cloud-init:
  Fix Committed

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.

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



References