From: Chris Gianelloni Date: Thu, 28 Feb 2008 21:33:51 +0000 (+0000) Subject: Added a --no-keymap option for bug #210886. X-Git-Tag: v3.4.10.902~146 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=89f860a323e451c1fceb838ca21e6624d9028444;p=genkernel.git Added a --no-keymap option for bug #210886. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@606 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/ChangeLog b/ChangeLog index 2a6bb80..843ec20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 28 Feb 2008; Chris Gianelloni gen_cmdline.sh, + gen_initramfs.sh, gen_initrd.sh, generic/initrd.scripts: + Added a --no-keymap option for bug #210886. + 28 Feb 2008; Chris Gianelloni gen_initramfs.sh, generic/linuxrc: Use which to determine the location of splash_geninitramfs, rather than diff --git a/gen_cmdline.sh b/gen_cmdline.sh index 7a962cb..4408900 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -74,6 +74,7 @@ longusage() { echo " --splash= Enable framebuffer splash using " echo " --splash-res= Select splash theme resolutions to install" echo " --do-keymap-auto Forces keymap selection at boot" + echo " --no-keymap Disables keymap selection support" echo " --evms Include EVMS support" echo " --> 'emerge evms' in the host operating system" echo " first" @@ -199,8 +200,13 @@ parse_cmdline() { ;; --do-keymap-auto) CMD_DOKEYMAPAUTO=1 + CMD_KEYMAP=1 print_info 2 "CMD_DOKEYMAPAUTO: ${CMD_DOKEYMAPAUTO}" ;; + --no-keymap) + CMD_KEYMAP=0 + print_info 2 "CMD_KEYMAP: ${CMD_KEYMAP}" + ;; --evms) CMD_EVMS=1 print_info 2 "CMD_EVMS: ${CMD_EVMS}" diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 7280982..659398d 100644 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -363,8 +363,11 @@ append_auxilary() { then echo 'MY_HWOPTS="${MY_HWOPTS} keymap"' >> ${TEMP}/initramfs-aux-temp/etc/initrd.defaults fi - mkdir -p "${TEMP}/initramfs-aux-temp/lib/keymaps" - /bin/tar -C "${TEMP}/initramfs-aux-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz" + if isTrue $CMD_KEYMAP + then + mkdir -p "${TEMP}/initramfs-aux-temp/lib/keymaps" + /bin/tar -C "${TEMP}/initramfs-aux-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz" + fi if isTrue $CMD_SLOWUSB then echo 'MY_HWOPTS="${MY_HWOPTS} slowusb"' >> ${TEMP}/initramfs-aux-temp/etc/initrd.defaults diff --git a/gen_initrd.sh b/gen_initrd.sh index 8fc64ef..a633f98 100644 --- a/gen_initrd.sh +++ b/gen_initrd.sh @@ -290,8 +290,11 @@ create_initrd_aux() { then echo 'MY_HWOPTS="${MY_HWOPTS} keymap"' >> ${TEMP}/initrd-temp/etc/initrd.defaults fi - mkdir -p "${TEMP}/initrd-temp/lib/keymaps" - /bin/tar -C "${TEMP}/initrd-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz" + if isTrue $CMD_KEYMAP + then + mkdir -p "${TEMP}/initrd-temp/lib/keymaps" + /bin/tar -C "${TEMP}/initrd-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz" + fi if isTrue $CMD_SLOWUSB then echo 'MY_HWOPTS="${MY_HWOPTS} slowusb"' >> ${TEMP}/initrd-temp/etc/initrd.defaults diff --git a/generic/initrd.scripts b/generic/initrd.scripts index b2e681d..6c0e742 100644 --- a/generic/initrd.scripts +++ b/generic/initrd.scripts @@ -489,7 +489,7 @@ setup_keymap() { fi [ ! -e /dev/tty0 ] && ln -s /dev/tty1 /dev/tty0 - chooseKeymap + [ -d /lib/keymaps/keymapList ] && chooseKeymap [ "${DEVBIND}" = '1' ] && umount /dev