diff options
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/generic/zfs.spec.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 27a2424df..52dc80a4e 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -284,6 +284,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} |