summaryrefslogtreecommitdiffstats
path: root/rpm
diff options
context:
space:
mode:
authorPavel Zakharov <[email protected]>2019-07-17 18:33:05 -0400
committerTony Hutter <[email protected]>2019-09-25 11:27:51 -0700
commit38528476bf0b64e7462a1141ff73d016a94f3471 (patch)
tree546f0df623a9dc17a5027a1d5354a5370267ee4d /rpm
parentbeb21db3c6ac503a43ef7c6532d099c056f89f5b (diff)
New service that waits on zvol links to be created
The zfs-volume-wait.service scans existing zvols and waits for their links under /dev to be created. Any service that depends on zvol links to be there should add a dependency on zfs-volumes.target. By default, this target is not enabled. Reviewed-by: Fabian Grünbichler <[email protected]> Reviewed-by: Antonio Russo <[email protected]> Reviewed-by: Richard Laager <[email protected]> Reviewed-by: loli10K <[email protected]> Reviewed-by: John Gallagher <[email protected]> Reviewed-by: George Wilson <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Pavel Zakharov <[email protected]> Closes #8975
Diffstat (limited to 'rpm')
-rw-r--r--rpm/generic/zfs.spec.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
index 0864a72a1..4fdf7bb69 100644
--- a/rpm/generic/zfs.spec.in
+++ b/rpm/generic/zfs.spec.in
@@ -322,7 +322,7 @@ image which is ZFS aware.
%if 0%{?_systemd}
%define systemd --enable-systemd --with-systemdunitdir=%{_unitdir} --with-systemdpresetdir=%{_presetdir} --with-systemdmodulesloaddir=%{_modulesloaddir} --with-systemdgeneratordir=%{_systemdgeneratordir} --disable-sysvinit
- %define systemd_svcs zfs-import-cache.service zfs-import-scan.service zfs-mount.service zfs-share.service zfs-zed.service zfs.target zfs-import.target
+ %define systemd_svcs zfs-import-cache.service zfs-import-scan.service zfs-mount.service zfs-share.service zfs-zed.service zfs.target zfs-import.target zfs-volume-wait.service zfs-volumes.target
%else
%define systemd --enable-sysvinit --disable-systemd
%endif
@@ -419,6 +419,7 @@ systemctl --system daemon-reload >/dev/null || true
%{_sbindir}/*
%{_bindir}/raidz_test
%{_bindir}/zgenhostid
+%{_bindir}/zvol_wait
# Optional Python 2/3 scripts
%{_bindir}/arc_summary
%{_bindir}/arcstat