|
|
17094c |
From 86d48f5c45d2d2c19cb575fa377763c069e57b8a Mon Sep 17 00:00:00 2001
|
|
|
17094c |
From: Ondrej Dubaj <odubaj@redhat.com>
|
|
|
17094c |
Date: Thu, 29 Aug 2019 14:31:06 +0200
|
|
|
17094c |
Subject: [PATCH] added debug-shell to initrd in systemd version >= 240
|
|
|
17094c |
|
|
|
17094c |
---
|
|
|
17094c |
dracut.spec | 2 +-
|
|
|
17094c |
modules.d/00systemd/module-setup.sh | 4 ++++
|
|
|
17094c |
2 files changed, 5 insertions(+), 1 deletion(-)
|
|
|
17094c |
|
|
|
17094c |
diff --git a/dracut.spec b/dracut.spec
|
|
|
17094c |
index 92c7f7bf..0f7eb4bf 100644
|
|
|
17094c |
--- a/dracut.spec
|
|
|
17094c |
+++ b/dracut.spec
|
|
|
17094c |
@@ -88,7 +88,7 @@ Recommends: hardlink
|
|
|
17094c |
Recommends: pigz
|
|
|
17094c |
Recommends: kpartx
|
|
|
17094c |
Requires: util-linux >= 2.21
|
|
|
17094c |
-Requires: systemd >= 219
|
|
|
17094c |
+Requires: systemd >= 239-23
|
|
|
17094c |
Requires: systemd-udev >= 219
|
|
|
17094c |
Requires: procps-ng
|
|
|
17094c |
%else
|
|
|
17094c |
diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh
|
|
|
17094c |
index ed177826..e4a3f323 100755
|
|
|
17094c |
--- a/modules.d/00systemd/module-setup.sh
|
|
|
17094c |
+++ b/modules.d/00systemd/module-setup.sh
|
|
|
17094c |
@@ -31,6 +31,10 @@ install() {
|
|
|
17094c |
exit 1
|
|
|
17094c |
fi
|
|
|
17094c |
|
|
|
17094c |
+ inst_multiple -o \
|
|
|
17094c |
+ $systemdutildir/system-generators/systemd-debug-generator \
|
|
|
17094c |
+ $systemdsystemunitdir/debug-shell.service
|
|
|
17094c |
+
|
|
|
17094c |
inst_multiple -o \
|
|
|
17094c |
$systemdutildir/systemd \
|
|
|
17094c |
$systemdutildir/systemd-coredump \
|
|
|
17094c |
|