Package: udev
Version: 0.090-2
Severity: important

When upgrading from 0.089-1 to 0.090-2, the installation complained that
the preinst script wanted to call /lib/udev/write_net_rules.  However,
this file didn't exist in 0.089-1, and during preinst the new files
aren't unpacked yet.

I worked around the problem by creating an empty (executable) script of
that name.  After that, there were no problems for the upgrade.

The problem is on line 89 of the preinst, where write_net_rules is
called unconditionally (that is, without checking if it exists).  A
solution would be to use

test ! -x /lib/udev/write_net_rules || /lib/udev/write_net_rules all_devices

(the strange ! || instead of && is to get a failure exit code in the
right situations.)
However, I don't know if that does indeed do what it should, because it
means nothing will be done if the script doesn't exist.

-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
total 8
lrwxrwxrwx 1 root root   20 Sep 27  2005 020_permissions.rules -> 
../permissions.rules
lrwxrwxrwx 1 root root   19 Feb 28 12:00 025_libgphoto2.rules -> 
../libgphoto2.rules
lrwxrwxrwx 1 root root   16 Apr 18 00:17 025_libsane.rules -> ../libsane.rules
lrwxrwxrwx 1 root root   19 Sep 27  2005 cd-aliases.rules -> ../cd-aliases.rules
lrwxrwxrwx 1 root root   14 Sep 27  2005 devfs.rules -> ../devfs.rules
-rw-r--r-- 1 root root 1471 Dec  3 11:29 shevek.rules
-rw-r--r-- 1 root root   74 Jan 30 16:52 z00_auto.rules
lrwxrwxrwx 1 root root   25 Apr  6 09:21 z20_persistent-input.rules -> 
../persistent-input.rules
lrwxrwxrwx 1 root root   19 Sep 27  2005 z20_persistent.rules -> 
../persistent.rules
lrwxrwxrwx 1 root root   33 Apr 22 09:44 z45_persistent-net-generator.rules -> 
../persistent-net-generator.rules
lrwxrwxrwx 1 root root   12 Sep 27  2005 z50_run.rules -> ../run.rules
lrwxrwxrwx 1 root root   16 Oct  9  2005 z55_hotplug.rules -> ../hotplug.rules
lrwxrwxrwx 1 root root   15 Oct  4  2005 z60_hdparm.rules -> ../hdparm.rules
lrwxrwxrwx 1 root root   17 Sep 27  2005 z70_hotplugd.rules -> ../hotplugd.rules

-- /sys/:
/sys/block/hda/dev
/sys/block/hda/hda1/dev
/sys/block/hda/hda2/dev
/sys/block/hda/hda3/dev
/sys/block/hdd/dev
/sys/block/hdd/hdd1/dev
/sys/block/hdd/hdd2/dev
/sys/block/hdd/hdd3/dev
/sys/block/md0/dev
/sys/block/ram0/dev
/sys/block/ram1/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/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/block/sda/dev
/sys/block/sdb/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/input2/ts0/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/ppdev/parport0/dev
/sys/class/printer/lp0/dev
/sys/class/scsi_generic/sg0/dev
/sys/class/scsi_generic/sg1/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/pcmC0D2p/dev
/sys/class/sound/timer/dev
/sys/class/usb_device/usbdev1.1/dev
/sys/class/usb_device/usbdev2.1/dev
/sys/class/usb_device/usbdev3.1/dev
/sys/class/usb_device/usbdev3.2/dev

-- Kernel configuration:


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

Versions of packages udev depends on:
ii  initscripts                  2.86.ds1-14 Scripts for initializing and shutt
ii  libc6                        2.3.6-7     GNU C Library: Shared libraries
ii  libselinux1                  1.30-1      SELinux shared libraries
ii  libvolume-id0                0.090-2     libvolume_id shared library
ii  lsb-base                     3.1-4       Linux Standard Base 3.1 init scrip
ii  makedev                      2.3.1-81    creates device files in /dev
ii  sed                          4.1.4-7     The GNU sed stream editor

udev recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to