mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
cloud-init: set keyboard through localectl
Set keyboard through systemd's localectl instead of writing to Debian specific /etc/default/keyboard directly, as this also works for other Linux distributions. On Debian/Ubuntu one does still need to run a distro specific command to have the keyboard change be effective without reboot first (setupcon).
This commit is contained in:
parent
6845a86fc3
commit
9a9c5eb490
1 changed files with 2 additions and 3 deletions
|
@ -689,9 +689,8 @@ Popup {
|
|||
addFirstRun("dpkg-reconfigure -f noninteractive keyboard-configuration")
|
||||
|
||||
addCloudInit("timezone: "+fieldTimezone.editText)
|
||||
addCloudInitWriteFile("/etc/default/keyboard", kbdconfig, '0644')
|
||||
addCloudInitRun("dpkg-reconfigure -f noninteractive keyboard-configuration || true")
|
||||
addCloudInitRun("setupcon -k -v --force || true")
|
||||
addCloudInitRun("localectl set-x11-keymap \""+fieldKeyboardLayout.editText+"\" pc105")
|
||||
addCloudInitRun("setupcon -k --force || true")
|
||||
}
|
||||
|
||||
if (firstrun.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue