Attached is a proposed create_static_nodes script (which is based on the script from wheezy's udev package).
After discussion with Marco whether we should stick this into the kmod or udev package, we decided for the latter and will therefore update debian/udev.init accordingly. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
#!/bin/sh
set -e
make_static_nodes() {
[ -e /lib/modules/$(uname -r)/modules.devname ] || return 0
[ -x /bin/kmod ] || return 0
/bin/kmod static-nodes --format=tmpfiles | \
while read type name mode uid gid age arg; do
[ -e $name ] && continue
case "$type" in
c|b) mknod -m $mode $name $type $(echo $arg | sed '/:/ /') ;;
d) mkdir $name ;;
*) echo "unparseable line ($type $name $mode $uid $gid $age $arg)" >&2 ;;
esac
if [ -x /sbin/restorecon ]; then
/sbin/restorecon $name
fi
done
}
make_static_nodes
exit 0
signature.asc
Description: OpenPGP digital signature

