[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#515866: MacBook Pro keyboard unresponsive at LUKS prompt with kernels >= 2.6.27



Package: initramfs-tools
Version: 0.92o

When I boot a 2.6.27 or later kernel on my MacBook Pro and try to
enter my passphrase at the LUKS prompt, nothing happens.  This appears
to be

 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/310460

The attached script, when put in /etc/initramfs-tools/hooks, includes
the hid-apple module in the initrd if it's available, which fixes the
problem.

It would be helpful to have something like this included in the
standard initramfs-tools package.  I have a couple questions about how
it should behave, though:

 * Should it only include the module if LUKS is in use?
 * Should it only include the module if the module is needed for
    * this computer model (i.e., a MacBook Pro)
    * any of the attached keyboards (what about keyboards that are
      attached later?)
   ?
 * What about other the hid-* modules?

-- 
Matt                                                 http://ftbfs.org/
#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

# Hooks for loading Apple keyboard quirks into the initramfs

. /usr/share/initramfs-tools/hook-functions

if [ -f "$MODULESDIR/kernel/drivers/hid/hid-apple.ko" ]; then
   manual_add_modules hid-apple
fi

Reply to: