Univention Bugzilla – Bug 35496
Skip location setting in USS
Last modified: 2014-11-26 06:54:57 CET
Has already been chosen in d-i
USS should hide this widget if directly started from d-i. But on next reboot (e.g. USS has been stopped via Strg-Q) it should be shown again.
r13298: Copy keyboard setting Xkb* from debconf to UCR
Please note that "install-keymap" is no longer used with Debian-Wheezy and as such the UCRV "locale/keymap" should be deprecated. The new way is to configure the keyboard though "/etc/default/keyboard" by setting the UCRVs "xorg/keyboard/options/Xkb*". This file in then read by both the X11 server and by "setupcon --force --save" for the Linux console.
"univention-base-files" needs to be updated to no longer call "install-keymap" when "locale/keymap" changes, but to call "setupcon --force --save" instead when one of the Xkb UCRVs changes.
But USS still uses a hard-coded list of keyboard layout (./usr/share/univention-system-setup/locale/all-kmaps) and sets "locale/keymap". It would have to be changed too, so skipping that for now.
The original chosen layout is onyl stored in /var/log/installer/cdebconf/questions.dat # keyboard-configuration/layoutcode; there is no mapping back from the Xkb values to it.
USS is currently not updating xorg/keyboard/options/XkbModel=pc105, so setupcon does not work.
Created attachment 6033 [details]
Drop locale/keymap from univention-base-files
System setup now starts with an traceback:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py", line 218, in execute
func( request )
File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 305, in _response
result = _multi_response(self, request)
File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 432, in _response
for res in function(self, iterator, *nones):
File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 271, in _fake_func
yield function(self, *args)
File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/__init__.py", line 136, in save_keymap
xkeymap = util._xkeymap(keymap)
File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/util.py", line 153, in _xkeymap
xkeymap['layout'] = line_split.split(' ')
IndexError: list index out of range
(In reply to Stefan Gohmann from comment #4)
> System setup now starts with an traceback:
Added a temporary workaround by copying the old file "all-kmaps" from UCS 3.2-3 to UCS 4.0-0.
*** This bug has been marked as a duplicate of bug 35685 ***
See Bug #35709, where we need to decide how to handle the new keyboard configuration in univention-system-setup
OK - during installation console-setup sets the xorg/keyboard/options/Xkb UCR vars
OK - Changelog
UCS 4.0-0 has been released:
If this error occurs again, please use "Clone This Bug".