ca0006b0ed
Add 50-firmware.rules into the initramfs to make drivers that use binary firmware blobs work. I noticed this when booting the livecd and udev failed to flush the queue with radeon driver. Of course it couldn't load the requested firmware. Bump revision. --HG-- extra : convert_revision : aca4dc2f6e9abdff9f853fd220c0cdc50ecfa9e1
47 lines
922 B
Bash
47 lines
922 B
Bash
#!/bin/sh -e
|
|
# initramfs hook for udev
|
|
|
|
MINKVER="2.6.24"
|
|
PREREQ=""
|
|
|
|
# Output pre-requisites
|
|
prereqs()
|
|
{
|
|
echo "$PREREQ"
|
|
}
|
|
|
|
case "$1" in
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
|
|
# Copy across the udev binaries
|
|
copy_exec /sbin/udevd /sbin
|
|
copy_exec /sbin/udevadm /sbin
|
|
|
|
# Copy udev configuration
|
|
mkdir -p ${DESTDIR}/etc/udev
|
|
cp -p /etc/udev/udev.conf ${DESTDIR}/etc/udev
|
|
|
|
# Only copy across relevant rules
|
|
mkdir -p ${DESTDIR}/lib/udev/rules.d
|
|
|
|
UDEV_RULES="
|
|
50-udev-default.rules 50-firmware.rules 60-persistent-storage.rules
|
|
61-persistent-storage-edd.rules 64-device-mapper.rules
|
|
64-md-raid.rules 80-drivers.rules 95-udev-late.rules"
|
|
|
|
for f in ${UDEV_RULES}; do
|
|
cp -p /lib/udev/rules.d/$f ${DESTDIR}/lib/udev/rules.d
|
|
done
|
|
|
|
# Copy across helpers the rules need
|
|
mkdir -p ${DESTDIR}/lib/udev
|
|
copy_exec /lib/udev/path_id /lib/udev
|
|
cp -f /lib/udev/firmware.sh ${DESTDIR}/lib/udev
|