]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: cleanup sysctl_apply check 60611/head
authorMatan Breizman <mbreizma@redhat.com>
Tue, 25 Mar 2025 16:01:07 +0000 (16:01 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 25 Mar 2025 16:07:32 +0000 (16:07 +0000)
sysctl_apply macro is supported on systemd since v215 [1].
This macro should be supported from Centos 7.2 and above, since we use
C9 to build (and 8 is EOL) - we can cleanup this check.

[1] https://github.com/systemd/systemd/commit/b532bdeae9b13fe93a54850f5e7f99c753bda6fa

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
ceph.spec.in

index 8c022125ebabccad9f27e7e2a850c0e98ae01976..12dbad48d6d6bc60809d892455a41356fc2dc886 100644 (file)
@@ -2340,11 +2340,7 @@ fi
 if [ $1 -eq 1 ] ; then
 /usr/bin/systemctl start ceph-osd.target >/dev/null 2>&1 || :
 fi
-%if 0%{?sysctl_apply}
-    %sysctl_apply 90-ceph-osd.conf
-%else
-    /usr/lib/systemd/systemd-sysctl %{_sysctldir}/90-ceph-osd.conf > /dev/null 2>&1 || :
-%endif
+%sysctl_apply 90-ceph-osd.conf
 
 %preun osd
 %if 0%{?suse_version}