fba44b112e
- Fixes for mdmon to ensure it run at the right time in the fight mount namespace. This fixes various problems with IMSM raid arrays in 15-SP4 (bsc#1205493, bsc#1205830) - mdmon: fix segfault 0052-mdmon-fix-segfault.patch - util: remove obsolete code from get_md_name 0053-util-remove-obsolete-code-from-get_md_name.patch - mdmon: don't test both 'all' and 'container_name'. 0054-mdmon-don-t-test-both-all-and-container_name.patch - mdmon: change systemd unit file to use --foreground 0055-mdmon-change-systemd-unit-file-to-use-foreground.patch - mdmon: Remove need for KillMode=none 0056-mdmon-Remove-need-for-KillMode-none.patch - mdmon: Improve switchroot interactions. 0057-mdmon-Improve-switchroot-interactions.patch - mdopen: always try create_named_array() 0058-mdopen-always-try-create_named_array.patch - Improvements for IMSM_NO_PLATFORM testing 0059-Improvements-for-IMSM_NO_PLATFORM-testing.patch OBS-URL: https://build.opensuse.org/request/show/1082557 OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=223
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 6660e33edde76329bd3b7f03383856c7efee2aa9 Mon Sep 17 00:00:00 2001
|
|
From: NeilBrown <neilb@suse.de>
|
|
Date: Mon, 13 Mar 2023 14:42:58 +1100
|
|
Subject: [PATCH] mdmon: change systemd unit file to use --foreground
|
|
|
|
There is no value in mdmon forking when it is running under systemd -
|
|
systemd can still track it anyway.
|
|
|
|
So add --foreground option, and remove "Type=forking".
|
|
|
|
Signed-off-by: NeilBrown <neilb@suse.de>
|
|
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
|
|
---
|
|
systemd/mdmon@.service | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service
|
|
index cb6482d..bba9b0e 100644
|
|
--- a/systemd/mdmon@.service
|
|
+++ b/systemd/mdmon@.service
|
|
@@ -20,8 +20,7 @@ Environment=IMSM_NO_PLATFORM=1
|
|
# 'takeover'. As the '--offroot --takeover' don't hurt when
|
|
# not necessary, are are useful with root-on-md in dracut,
|
|
# have them always present.
|
|
-ExecStart=BINDIR/mdmon --offroot --takeover %I
|
|
-Type=forking
|
|
+ExecStart=BINDIR/mdmon --foreground --offroot --takeover %I
|
|
# Don't set the PIDFile. It isn't necessary (systemd can work
|
|
# it out) and systemd will remove it when transitioning from
|
|
# initramfs to rootfs.
|
|
--
|
|
2.35.3
|
|
|