[Pkg-alsa-devel] Bug#243876: Creating device nodes vs. udev

Nathanael Nerode Nathanael Nerode <neroden@twcny.rr.com>, 243876@bugs.debian.org
Sat, 17 Apr 2004 22:34:13 -0400


I don't see a really good way to detect whether udev is managing /dev.  
Perhaps testing for the default udev_db file would be a sufficiently good 
hack for now, as in the below patch?

--- alsa-base.postinst	2004-04-17 21:59:38.000000000 -0400
+++ NEW	2004-04-17 22:30:26.000000000 -0400
@@ -78,7 +78,7 @@
 			/usr/sbin/update-devfsd >&2
 		fi
 		if [ ! -c /dev/audio -a ! -c /dev/dsp -a ! -c /dev/amixer ] || 
[ -h /dev/snd -o ! -d /dev/snd ]; then
-			if [ ! -e /dev/.devfsd ]; then
+			if [ ! -e /dev/.devfsd ] && [ ! -e /dev/.udev.tdb ]; then
 				/usr/share/alsa-base/snddevices > /dev/null
 			fi
 		fi

(Of course, there may then be some /dev nodes created by alsa-base which udev 
should create but doesn't; that would presmably be a bug in udev.)

Anyway, why is this bug 'grave'?  What data is lost?