Set cmd paths in udev rules using --prefix

The udev/rules.d scripts must use absolute paths to their support
binaries.  However, where those binaries get installed depends
on what --prefix was set to when the package was configured.
This change makes the udev/rules.d helpers to *.in files which
are processed by configure.  This allows them to be dynamically
updated to include the specified --prefix.

Additionally, this change updates 60-zvol.rules to handle both
the 'add' and 'change' actions.  This ensures that that all
valid zvol devices are correctly linked.
This commit is contained in:
Brian Behlendorf
2011-03-24 11:34:41 -07:00
parent a5729f7b22
commit 1d82906dea
7 changed files with 36 additions and 18 deletions
+2
View File
@@ -60,6 +60,8 @@ AC_CONFIG_FILES([
etc/Makefile
etc/udev/Makefile
etc/udev/rules.d/Makefile
etc/udev/rules.d/60-zpool.rules
etc/udev/rules.d/60-zvol.rules
etc/init.d/Makefile
etc/zfs/Makefile
man/Makefile