From 2a13418ad62fe7818efe684415d63dbd240aeff3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 25 Feb 2023 18:10:21 +0100 Subject: Refreshing mdmonitor-service-simplify.patch. Signed-off-by: Daniel Baumann --- .../debian/0002-mdmonitor-service-simplify.patch | 17 +++++++++++++++++ debian/patches/mdmonitor-service-simplify.diff | 20 -------------------- debian/patches/series | 2 +- 3 files changed, 18 insertions(+), 21 deletions(-) create mode 100644 debian/patches/debian/0002-mdmonitor-service-simplify.patch delete mode 100644 debian/patches/mdmonitor-service-simplify.diff diff --git a/debian/patches/debian/0002-mdmonitor-service-simplify.patch b/debian/patches/debian/0002-mdmonitor-service-simplify.patch new file mode 100644 index 0000000..a8163d9 --- /dev/null +++ b/debian/patches/debian/0002-mdmonitor-service-simplify.patch @@ -0,0 +1,17 @@ +Author: Michael Tokarev +Description: Simplify mdmonitor.service (Closes: #764647). + There isn't much for customization for mdadm --monitor. + it'll just do what it's supposed to do, so just run it. + +diff -Naurp mdadm.orig/systemd/mdmonitor.service mdadm/systemd/mdmonitor.service +--- mdadm.orig/systemd/mdmonitor.service ++++ mdadm/systemd/mdmonitor.service +@@ -11,7 +11,4 @@ DefaultDependencies=no + Documentation=man:mdadm(8) + + [Service] +-Environment= MDADM_MONITOR_ARGS=--scan +-EnvironmentFile=-/run/sysconfig/mdadm +-ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh +-ExecStart=BINDIR/mdadm --monitor $MDADM_MONITOR_ARGS ++ExecStart=BINDIR/mdadm --monitor --scan diff --git a/debian/patches/mdmonitor-service-simplify.diff b/debian/patches/mdmonitor-service-simplify.diff deleted file mode 100644 index 70ddea2..0000000 --- a/debian/patches/mdmonitor-service-simplify.diff +++ /dev/null @@ -1,20 +0,0 @@ -Subject: simplify mdmonitor.service -From: Michael Tokarev -Date: Fri, 14 Nov 2014 19:18:05 +0300 -Bug-Debian: http://bugs.debian.org/764647 -Forwarded: no - -There isn't much for customization for mdadm --monitor. -it'll just do what it's supposed to do, so just run it. - ---- a/systemd/mdmonitor.service -+++ b/systemd/mdmonitor.service -@@ -11,7 +11,4 @@ DefaultDependencies=no - Documentation=man:mdadm(8) - - [Service] --Environment= MDADM_MONITOR_ARGS=--scan --EnvironmentFile=-/run/sysconfig/mdadm --ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh --ExecStart=BINDIR/mdadm --monitor $MDADM_MONITOR_ARGS -+ExecStart=BINDIR/mdadm --monitor --scan diff --git a/debian/patches/series b/debian/patches/series index 634f37d..28e7c57 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,5 @@ debian/0001-fix-manpages.patch -mdmonitor-service-simplify.diff +debian/0002-mdmonitor-service-simplify.patch host-name-in-default-mailfrom.patch exit-gracefully-when-md-device-not-found.patch sha1-includes.diff -- cgit v1.2.3