From a5043ab95f35d9aed728c44b3cbf2095abd774b1 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Fri, 5 Apr 2002 20:26:49 +0000 Subject: added instructions how you can compile keymap directly into the kernel git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1801 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/config-keyboard.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'chapter06') diff --git a/chapter06/config-keyboard.xml b/chapter06/config-keyboard.xml index 7e2aa388f..9f61aefb6 100644 --- a/chapter06/config-keyboard.xml +++ b/chapter06/config-keyboard.xml @@ -16,5 +16,21 @@ example, if you have a Dutch keyboard, you would run: ln -s i386/qwerty/nl.map.gz defkeymap.map.gz +An second option to configure your keyboard's layout is to compile +the keymap directly into the kernel. This will make sure that your +keyboard always works as expected, even when you have booted into +maintenance mode (by passing `init=/bin/sh' to the kernel) in which case +the bootscript that normally sets up your keymap isn't run. + +If you didn't create the defkeymap.map.gz file and going with the +default US keymap, then again you don't have to do anything. The kernel +compiles a suitable keymap by default that'll work just fine for +you, so skip the next command. + +Run the following commands to accomplish that: + +loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \ +   /usr/src/linux/drivers/char/defkeymap.c + -- cgit v1.2.3-54-g00ecf