diff options
author | Maximilian Gass <mxey@ghosthacking.net> | 2010-02-06 21:01:14 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2010-02-22 23:13:43 +0100 |
commit | 0830e97339add137d56d13cdbe07282f3cdba8f6 (patch) | |
tree | 7ec36594679be672758f38ba3374a694efe7f8b6 /hooks/keymap | |
parent | 323005e4b8468ab9f7151d883d3df7b75f130911 (diff) | |
download | initramfs-tools-0830e97339add137d56d13cdbe07282f3cdba8f6.tar.gz initramfs-tools-0830e97339add137d56d13cdbe07282f3cdba8f6.zip |
mkinitramfs: KEYMAP option fails to work due to missing keymap
I have attached a patch that makes the keymap hook consider
/etc/console-setup/cached.kmap.gz.
I have also added gunzip to the initramfs because otherwise loadkeys complained
that it was missing and failed to load the keymap.
(closes: #565416)
Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'hooks/keymap')
-rwxr-xr-x | hooks/keymap | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hooks/keymap b/hooks/keymap index a2b1b08..fa97209 100755 --- a/hooks/keymap +++ b/hooks/keymap @@ -21,13 +21,20 @@ if [ "$KEYMAP" != "y" ] && [ "$KEYMAP" != "Y" ]; then fi # Step 1 - Basic tools -if [ ! -x /bin/loadkeys ] || [ ! -r /etc/console/boottime.kmap.gz ]; then +if [ ! -x /bin/loadkeys ] || +! ( [ -r /etc/console/boottime.kmap.gz ] \ + || [ -r /etc/console-setup/cached.kmap.gz ] ); then exit 0 fi . /usr/share/initramfs-tools/hook-functions copy_exec /bin/loadkeys /bin -cp /etc/console/boottime.kmap.gz ${DESTDIR}/etc/ + +if [ -e /etc/console-setup/cached.kmap.gz ]; then + cp /etc/console-setup/cached.kmap.gz ${DESTDIR}/etc/boottime.kmap.gz +else + cp /etc/console/boottime.kmap.gz ${DESTDIR}/etc/ +fi # Step 2 - Check for UTF8 console if [ ! -x /usr/bin/kbd_mode ]; then |