Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173476 - IN_HOTPLUG env variable should be UDEVD_EVENT for init scripts
Summary: IN_HOTPLUG env variable should be UDEVD_EVENT for init scripts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 15:25 UTC by Greg Kroah-Hartman (RETIRED)
Modified: 2007-04-23 20:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Kroah-Hartman (RETIRED) gentoo-dev 2007-04-05 15:25:24 UTC
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:
Comment 1 Matthias Schwarzott gentoo-dev 2007-04-09 07:20:54 UTC
Full ack.
Either change it in every file of baselayout, or just add something like this to /sbin/runscript.sh:

[[ -n $UDEVD_EVENT ]] && IN_HOTPLUG=1
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-04-09 10:12:52 UTC
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
Comment 3 Matthias Schwarzott gentoo-dev 2007-04-23 20:27:11 UTC
Fixed in udev-108-r1.