]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(systemd-ask-password): shellcheck for modules.d/01systemd-ask-password
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:06 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 26 Mar 2021 11:21:09 +0000 (12:21 +0100)
modules.d/01systemd-ask-password/.shchkdir [new file with mode: 0644]
modules.d/01systemd-ask-password/module-setup.sh

diff --git a/modules.d/01systemd-ask-password/.shchkdir b/modules.d/01systemd-ask-password/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index 2331480a77a844c85fa96e4b451696b0bb3c7daf..dc89b221a5bc3c3c140455c0341dd52cc8cac41d 100755 (executable)
@@ -28,11 +28,12 @@ depends() {
 install() {
 
     inst_multiple -o \
-        $systemdsystemunitdir/systemd-ask-password-console.path \
-        $systemdsystemunitdir/systemd-ask-password-console.service \
-        $systemdsystemunitdir/multi-user.target.wants/systemd-ask-password-wall.path \
-        $systemdsystemunitdir/sysinit.target.wants/systemd-ask-password-console.path \
-        systemd-ask-password systemd-tty-ask-password-agent
+        "$systemdsystemunitdir"/systemd-ask-password-console.path \
+        "$systemdsystemunitdir"/systemd-ask-password-console.service \
+        "$systemdsystemunitdir"/multi-user.target.wants/systemd-ask-password-wall.path \
+        "$systemdsystemunitdir"/sysinit.target.wants/systemd-ask-password-console.path \
+        systemd-ask-password \
+        systemd-tty-ask-password-agent
 
     # Enable the systemd type service unit for systemd-ask-password.
     $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-console.service
@@ -40,8 +41,8 @@ install() {
     # Install systemd-ask-password plymouth units if plymouth is enabled.
     if dracut_module_included "plymouth"; then
         inst_multiple -o \
-            $systemdsystemunitdir/systemd-ask-password-plymouth.path \
-            $systemdsystemunitdir/systemd-ask-password-plymouth.service
+            "$systemdsystemunitdir"/systemd-ask-password-plymouth.path \
+            "$systemdsystemunitdir"/systemd-ask-password-plymouth.service
 
         $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-plymouth.service
     fi
@@ -52,7 +53,7 @@ install() {
     #    inst_multiple -o \
     #        $systemdsystemunitdir/systemd-ask-password-wall.path \
     #        $systemdsystemunitdir/systemd-ask-password-wall.service \
-    #        $systemdsystemunitdir/multi-user.target.wants/systemd-ask-password-wall.path
+    #        $systemdsystemunitdir/multi-user.target.wants/systemd-ask-password-wall.path \
     #
     #    $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-wall.service
     #fi