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