Merge pull request from aszlig/boottime-keymap

stage-1: Add option to load keymap during bootup.
This commit is contained in:
Peter Simons 2012-09-24 07:33:03 -07:00
commit 573b6b710f
2 changed files with 13 additions and 1 deletions
modules/system/boot

View File

@ -147,6 +147,10 @@ modprobe scsi_wait_scan || true
udevadm settle || true
# Load boot-time keymap before any LVM/LUKS initialization
@extraUtils@/bin/busybox loadkmap < "@busyboxKeymap@"
# XXX: Use case usb->lvm will still fail, usb->luks->lvm is covered
@preLVMCommands@

View File

@ -288,6 +288,14 @@ let
'';
# the binary keymap for busybox to load at boot
busyboxKeymap = pkgs.runCommand "boottime-keymap"
{ preferLocalBuild = true; }
''
${pkgs.kbd}/bin/loadkeys -qb "${config.i18n.consoleKeyMap}" > $out
'';
# The init script of boot stage 1 (loading kernel modules for
# mounting the root FS).
bootStage1 = pkgs.substituteAll {
@ -297,7 +305,7 @@ let
isExecutable = true;
inherit udevConf extraUtils modulesClosure;
inherit udevConf busyboxKeymap extraUtils modulesClosure;
inherit (config.boot) resumeDevice devSize runSize;