diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-03-06 16:13:04 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-03-06 16:13:32 (EST) |
commit | 4008d4fb9fcebe5987203bde9cb96f45dfd2b146 (patch) | |
tree | babc26193b5e954c65a4d9f40df00ddd0e1422d9 /inst | |
parent | 1591cbdb2959397ee7085570a446b0864bc08454 (diff) | |
download | pc-inst-4008d4fb9fcebe5987203bde9cb96f45dfd2b146.zip pc-inst-4008d4fb9fcebe5987203bde9cb96f45dfd2b146.tar.gz pc-inst-4008d4fb9fcebe5987203bde9cb96f45dfd2b146.tar.bz2 |
Keyboard layout
Diffstat (limited to 'inst')
-rwxr-xr-x | inst | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -267,6 +267,31 @@ do_apt_update() return 0 } +do_kb_setup() +{ + info 'Setting keyboard configuration' + + cat >"${target}/etc/default/keyboard" <<-EOF + # Check /usr/share/doc/keyboard-configuration/README.Debian for + # documentation on what to do after having modified this file. + + # The following variables describe your keyboard and can have the same + # values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options + # in /etc/X11/xorg.conf. + + XKBMODEL="${kb_model}" + XKBLAYOUT="${kb_layout}" + XKBVARIANT="${kb_variant}" + XKBOPTIONS="${kb_options}" + + # If you don't want to use the XKB layout on the console, you can + # specify an alternative keymap. Make sure it will be accessible + # before /usr is mounted. + # KMAP=/etc/console-setup/defkeymap.kmap.gz + BACKSPACE="${kb_backspace}" + EOF +} + do_locale_setup() { local l= @@ -488,6 +513,7 @@ main() do_ chroot_setup || { do_ umount; return 1; } do_ fstab_setup || { do_ chroot_cleanup; do_ umount; return 1; } do_ apt_update || { do_ chroot_cleanup; do_ umount; return 1; } + do_ kb_setup || { do_ chroot_cleanup; do_ umount; return 1; } do_ locale_setup || { do_ chroot_cleanup; do_ umount; return 1; } do_ tz_setup || { do_ chroot_cleanup; do_ umount; return 1; } do_ user_setup || { do_ chroot_cleanup; do_ umount; return 1; } |