| Bug#: 173476 | Product: Gentoo Linux | Version: unspecified | Platform: All |
| OS/Version: Linux | Status: RESOLVED | Severity: normal | Priority: P2 |
| Resolution: FIXED | Assigned To: base-system@gentoo.org | Reported By: gregkh@gentoo.org | |
| Component: baselayout | |||
| URL: | |||
| Summary: IN_HOTPLUG env variable should be UDEVD_EVENT for init scripts | |||
| Keywords: | |||
| Status Whiteboard: | |||
| Opened: 2007-04-05 15:25 0000 | |||
| Description: | Opened: 2007-04-05 15:25 0000 |
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:
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
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