Set cmd paths in udev rules using --prefix
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 24 Mar 2011 18:34:41 +0000 (11:34 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Mar 2011 17:05:09 +0000 (10:05 -0700)
commit1d82906dea5eb698a854d992e445e794fb5a0880
tree99b4da105796b83317173749e85071f259e6da83
parenta5729f7b22e14aed657bd716f3ee98b02f7e7c41
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.
configure
configure.ac
etc/udev/rules.d/.gitignore [new file with mode: 0644]
etc/udev/rules.d/60-zpool.rules.in [moved from etc/udev/rules.d/60-zpool.rules with 77% similarity]
etc/udev/rules.d/60-zvol.rules.in [moved from etc/udev/rules.d/60-zvol.rules with 53% similarity]
etc/udev/rules.d/Makefile.am
etc/udev/rules.d/Makefile.in