]>
Commit | Line | Data |
---|---|---|
6b59a75b JP |
1 | From 3a4a212649bd89f5a07ccf87a53b3103094748a3 Mon Sep 17 00:00:00 2001 |
2 | From: Harald Hoyer <harald@redhat.com> | |
3 | Date: Mon, 20 Apr 2020 15:07:02 +0200 | |
4 | Subject: [PATCH] systemd: skip dependency add for non-existent units | |
5 | ||
6 | Fixes: https://github.com/dracutdevs/dracut/issues/795 | |
7 | --- | |
8 | modules.d/00systemd/module-setup.sh | 1 + | |
9 | 1 file changed, 1 insertion(+) | |
10 | ||
11 | diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh | |
12 | index 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 |