]> git.pld-linux.org Git - packages/dracut.git/blame - non_existent_systemd_units.patch
stop complaining about missing systemd-ask-password-plymouth.service; rel 3
[packages/dracut.git] / non_existent_systemd_units.patch
CommitLineData
6b59a75b
JP
1From 3a4a212649bd89f5a07ccf87a53b3103094748a3 Mon Sep 17 00:00:00 2001
2From: Harald Hoyer <harald@redhat.com>
3Date: Mon, 20 Apr 2020 15:07:02 +0200
4Subject: [PATCH] systemd: skip dependency add for non-existent units
5
6Fixes: https://github.com/dracutdevs/dracut/issues/795
7---
8 modules.d/00systemd/module-setup.sh | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh
12index 5ebdfc301..17be74fd9 100755
13--- a/modules.d/00systemd/module-setup.sh
14+++ b/modules.d/00systemd/module-setup.sh
15@@ -241,6 +241,7 @@ install() {
16 systemd-ask-password-console.service \
17 systemd-ask-password-plymouth.service \
18 ; do
19+ [[ -f $systemdsystemunitdir/$i ]] || continue
20 systemctl -q --root "$initdir" add-wants "$i" systemd-vconsole-setup.service
21 done
22
This page took 0.035648 seconds and 4 git commands to generate.