summaryrefslogtreecommitdiffstats
path: root/udev/rules.d/90-zfs.rules.in
diff options
context:
space:
mode:
Diffstat (limited to 'udev/rules.d/90-zfs.rules.in')
-rw-r--r--udev/rules.d/90-zfs.rules.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/udev/rules.d/90-zfs.rules.in b/udev/rules.d/90-zfs.rules.in
new file mode 100644
index 000000000..52e1d6393
--- /dev/null
+++ b/udev/rules.d/90-zfs.rules.in
@@ -0,0 +1,10 @@
+SUBSYSTEM!="block", GOTO="zfs_end"
+ACTION!="add|change", GOTO="zfs_end"
+
+ENV{ID_FS_TYPE}=="zfs", RUN+="/sbin/modprobe zfs"
+ENV{ID_FS_TYPE}=="zfs_member", RUN+="/sbin/modprobe zfs"
+
+KERNEL=="null", SYMLINK+="root"
+SYMLINK=="null", SYMLINK+="root"
+
+LABEL="zfs_end"