Package: udev
Version: 0.080-1
Severity: wishlist

I've found a problem not caused by udev but triggered by its startup script
that I believe could be documented on the udev README.Debian file, as that is
the first place I would look for it.

The problem is related to the glibc NSS configuration (/etc/nsswitch.conf) and
the use of network enabled services to lookup user or group information.

The problem is that udevd makes some user and group lookups when booting and
if the nsswitch.conf uses services like nss_ldap or nis they try to contact
the server until a timeout is reached (that is the documented behaviour and
usually is right) but with the udev startup script happens for all the calls,
as the network is still not configured.

After all the timeouts udevd continues its execution, but the wait is so long
that makes the user believe that something is broken with udevd.

The solution I've found is to use a configuration like the following for
the password and group sections of 'nsswitch.conf':

  passwd:         files ldap [UNAVAIL=return]
  group:          files ldap [UNAVAIL=return]
  
With that, the ldap service is detected as not available and the user and
groups lookups finish inmediatelly and udevd continues it's execution
normally.

-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
total 0
lrwxrwxrwx 1 root root 20 2005-04-11 10:58 020_permissions.rules -> 
../permissions.rules
lrwxrwxrwx 1 root root 19 2005-10-14 09:28 025_libgphoto2.rules -> 
../libgphoto2.rules
lrwxrwxrwx 1 root root 16 2005-12-19 19:38 025_libsane.rules -> ../libsane.rules
lrwxrwxrwx 1 root root 13 2005-12-14 10:24 035_kino.rules -> ../kino.rules
lrwxrwxrwx 1 root root 12 2005-10-18 10:23 050_hal-plugdev.rules -> ../hal.rules
lrwxrwxrwx 1 root root 19 2004-12-13 18:53 cd-aliases.rules -> 
../cd-aliases.rules
lrwxrwxrwx 1 root root 13 2004-12-13 18:53 udev.rules -> ../udev.rules
lrwxrwxrwx 1 root root 19 2005-08-23 12:17 z20_persistent.rules -> 
../persistent.rules
lrwxrwxrwx 1 root root 12 2005-07-25 08:53 z50_run.rules -> ../run.rules
lrwxrwxrwx 1 root root 16 2005-10-13 12:57 z55_hotplug.rules -> ../hotplug.rules
lrwxrwxrwx 1 root root 19 2005-08-23 12:47 z60_alsa-utils.rules -> 
../alsa-utils.rules
lrwxrwxrwx 1 root root 15 2005-09-27 09:37 z60_hdparm.rules -> ../hdparm.rules
lrwxrwxrwx 1 root root 17 2005-07-25 08:53 z70_hotplugd.rules -> 
../hotplugd.rules

-- /sys/:
/sys/block/fd0/dev
/sys/block/hda/dev
/sys/block/hda/hda1/dev
/sys/block/hda/hda2/dev
/sys/block/hda/hda3/dev
/sys/block/hda/hda4/dev
/sys/block/hda/hda5/dev
/sys/block/hda/hda6/dev
/sys/block/hda/hda7/dev
/sys/block/hda/hda8/dev
/sys/block/hdc/dev
/sys/block/ram0/dev
/sys/block/ram10/dev
/sys/block/ram11/dev
/sys/block/ram12/dev
/sys/block/ram13/dev
/sys/block/ram14/dev
/sys/block/ram15/dev
/sys/block/ram1/dev
/sys/block/ram2/dev
/sys/block/ram3/dev
/sys/block/ram4/dev
/sys/block/ram5/dev
/sys/block/ram6/dev
/sys/block/ram7/dev
/sys/block/ram8/dev
/sys/block/ram9/dev
/sys/class/drm/card0/dev
/sys/class/input/input0/event0/dev
/sys/class/input/input1/event1/dev
/sys/class/input/input2/event2/dev
/sys/class/input/input2/mouse0/dev
/sys/class/input/mice/dev
/sys/class/misc/agpgart/dev
/sys/class/misc/device-mapper/dev
/sys/class/misc/hpet/dev
/sys/class/misc/psaux/dev
/sys/class/misc/rtc/dev
/sys/class/printer/lp0/dev
/sys/class/sound/adsp/dev
/sys/class/sound/audio/dev
/sys/class/sound/controlC0/dev
/sys/class/sound/dsp/dev
/sys/class/sound/mixer/dev
/sys/class/sound/pcmC0D0c/dev
/sys/class/sound/pcmC0D0p/dev
/sys/class/sound/pcmC0D1c/dev
/sys/class/sound/pcmC0D2c/dev
/sys/class/sound/pcmC0D3c/dev
/sys/class/sound/pcmC0D4p/dev
/sys/class/sound/timer/dev
/sys/class/usb_device/usbdev1.1/dev
/sys/class/usb_device/usbdev1.2/dev
/sys/class/usb_device/usbdev2.1/dev
/sys/class/usb_device/usbdev3.1/dev
/sys/class/usb/lp0/dev

-- Kernel configuration:


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

Versions of packages udev depends on:
ii  initscripts                   2.86.ds1-6 Standard scripts needed for bootin
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an
ii  libselinux1                   1.28-2     SELinux shared libraries
ii  lsb-base                      3.0-14     Linux Standard Base 3.0 init scrip
ii  makedev                       2.3.1-79   creates device files in /dev
ii  sed                           4.1.4-5    The GNU sed stream editor

udev recommends no packages.

-- debconf information excluded

-- 
Sergio Talens-Oliag <[EMAIL PROTECTED]>   <http://people.debian.org/~sto/>
Key fingerprint = 29DF 544F  1BD9 548C  8F15 86EF  6770 052B  B8C1 FA69

Attachment: signature.asc
Description: Digital signature

Reply via email to