Don't enable raid-check.service
Now raid-check.service is enable and it can do raid check after every boot. We don't want this. So disable it. And for enable raid-check.timer, the right way is to add enalbe raid-check.timer in /usr/lib/systemd/system-preset/90-default.preset. I already file a new bug for it https://bugzilla.redhat.com/show_bug.cgi?id=1817491 Resolves: bz#1840519 Signed-off-by: Xiao Ni <xni@redhat.com>
This commit is contained in:
parent
b7388c1e29
commit
eb623833d4
14
mdadm.spec
14
mdadm.spec
@ -1,7 +1,7 @@
|
||||
Name: mdadm
|
||||
Version: 4.1
|
||||
#define subversion rc2
|
||||
Release: 4%{?subversion:.%{subversion}}%{?dist}
|
||||
Release: 5%{?subversion:.%{subversion}}%{?dist}
|
||||
Summary: The mdadm program controls Linux md devices (software RAID arrays)
|
||||
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
||||
License: GPLv2+
|
||||
@ -66,15 +66,9 @@ mkdir -p %{buildroot}/etc/libreport/events.d
|
||||
install -m644 %{SOURCE6} %{buildroot}/etc/libreport/events.d
|
||||
|
||||
%post
|
||||
%systemd_post mdmonitor.service raid-check.{service,timer}
|
||||
%systemd_post mdmonitor.service raid-check.timer
|
||||
%{_bindir}/systemctl disable mdmonitor-takeover.service >/dev/null 2>&1 || :
|
||||
|
||||
# If there is any cron daemon configured, enable the systemd timer to avoid
|
||||
# breaking the configuration silently when upgrading from 4.1-rc2.0.2 or
|
||||
# earlier versions
|
||||
%triggerin -- mdadm < 4.1-rc2.0.2
|
||||
[ -e %{_sysconfdir}/crontab -o -e %{_sysconfdir}/anacrontab -o -e %{_sysconfdir}/fcrontab ] && %{_bindir}/systemctl enable raid-check.timer &>/dev/null || :
|
||||
|
||||
%preun
|
||||
%systemd_preun mdmonitor.service raid-check.timer
|
||||
|
||||
@ -95,6 +89,10 @@ install -m644 %{SOURCE6} %{buildroot}/etc/libreport/events.d
|
||||
/etc/libreport/events.d/*
|
||||
|
||||
%changelog
|
||||
* Wed May 27 2020 Xiao Ni <xni@redhat.com> - 4.1-5
|
||||
- Don't enable raid-check.service to avoid raid check after every boot
|
||||
- Resolves bz1838409
|
||||
|
||||
* Sun Mar 08 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 4.1-4
|
||||
- Fix install location of udev rules (rhbz 1809117)
|
||||
|
||||
|
@ -4,6 +4,3 @@ Description=RAID setup health check
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/raid-check
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user