9abf8c
From e03445a5e40bb8d6de3d401495e8645a6c1db04c Mon Sep 17 00:00:00 2001
9abf8c
From: Lukas Nykryn <lnykryn@redhat.com>
9abf8c
Date: Thu, 7 Jan 2021 11:57:56 +0100
9abf8c
Subject: [PATCH] 00systemd: when putting systemd-vconsole-setup.service as a
9abf8c
 dependency ignore missing services
9abf8c
9abf8c
rhel-only
9abf8c
Resolves: #1906301
9abf8c
---
9abf8c
 modules.d/00systemd/module-setup.sh | 2 +-
9abf8c
 1 file changed, 1 insertion(+), 1 deletion(-)
9abf8c
9abf8c
diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh
9abf8c
index 4ab2a896..1f0b5dad 100755
9abf8c
--- a/modules.d/00systemd/module-setup.sh
9abf8c
+++ b/modules.d/00systemd/module-setup.sh
9abf8c
@@ -225,7 +225,7 @@ install() {
9abf8c
         systemd-ask-password-console.service \
9abf8c
         systemd-ask-password-plymouth.service \
9abf8c
         ; do
9abf8c
-        systemctl -q --root "$initdir" add-wants "$i" systemd-vconsole-setup.service
9abf8c
+        systemctl -q --root "$initdir" add-wants "$i" systemd-vconsole-setup.service 2>/dev/null
9abf8c
     done
9abf8c
 
9abf8c
     mkdir -p "$initdir/etc/systemd"
9abf8c