[Pkg-bluetooth-maintainers] Bug#639356: Bluez udev rules attempt to access /usr when /usr may not be mounted

anomie at users.sourceforge.net anomie at users.sourceforge.net
Fri Aug 26 10:36:50 UTC 2011


Package: bluez
Version: 4.96-1

The file /lib/udev/rules.d/97-bluetooth.rules installed by this package
contains calls to programs in /usr, which may not be mounded at the time
it is first used during boot. This causes error messages to be printed
during boot as udev complains about being unable to execute the command.
Note this only occurs on systems where /usr is a separate partition.

The fix is to install an appropriate script in /lib/udev and then use
that from the udev rules. The script could be something as simple as
this:

	#!/bin/sh -e
	# /usr is not guaranteed to be mounted when udev starts

	(
		. /lib/udev/hotplug.functions
		wait_for_file /usr/sbin/bluetoothd
		exec /usr/sbin/bluetoothd "$@"
	) &

See bug #624678 for a similar bug in a different package.





More information about the Pkg-bluetooth-maintainers mailing list