mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-25 16:28:24 +03:00

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.
7 lines
252 B
Plaintext
7 lines
252 B
Plaintext
# Peristent links for zvol
|
|
#
|
|
# persistent disk links: /dev/zvol/dataset_name
|
|
# also creates compatibilty symlink of /dev/dataset_name
|
|
|
|
KERNEL=="zd*" SUBSYSTEM=="block" ACTION=="add|change" PROGRAM="@prefix@/bin/zvol_id $tempnode" SYMLINK+="zvol/%c %c"
|