Re: Bug#344754: fails to load ide-disk, doesn't find hdd

2005-12-29 Thread Sven Luther
On Thu, Dec 29, 2005 at 02:48:49AM +0100, maximilian attems wrote:
> 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

Please make sure to don't mess up like yaird did. powerpc at least doesn't
have any ide-generic module, and works just fine like this and always did, so
please test for this case and don't just die horribly like yaird.

Friendly,

Sven Luther


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#344754: fails to load ide-disk, doesn't find hdd

2005-12-28 Thread maximilian attems
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