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

Bug#268186: Fail to make device directories when used with udeb on fast machines



Package: discover1
Version: 1.6.5
Severity: normal
Tags: patch

Hello,

Currently, in Debian-BR-CDD project, we use udev by default and then
found a problem when discover is managing the cdrom devices. I
included a patch to solve it.

Please apply it and, if possible, include this fix on sarge. 

Index: discover/discover.init
===================================================================
RCS file: /cvsroot/pkg-discover/discover1/discover/discover.init,v
retrieving revision 1.20
diff -u -r1.20 discover.init
--- discover/discover.init      16 Jul 2004 18:27:44 -0000      1.20
+++ discover/discover.init      26 Aug 2004 12:37:57 -0000
@@ -190,6 +190,13 @@
         fi
     done
 
+    # When used with udev in fast machines, the time between the
+    # module load and device creation need to be bigger or will fail
+    # to make it's directory.
+    if [ "$(pidof udevd)" ]; then
+       sleep 2s
+    fi
+
     # Link /dev/cdromX to all detected CD/DVD drives, and create mount points:
     CDNUM=0
     # XXX sort(1) isn't available if /usr/ isn't mounted


-- Package-specific info:

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (800, 'unstable'), (700, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7
Locale: LANG=pt_BR, LC_CTYPE=pt_BR

Versions of packages discover1 depends on:
ii  ash                         0.5.1-3      Compatibility package for the Debi
ii  dash                        0.5.1-3      The Debian Almquist Shell
ii  debconf                     1.4.32       Debian configuration management sy
ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an
ii  libdiscover1                1.6.5        hardware identification library

-- debconf information excluded



Reply to: