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

Bug#422217: linux-image-2.6.20-1-686: SCSI disks initialised too late for mdadm



This one time, at band camp, Simon A. Boggis said:
> I've done my experiment with initramfs-tools - putting a 'sleep 10'
> before mount_root makes my machine boot the kernel, as I suspected in my
> original email:
> 
> # diff -u /usr/share/initramfs-tools/init{.orig,}
> --- /usr/share/initramfs-tools/init.orig        2007-03-07
> 22:30:42.000000000 +0000
> +++ /usr/share/initramfs-tools/init     2007-05-11 14:33:55.000000000 +0100
> @@ -145,6 +145,12 @@
>  run_scripts /scripts/init-premount
>  [ "$quiet" != "y" ] && log_end_msg
> 
> +#SAB>>>>>>
> +log_begin_msg "SAB: slow SCSI disk discovery workaround: sleeping for
> 10 seconds"
> +/bin/sleep 10
> +log_end_msg
> +#<<<<<<SAB
> +
>  maybe_break mount
>  log_begin_msg "Mounting root file system..."
>  . /scripts/${BOOT}

Not that I'm involved in this in any real way, but things like hardcoded
sleep timeouts always make me uncomfortable - they introduce delays for
people who don't need them, and they are racy at best and can still fail
for the people who do need them.  Is there some way to use udevsettle or
something instead?  If not, some method of sleep until $disk seems
better than hardcoding it, to me at least.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran@debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature


Reply to: