]> git.proxmox.com Git - mirror_zfs.git/blobdiff - rpm/generic/zfs.spec.in
Add kernel module auto-loading
[mirror_zfs.git] / rpm / generic / zfs.spec.in
index f28793a833b421741de17120484691230f0c21ad..87c6f5e25926876616220dceb99a681965dd97c4 100644 (file)
@@ -283,6 +283,15 @@ fi
 %endif
 exit 0
 
+# On RHEL/CentOS 7 the static nodes aren't refreshed by default after
+# installing a package.  This is the default behavior for Fedora.
+%posttrans
+%if 0%{?rhel} == 7 || 0%{?centos} == 7
+systemctl restart kmod-static-nodes
+systemctl restart systemd-tmpfiles-setup-dev
+udevadm trigger
+%endif
+
 %preun
 %if 0%{?_systemd}
 %if 0%{?systemd_preun:1}