Skip to content

Commit

Permalink
spec: use /usr/sbin paths for Fedora 40+
Browse files Browse the repository at this point in the history
  • Loading branch information
oalbrigt committed Nov 10, 2023
1 parent ae50f94 commit 6516e08
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions resource-agents.spec.in
Expand Up @@ -100,14 +100,14 @@ Requires: /usr/sbin/fuser
%endif

# Filesystem / fs.sh / netfs.sh
%if 0%{?suse_version}
%if 0%{?fedora} > 39 || 0%{?suse_version}
Requires: /usr/sbin/fsck
%else
Requires: /sbin/fsck
%endif
Requires: /usr/sbin/fsck.ext2 /usr/sbin/fsck.ext3 /usr/sbin/fsck.ext4
Requires: /usr/sbin/fsck.xfs
%if 0%{?suse_version}
%if 0%{?fedora} > 39 || 0%{?suse_version}
Requires: /usr/sbin/mount.nfs /usr/sbin/mount.nfs4
%else
Requires: /sbin/mount.nfs /sbin/mount.nfs4
Expand All @@ -127,7 +127,7 @@ Requires: /sbin/ip
Requires: /usr/sbin/lvm

# nfsserver / netfs.sh
%if 0%{?suse_version}
%if 0%{?fedora} > 39 || 0%{?suse_version}
Requires: /usr/sbin/rpc.statd
%else
Requires: /sbin/rpc.statd
Expand All @@ -141,9 +141,14 @@ Requires: /usr/sbin/ethtool
Requires: /sbin/rdisc /usr/sbin/arping /bin/ping /bin/ping6

# nfsexport.sh
%if 0%{?fedora} > 39
Requires: /usr/sbin/findfs
Requires: /usr/sbin/quotaon /usr/sbin/quotacheck
%else
Requires: /sbin/findfs
Requires: /sbin/quotaon /sbin/quotacheck
%endif
%endif

%description
A set of scripts to interface with several services to operate in a
Expand Down

0 comments on commit 6516e08

Please sign in to comment.