Bug#344754: fails to load ide-disk, doesn't find hdd
On Wed, 28 Dec 2005, Joey Hess wrote:
> I also see this bug, using initramfs-tools 0.44 and
> linux-image-2.6.14-2-386 (2.6.14-6).
could you try the attached hook file,
please place it under /usr/share/initramfs-tools/scripts/init-premount/
and recreate the initramfs: update-initramfs -u
hope it works,
should load ide-disk and ide-generic after the udev run,
as udev currently fails to do so.
> It's puzzling that the changelog for this version of the kernel
> claims to have dropped the module ide patch, but all the ide modules
> including ide-disk, ide-generic and the ide/pci/* modules, are still there
> in the debian package.
removed the patch without furthere notice as your concerns weren't
touched by it.
--
maks
#!/bin/sh
PREREQ="udev"
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
modprobe -q ide-generic
[ -e /proc/ide ] || return
for drive in /proc/ide/*; do
[ -e ${drive}/media ] || continue
# nothing to do if the device has already been took in charge
unit=${drive#/proc/ide/}
[ -d /sys/block/$unit ] && continue
read media < $drive/media
case "$media" in
disk) MODULE=ide-disk ;;
cdrom) MODULE=ide-cd ;;
tape) MODULE=ide-tape ;;
floppy) MODULE=ide-floppy ;;
*) MODULE=ide-generic ;;
esac
modprobe -q ${MODULE}
done
Reply to: