Debian Bug report logs - #336297
udev: Doesn't appear to run RUN= entries on startup

version graph

Package: udev; Maintainer for udev is Debian systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>; Source for udev is src:systemd (PTS, buildd, popcon).

Reported by: Mark Brown <broonie@sirena.org.uk>

Date: Sat, 29 Oct 2005 10:18:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version udev/0.071-1

Done: md@Linux.IT (Marco d'Itri)

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#336297; Package udev. (full text, mbox, link).


Acknowledgement sent to Mark Brown <broonie@sirena.org.uk>:
New Bug report received and forwarded. Copy sent to Marco d'Itri <md@linux.it>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Mark Brown <broonie@sirena.org.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: udev: Doesn't appear to run RUN= entries on startup
Date: Sat, 29 Oct 2005 11:09:34 +0100
Package: udev
Version: 0.071-1
Severity: normal

I have the following rule in my /etc/udev/rules.d/local.rules:

SYSFS{idVendor}=="04e6", SYSFS{idProduct}=="e003", RUN+="/etc/hotplug/usb/gnupg-ccid"

When I hotplug this device at run time the referenced script is
executed.  However, when I boot the machine with the device already
connected the script is not run.  I verifed this be causing the script
to log when run.

If this is a job that is supposed to be performed by a separate coldplug
package then please treat this as a request for this to be handled
somehow during upgrades (perhaps by warning if upgraded when coldplug is
not installed?).

-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
total 4
lrwxrwxrwx  1 root root  20 2005-04-10 22:33 020_permissions.rules -> ../permissions.rules
lrwxrwxrwx  1 root root  19 2005-10-15 11:14 025_libgphoto2.rules -> ../libgphoto2.rules
lrwxrwxrwx  1 root root  12 2005-10-20 21:09 050_hal-plugdev.rules -> ../hal.rules
lrwxr-xr-x  1 root root  19 2004-12-07 11:50 cd-aliases.rules -> ../cd-aliases.rules
-rw-r--r--  1 root root 295 2005-10-23 12:17 local.rules
lrwxr-xr-x  1 root root  13 2004-04-08 14:24 udev.rules -> ../udev.rules
lrwxrwxrwx  1 root root  19 2005-08-17 19:58 z20_persistent.rules -> ../persistent.rules
lrwxrwxrwx  1 root root  12 2005-07-07 22:14 z50_run.rules -> ../run.rules
lrwxrwxrwx  1 root root  16 2005-10-22 10:16 z55_hotplug.rules -> ../hotplug.rules
lrwxrwxrwx  1 root root  19 2005-08-03 22:44 z60_alsa-utils.rules -> ../alsa-utils.rules
lrwxrwxrwx  1 root root  15 2005-09-23 19:26 z60_hdparm.rules -> ../hdparm.rules
lrwxrwxrwx  1 root root  17 2005-07-07 22:14 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/hda/hda4/dev
/sys/block/hdb/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/block/sda/dev
/sys/block/sda/sda1/dev
/sys/class/adb/adb/dev
/sys/class/drm/card0/dev
/sys/class/graphics/fb0/dev
/sys/class/input/event0/dev
/sys/class/input/event1/dev
/sys/class/input/event2/dev
/sys/class/input/event3/dev
/sys/class/input/event4/dev
/sys/class/input/mice/dev
/sys/class/input/mouse0/dev
/sys/class/input/mouse1/dev
/sys/class/misc/agpgart/dev
/sys/class/misc/apm_bios/dev
/sys/class/misc/device-mapper/dev
/sys/class/misc/nvram/dev
/sys/class/misc/pmu/dev
/sys/class/misc/psaux/dev
/sys/class/misc/rtc/dev
/sys/class/sound/controlC0/dev
/sys/class/sound/controlC1/dev
/sys/class/sound/pcmC0D0p/dev
/sys/class/sound/pcmC1D0c/dev
/sys/class/sound/timer/dev
/sys/class/usb/hiddev0/dev
/sys/class/video4linux/video0/dev

-- Kernel configuration:
 isapnp_init not present.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-powerpc
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages udev depends on:
ii  initscripts                   2.86.ds1-4 Standard scripts needed for bootin
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an
ii  libselinux1                   1.26-1     SELinux shared libraries
ii  libsepol1                     1.8-1      Security Enhanced Linux policy lib
ii  lsb-base                      3.0-10     Linux Standard Base 3.0 init scrip
ii  makedev                       2.3.1-78   creates device files in /dev
ii  sed                           4.1.4-4    The GNU sed stream editor

udev recommends no packages.

-- debconf information excluded



Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#336297; Package udev. (full text, mbox, link).


Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>. (full text, mbox, link).


Message #10 received at 336297@bugs.debian.org (full text, mbox, reply):

From: md@Linux.IT (Marco d'Itri)
To: Mark Brown <broonie@sirena.org.uk>, 336297@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#336297: udev: Doesn't appear to run RUN= entries on startup
Date: Sat, 29 Oct 2005 13:36:53 +0200
[Message part 1 (text/plain, inline)]
tag 336297 unreproducible moreinfo
thanks

On Oct 29, Mark Brown <broonie@sirena.org.uk> wrote:

> I have the following rule in my /etc/udev/rules.d/local.rules:
> 
> SYSFS{idVendor}=="04e6", SYSFS{idProduct}=="e003", RUN+="/etc/hotplug/usb/gnupg-ccid"

It's supposed to work. At least, it does for me.
BTW, you should add a BUS statement and definitely ACTION=="add".

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Tags added: unreproducible, moreinfo Request was from md@Linux.IT (Marco d'Itri) to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#336297; Package udev. (full text, mbox, link).


Acknowledgement sent to Mark Brown <broonie@sirena.org.uk>:
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>. (full text, mbox, link).


Message #17 received at 336297@bugs.debian.org (full text, mbox, reply):

From: Mark Brown <broonie@sirena.org.uk>
To: 336297@bugs.debian.org
Subject: Re: Bug#336297: udev: Doesn't appear to run RUN= entries on startup
Date: Sat, 29 Oct 2005 15:14:35 +0100
[Message part 1 (text/plain, inline)]
On Sat, Oct 29, 2005 at 01:36:53PM +0200, Marco d'Itri wrote:

> It's supposed to work. At least, it does for me.
> BTW, you should add a BUS statement and definitely ACTION=="add".

I changed the rule to:

BUS=="usb", SYSFS{idVendor}=="04e6", SYSFS{idProduct}=="e003", ACTION=="add", RUN+="/etc/hotplug/usb/gnupg-ccid"

but it still only works on hotplug, not at startup.  Might this be a bug
in the script triggered by the different conditions at startup?  The
active portion of the script is:

  if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
  then
      chmod o-rwx "${DEVICE}"
      chgrp "${GROUP}" "${DEVICE}"
      chmod g+rw "${DEVICE}"
  fi

(note the test for $ACTION - this is why I didn't bother specifying it
in the udev rule.)  In particular, could the script be run prior to the
device node being created?  Also, I'm expecting that the device passed
in will be in /proc/bus/usb/ (it appears to be during normal operation).
Might that create trouble?

-- 
"You grabbed my hand and we fell into it, like a daydream - or a fever."
[signature.asc (application/pgp-signature, inline)]

Reply sent to md@Linux.IT (Marco d'Itri):
You have taken responsibility. (full text, mbox, link).


Notification sent to Mark Brown <broonie@sirena.org.uk>:
Bug acknowledged by developer. (full text, mbox, link).


Message #22 received at 336297-done@bugs.debian.org (full text, mbox, reply):

From: md@Linux.IT (Marco d'Itri)
To: Mark Brown <broonie@sirena.org.uk>, 336297-done@bugs.debian.org
Subject: Re: Bug#336297: udev: Doesn't appear to run RUN= entries on startup
Date: Sat, 29 Oct 2005 23:15:18 +0200
[Message part 1 (text/plain, inline)]
On Oct 29, Mark Brown <broonie@sirena.org.uk> wrote:

> (note the test for $ACTION - this is why I didn't bother specifying it
> in the udev rule.)
Yes, but if you test it in the rule you save a fork+exec if it does not
match.

>  In particular, could the script be run prior to the
> device node being created?
Yes, sysfs is not syncronized to procfs, this was discussed last week on
debian-devel@. (Actually IIRC it's not guaranteed to work with the old
hotplug either).
If you want, there is a function in /lib/hotplug/hotplug.functions (but
beware: in the next upload the file will be moved to /lib/udev to match
other distributions) which you can use.
Or else you can just install a 2.6.15 kernel which supports
/dev/bus/usb/ and does not need a script.

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#336297; Package udev. (full text, mbox, link).


Acknowledgement sent to Mark Brown <broonie@sirena.org.uk>:
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>. (full text, mbox, link).


Message #27 received at 336297@bugs.debian.org (full text, mbox, reply):

From: Mark Brown <broonie@sirena.org.uk>
To: Marco d'Itri <md@Linux.IT>
Cc: 336297@bugs.debian.org
Subject: Re: Bug#336297: udev: Doesn't appear to run RUN= entries on startup
Date: Sun, 30 Oct 2005 10:04:29 +0000
[Message part 1 (text/plain, inline)]
On Sat, Oct 29, 2005 at 11:15:18PM +0200, Marco d'Itri wrote:
> On Oct 29, Mark Brown <broonie@sirena.org.uk> wrote:

> > (note the test for $ACTION - this is why I didn't bother specifying it
> > in the udev rule.)

> Yes, but if you test it in the rule you save a fork+exec if it does not
> match.

Ah, OK.  You phrased it as being more of a requirement than a
performance

> Or else you can just install a 2.6.15 kernel which supports
> /dev/bus/usb/ and does not need a script.

Presumably I would still need a script in order to propagate things into
procfs until user space knows about the new /dev directory?

-- 
"You grabbed my hand and we fell into it, like a daydream - or a fever."
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Marco d'Itri <md@linux.it>:
Bug#336297; Package udev. (full text, mbox, link).


Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to Marco d'Itri <md@linux.it>. (full text, mbox, link).


Message #32 received at 336297@bugs.debian.org (full text, mbox, reply):

From: md@Linux.IT (Marco d'Itri)
To: Mark Brown <broonie@sirena.org.uk>, 336297@bugs.debian.org
Subject: Re: Bug#336297: udev: Doesn't appear to run RUN= entries on startup
Date: Sun, 30 Oct 2005 12:38:19 +0100
[Message part 1 (text/plain, inline)]
On Oct 30, Mark Brown <broonie@sirena.org.uk> wrote:

> > Or else you can just install a 2.6.15 kernel which supports
> > /dev/bus/usb/ and does not need a script.
> Presumably I would still need a script in order to propagate things into
> procfs until user space knows about the new /dev directory?
The libusb package in unstable already supports /dev/bus/.
I do not know if it is in testing too yet.

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 18 Jun 2007 22:06:25 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 25 20:48:33 2026; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.