summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorVratislav Podzimek <vpodzime@redhat.com>2012-10-04 12:37:24 +0200
committerVratislav Podzimek <vpodzime@redhat.com>2012-10-12 15:46:48 +0200
commit4b98eab34f310c2704ec24b417bdf919c413fa1d (patch)
tree5a09fb8239a9a83598600f061e07cfe8b9e79abb /anaconda
parent4dbff52bd69a20a49881a90ac5f0cb8a8dc3eac2 (diff)
downloadanaconda-4b98eab34f310c2704ec24b417bdf919c413fa1d.tar.gz
anaconda-4b98eab34f310c2704ec24b417bdf919c413fa1d.tar.xz
anaconda-4b98eab34f310c2704ec24b417bdf919c413fa1d.zip
Work with VConsole keymap and X layouts separately
We need to set VConsole keymap and X layouts separately. We may get them all from kickstart, but if not, we have to convert the given one to the missing one and save the configuration. If X11 configuration is written before the server is started, it is loaded. This way we can get rid of using XklWrapper in main anaconda script. Also we need to write one more configuration file. And it's better to try to write all configuration files ignoring errors and in case some error(s) appeared, raise exception at the end of the procedure. Resolves: rhbz#853877 Resolves: rhbz#856362 Resolves: rhbz#859867
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda16
1 files changed, 1 insertions, 15 deletions
diff --git a/anaconda b/anaconda
index 90fad452f..5d2ec72d5 100755
--- a/anaconda
+++ b/anaconda
@@ -580,20 +580,6 @@ def setupDisplay(anaconda, opts):
# with X running we can initialize the UI interface
anaconda.initInterface()
- # setup layouts
- if anaconda.displayMode == 'g' and anaconda.ksdata.keyboard.layouts_list:
- from pyanaconda.keyboard import XklWrapper, XklWrapperError
-
- layouts = anaconda.ksdata.keyboard.layouts_list
- xklwrapper = XklWrapper.get_instance()
-
- try:
- xklwrapper.replace_layouts(layouts)
-
- except XklWrapperError as xklerr:
- msg = "Failed to activate layouts %s" % ",".join(layouts)
- log.error(msg)
-
anaconda.instClass.configure(anaconda)
def prompt_for_ssh():
@@ -856,7 +842,7 @@ if __name__ == "__main__":
ksdata.keyboard.keyboard = opts.keymap
if ksdata.keyboard.keyboard:
- keyboard.activate_console_keymap(ksdata.keyboard.keyboard)
+ keyboard.activate_keyboard(ksdata.keyboard)
# Some post-install parts of anaconda are implemented as kickstart
# scripts. Add those to the ksdata now.