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

Bug#358153: There is a race in initramfs-tools



Package: initramfs-tools
Version: 0.53c
Followup-For: Bug #358153


By the time /scripts/local-top/md runs, there are no scsi devices created (at least in
 my machine with Adaptech cards).

The problem is related to udev, lasting many seconds to create /dev/sd*.

I solved the problem with a script called await which expects /dev/sda to appear in
/dev, and then waits about 5 seconds more. I installed the script in:

/etc/mkinitramfs/scripts/local-top/await

and regenerate the initrd.

The problem with my script is that, it is not a generic solution, machines without
/dev/sda will hang forever.  A general solution to sincronize scripts with udev
should be search.

The script is trivial, but If you need it I will be glad to give it.



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.01-4   Tiny utilities for small and embed
ii  cpio                          2.6-10     GNU cpio -- a program to manage ar
ii  klibc-utils                   1.2.4-1    small statically-linked utilities 
ii  udev                          0.085-1    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information



Reply to: