# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 28 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> 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 <wolf31o2@gentoo.org> gen_initramfs.sh,
generic/linuxrc:
Use which to determine the location of splash_geninitramfs, rather than
echo " --splash=<theme> Enable framebuffer splash using <theme>"
echo " --splash-res=<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"
;;
--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}"
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
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
fi
[ ! -e /dev/tty0 ] && ln -s /dev/tty1 /dev/tty0
- chooseKeymap
+ [ -d /lib/keymaps/keymapList ] && chooseKeymap
[ "${DEVBIND}" = '1' ] && umount /dev