fix mdmonitor-oneshot.service start failed
(cherry picked from commit 3942ea6f2160fca6e0683146fed2390c45eabbf1)
This commit is contained in:
parent
7fc090e197
commit
70f0e6deaf
25
0009-fix-mdmonitor-oneshot.service-start-error.patch
Normal file
25
0009-fix-mdmonitor-oneshot.service-start-error.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 40d214fc77bd5264f9bbca9c1ff88a55e2f72b33 Mon Sep 17 00:00:00 2001
|
||||||
|
From: miaoguanqin <miaoguanqin@huawei.com>
|
||||||
|
Date: Fri, 9 Jun 2023 10:43:53 +0800
|
||||||
|
Subject: [PATCH] fix mdmonitor-oneshot.service start error
|
||||||
|
|
||||||
|
---
|
||||||
|
systemd/mdmonitor-oneshot.service | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/systemd/mdmonitor-oneshot.service b/systemd/mdmonitor-oneshot.service
|
||||||
|
index 373955a..5393b8f 100644
|
||||||
|
--- a/systemd/mdmonitor-oneshot.service
|
||||||
|
+++ b/systemd/mdmonitor-oneshot.service
|
||||||
|
@@ -9,7 +9,7 @@
|
||||||
|
Description=Reminder for degraded MD arrays
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
-Environment=MDADM_MONITOR_ARGS=--scan
|
||||||
|
+Environment=MDADM_MONITOR_ARGS="--scan --syslog"
|
||||||
|
EnvironmentFile=-/run/sysconfig/mdadm
|
||||||
|
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
|
||||||
|
ExecStart=BINDIR/mdadm --monitor --oneshot $MDADM_MONITOR_ARGS
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: mdadm
|
Name: mdadm
|
||||||
Version: 4.2
|
Version: 4.2
|
||||||
Release: 7
|
Release: 8
|
||||||
Summary: The software RAID arrays user manage tools
|
Summary: The software RAID arrays user manage tools
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
||||||
@ -18,6 +18,7 @@ Patch5: 0005-Fix-possible-NULL-ptr-dereferences-and-memory-leaks.patch
|
|||||||
Patch6: 0006-mdadm-Don-t-open-md-device-for-CREATE-and-ASSEMBLE.patch
|
Patch6: 0006-mdadm-Don-t-open-md-device-for-CREATE-and-ASSEMBLE.patch
|
||||||
Patch7: 0007-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch
|
Patch7: 0007-DDF-Fix-NULL-pointer-dereference-in-validate_geometr.patch
|
||||||
Patch8: 0008-fix-NULL-dereference-in-super_by_fd.patch
|
Patch8: 0008-fix-NULL-dereference-in-super_by_fd.patch
|
||||||
|
Patch9: 0009-fix-mdmonitor-oneshot.service-start-error.patch
|
||||||
|
|
||||||
BuildRequires: systemd gcc binutils libudev-devel
|
BuildRequires: systemd gcc binutils libudev-devel
|
||||||
Requires(post): systemd coreutils
|
Requires(post): systemd coreutils
|
||||||
@ -83,6 +84,9 @@ install -d -m 710 %{buildroot}/var/run/mdadm/
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 9 2023 miaoguanqin <miaoguanqin@huawei.com> - 4.2-8
|
||||||
|
* fix mdmonitor-oneshot.service
|
||||||
|
|
||||||
* Mon Apr 24 2023 tangyuchen <tangyuchen5@huawei.com> - 4.2-7
|
* Mon Apr 24 2023 tangyuchen <tangyuchen5@huawei.com> - 4.2-7
|
||||||
* fix crond cannot find command mdadm
|
* fix crond cannot find command mdadm
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user