summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-04 19:45:11 +0000
committerBill Nottingham <notting@redhat.com>2000-08-04 19:45:11 +0000
commit4026b22377297ac6a062aa067724b018b9b8cffc (patch)
tree6d282c48e6b8f14d930454b496090aa55bd84f14 /todo.py
parent9ccb362378a3ab78c5f2bf2312fbab70460a4714 (diff)
downloadanaconda-4026b22377297ac6a062aa067724b018b9b8cffc.tar.gz
anaconda-4026b22377297ac6a062aa067724b018b9b8cffc.tar.xz
anaconda-4026b22377297ac6a062aa067724b018b9b8cffc.zip
dump keymap into /etc/sysconfig/console
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/todo.py b/todo.py
index 28fc1be50..0ca12e153 100644
--- a/todo.py
+++ b/todo.py
@@ -483,6 +483,15 @@ class ToDo:
if self.serial: return
f = open(self.instPath + "/etc/sysconfig/keyboard", "w")
f.write(str (self.keyboard))
+ rc = iutil.execWithRedirect("/usr/bin/loadkeys",
+ [ "/usr/bin/loadkeys", self.keyboard.layout ],
+ stdout = None, stderr, = None,
+ searchPath = 0, root = self.instPath)
+ mapfile = open(self.instPath + "/etc/sysconfig/console/default.kmap", "w")
+ rc = iutil.execWithRedirect("/usr/bin/dumpkeys",
+ [ "/usr/bin/dumpkeys"],
+ stdout = mapfile, stderr = None,
+ searchPath = 0, root = self.instPath)
f.close()
def needBootdisk (self):