Comment 2 for bug 6783

Revision history for this message
In , Peter HAWKINS (phawkins-trinity) wrote : Non-FHS compliance is a serious problem with hotplug.

severity 245100 serious
tags 245100 + sarge sid
thanks

Hi...

The hotplug scripts do not conform to the FHS, which is a policy
violation and therefore a serious bug. The specific problem that I was
having was on a box with an NFS root filesystem:

Starting hotplug subsystem:
   input
   net
   pci
     ignore pci display device on 03:0e.0
   usb
/etc/hotplug/usb.rc: line 1: wc: command not found
/etc/hotplug/usb.rc: line 224: [: -lt: unary operator expected
/etc/hotplug/usb.rc: line 1: which: command not found

The reason for this is very simple:
$ which which
/usr/bin/which
$ which wc
/usr/bin/wc

but /usr is NOT mounted when the hotplug scripts are running!

You cannot use anything from /usr during system boot!

=)
Peter