6.47. Kbd-1.15.2

6.47.1. Installation of Kbd

The behaviour of the Backspace and Delete keys is not consistent
across the keymaps in the Kbd package. The following patch fixes
this issue for i386 keymaps:

patch -Np1 -i ../kbd-1.15.2-backspace-1.patch

After patching, the Backspace key generates the character with code
127, and the Delete key generates a well-known escape sequence.

Prepare Kbd for compilation:

./configure --prefix=/usr --datadir=/lib/kbd

The meaning of the configure options:

--datadir=/lib/kbd

This option puts keyboard layout data in a directory that
will always be on the root partition instead of the default
/usr/share/kbd.

Compile the package:

make

This package does not come with a test suite.

Install the package:

make install

Note

For some languages (e.g., Belarusian) the Kbd package doesn't
provide a useful keymap where the stock “by” keymap assumes the ISO-8859-5 encoding,
and the CP1251 keymap is normally used. Users of such languages
have to download working keymaps separately.

Some of the scripts in the LFS-Bootscripts package depend on
kbd_mode,
loadkeys,
openvt, and
setfont. As
/usr may not be available during the
early stages of booting, those binaries need to be on the root
partition: