<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>173476</bug_id>
          
          <creation_ts>2007-04-05 15:25 0000</creation_ts>
          <short_desc>IN_HOTPLUG env variable should be UDEVD_EVENT for init scripts</short_desc>
          <delta_ts>2007-04-23 20:27:11 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>baselayout</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gregkh@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>udev-bugs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gregkh@gentoo.org</who>
            <bug_when>2007-04-05 15:25:24 0000</bug_when>
            <thetext>When the IN_HOTPLUG env variable is used, every device in the system creates an entry in the udev database in /dev/.udev.  You can just test for the UDEVD_EVENT variable instead, which does the same thing and is automatically set by udev.  That way these extra database entries are not created.

By doing this, my usage of /dev goes from 600Kb to 150Kb.

Reproducible: Always

Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2007-04-09 07:20:54 0000</bug_when>
            <thetext>Full ack.
Either change it in every file of baselayout, or just add something like this to /sbin/runscript.sh:

[[ -n $UDEVD_EVENT ]] &amp;&amp; IN_HOTPLUG=1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-04-09 10:12:52 0000</bug_when>
            <thetext>Or do this in the udev files that call stuff in /etc/init.d

baselayout will JUST use IN_HOTPLUG and I see no reason to change this</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2007-04-23 20:27:11 0000</bug_when>
            <thetext>Fixed in udev-108-r1.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>