|
Harald Hoyer |
308914 |
From 3a4a212649bd89f5a07ccf87a53b3103094748a3 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
308914 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
308914 |
Date: Mon, 20 Apr 2020 15:07:02 +0200
|
|
Harald Hoyer |
308914 |
Subject: [PATCH] systemd: skip dependency add for non-existent units
|
|
Harald Hoyer |
308914 |
|
|
Harald Hoyer |
308914 |
Fixes: https://github.com/dracutdevs/dracut/issues/795
|
|
Harald Hoyer |
308914 |
---
|
|
Harald Hoyer |
308914 |
modules.d/00systemd/module-setup.sh | 1 +
|
|
Harald Hoyer |
308914 |
1 file changed, 1 insertion(+)
|
|
Harald Hoyer |
308914 |
|
|
Harald Hoyer |
308914 |
diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh
|
|
Harald Hoyer |
308914 |
index 5ebdfc30..17be74fd 100755
|
|
Harald Hoyer |
308914 |
--- a/modules.d/00systemd/module-setup.sh
|
|
Harald Hoyer |
308914 |
+++ b/modules.d/00systemd/module-setup.sh
|
|
Harald Hoyer |
308914 |
@@ -241,6 +241,7 @@ install() {
|
|
Harald Hoyer |
308914 |
systemd-ask-password-console.service \
|
|
Harald Hoyer |
308914 |
systemd-ask-password-plymouth.service \
|
|
Harald Hoyer |
308914 |
; do
|
|
Harald Hoyer |
308914 |
+ [[ -f $systemdsystemunitdir/$i ]] || continue
|
|
Harald Hoyer |
308914 |
systemctl -q --root "$initdir" add-wants "$i" systemd-vconsole-setup.service
|
|
Harald Hoyer |
308914 |
done
|
|
Harald Hoyer |
308914 |
|
|
Harald Hoyer |
308914 |
|