mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
localectl doesn't work on modern Debian/Ubuntu [1] [2]
The keyboard: section should be used instead, which should do the right
thing on whatever platform cloud-init is being used on (writes
/etc/default/keyboard on Debian/Ubuntu, uses localectl on RHEL/Fedora,
runs setup-keymap on Alpine).
[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038762
[2]: 2030788
This commit is contained in:
parent
b00815058f
commit
4b6ee9bb4b
1 changed files with 3 additions and 2 deletions
|
@ -787,8 +787,9 @@ Window {
|
|||
addFirstRun("fi")
|
||||
|
||||
addCloudInit("timezone: "+fieldTimezone.editText)
|
||||
addCloudInitRun("localectl set-x11-keymap \""+fieldKeyboardLayout.editText+"\" pc105")
|
||||
addCloudInitRun("setupcon -k --force || true")
|
||||
addCloudInit("keyboard:")
|
||||
addCloudInit(" model: pc105")
|
||||
addCloudInit(" layout: \"" + fieldKeyboardLayout.editText + "\"")
|
||||
}
|
||||
|
||||
if (firstrun.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue