]> git.pld-linux.org Git - packages/dracut.git/blob - non_existent_systemd_units.patch
1428505d112d21a400c93f30dd95bf5aef3f77bc
[packages/dracut.git] / non_existent_systemd_units.patch
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  
This page took 0.053324 seconds and 2 git commands to generate.