]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-ask-password): resolve regression
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 2 May 2024 23:29:25 +0000 (19:29 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Thu, 2 May 2024 23:46:54 +0000 (19:46 -0400)
Follow-up to 6c5520dff67a63df4ee735ab4f618d3faaf869d9

modules.d/01systemd-ask-password/module-setup.sh

index 6e7807552b526e1d49ed781163e78827059ac896..7059c5673ccab7a178be1129475213e71da9c4ad 100755 (executable)
@@ -35,6 +35,10 @@ install() {
         systemd-ask-password \
         systemd-tty-ask-password-agent
 
+    if [ -e "$systemdsystemunitdir"/systemd-vconsole-setup.service ]; then
+        $SYSTEMCTL -q --root "$initdir" add-wants systemd-ask-password-console.service systemd-vconsole-setup.service
+    fi
+
     # Enable the systemd type service unit for systemd-ask-password.
     $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-console.service
 
@@ -44,6 +48,10 @@ install() {
             "$systemdsystemunitdir"/systemd-ask-password-plymouth.path \
             "$systemdsystemunitdir"/systemd-ask-password-plymouth.service
 
+        if [ -e "$systemdsystemunitdir"/systemd-vconsole-setup.service ]; then
+            $SYSTEMCTL -q --root "$initdir" add-wants systemd-ask-password-plymouth.service systemd-vconsole-setup.service
+        fi
+
         $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-plymouth.service
     fi