|
|||||||||||
|
Re: [RFC] Loading of IDE modules by hw-detect
From: Frans Pop <elendil(at)planet.nl>
Date: Sun Nov 11 2007 - 08:14:25 EST
Yes, I see what you mean. > Rather than going to all the pain to test that, I'd just modify Don't see how that would help. Both functions are called from the same location... > For bonus points, move the floppy module loading code into mountfloppy, The patch below should do that and has a few other minor changes. I propose to not remove the code from hw-detect until we clean up the ide module loading. > > +if db_get hw-detect/load-ide && [ "$RET" = true ]; then Yes, it's very temporary. I added it mostly so we can easily determine if this change is the cause of a regression by asking users to try booting with that option. I did not add it in the templates file as that is not strictly required. The check allows for the fact that the template may not exist. However, if you prefer I can add it.
Cheers,
[ Jérémy Bobbio ]
if [ ! -e $FLOPPYDEV ]; then
- log-output -t mountfloppy modprobe floppy || true
+ log-output -t mountfloppy modprobe -q floppy || true
+ update-dev
fi
if ! grep -q ^vfat /proc/modules ; then
- log-output -t mountfloppy modprobe vfat || true
+ log-output -t mountfloppy modprobe -q vfat || true
fi
+ # Cannot find a device, or found the wrong device.
if [ ! -e "$FLOPPYDEV" ] || ! try_mount $FLOPPYDEV $FLOPPYMNT; then
- # Cannot find a device, or found the wrong device.
+ # Maybe the user has an ide-floppy device?
+ log-output -t mountfloppy modprobe -q ide-floppy || true
+ update-dev
+
# Ask for help from the user and try it again.
FLOPPYDEV=$(ask_dev)
try_mount $FLOPPYDEV $FLOPPYMNT
-- To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Sun Nov 11 08:15:04 2007 This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 03:19:49 EDT |
||||||||||
|
|||||||||||