]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
chore(shfmt): update to pass with shfmt v3.5.1
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sun, 20 Nov 2022 23:58:31 +0000 (23:58 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 13 Feb 2023 12:08:36 +0000 (12:08 +0000)
dracut-init.sh
modules.d/00systemd/module-setup.sh
modules.d/90kernel-modules-extra/module-setup.sh
modules.d/90livenet/parse-livenet.sh
modules.d/95zfcp_rules/parse-zfcp.sh

index aef2f07a4c5dfbd2bb7d4a5203fc4d456c4a9a0d..3d9afad7d1d103c1fd248f8099c04d8d37656013 100755 (executable)
@@ -1070,8 +1070,7 @@ for_each_module_dir() {
     _func=$1
     for _moddir in "$dracutbasedir/modules.d"/[0-9][0-9]*; do
         [[ -d $_moddir ]] || continue
-        [[ -e $_moddir/install || -e $_moddir/installkernel || -e \
-        $_moddir/module-setup.sh ]] || continue
+        [[ -e $_moddir/install || -e $_moddir/installkernel || -e $_moddir/module-setup.sh ]] || continue
         _mod=${_moddir##*/}
         _mod=${_mod#[0-9][0-9]}
         $_func "$_mod" 1 "$_moddir"
index 2648ec4f0ad82891616b79c74d5fcd15e77512b4..9ef2b7c2a6a79ebc8e90c8ea55b20132fe7c36ba 100755 (executable)
@@ -47,7 +47,6 @@ install() {
         "$systemdutildir"/system-generators/systemd-debug-generator \
         "$systemdutildir"/system-generators/systemd-fstab-generator \
         "$systemdutildir"/system-generators/systemd-gpt-auto-generator \
-        \
         "$systemdsystemunitdir"/debug-shell.service \
         "$systemdsystemunitdir"/cryptsetup.target \
         "$systemdsystemunitdir"/cryptsetup-pre.target \
@@ -79,9 +78,7 @@ install() {
         "$systemdsystemunitdir"/timers.target \
         "$systemdsystemunitdir"/paths.target \
         "$systemdsystemunitdir"/umount.target \
-        \
         "$systemdsystemunitdir"/sys-kernel-config.mount \
-        \
         "$systemdsystemunitdir"/modprobe@.service \
         "$systemdsystemunitdir"/kmod-static-nodes.service \
         "$systemdsystemunitdir"/systemd-tmpfiles-setup.service \
@@ -109,7 +106,6 @@ install() {
         "$systemdsystemunitdir"/systemd-random-seed-load.service \
         "$systemdsystemunitdir"/systemd-random-seed.service \
         "$systemdsystemunitdir"/systemd-sysctl.service \
-        \
         "$systemdsystemunitdir"/sysinit.target.wants/systemd-modules-load.service \
         "$systemdsystemunitdir"/sysinit.target.wants/systemd-ask-password-console.path \
         "$systemdsystemunitdir"/sysinit.target.wants/systemd-journald.service \
@@ -124,18 +120,14 @@ install() {
         "$systemdsystemunitdir"/sysinit.target.wants/systemd-tmpfiles-setup.service \
         "$systemdsystemunitdir"/sysinit.target.wants/systemd-tmpfiles-setup-dev.service \
         "$systemdsystemunitdir"/sysinit.target.wants/systemd-sysctl.service \
-        \
         "$systemdsystemunitdir"/ctrl-alt-del.target \
         "$systemdsystemunitdir"/reboot.target \
         "$systemdsystemunitdir"/systemd-reboot.service \
         "$systemdsystemunitdir"/syslog.socket \
-        \
         "$systemdsystemunitdir"/slices.target \
         "$systemdsystemunitdir"/system.slice \
         "$systemdsystemunitdir"/-.slice \
-        \
         "$tmpfilesdir"/systemd.conf \
-        \
         journalctl systemctl \
         echo swapoff \
         kmod insmod rmmod modprobe modinfo depmod lsmod \
index 6d0d052101eb3f6a58f0526e2a37aab2154e1e0a..85e2e0ad491aa31e4d22fc6b893ed31345c30b18 100755 (executable)
@@ -120,8 +120,8 @@ installkernel() {
                         continue
                     fi
 
-                    if [[ '*' == "$kverpat" || \
-                        $kernel =~ $kverpat ]]; then
+                    if [[ '*' == "$kverpat" ]] \
+                        || [[ $kernel =~ $kverpat ]]; then
                         external_dirs+=("$path")
 
                         prdebug "$cfg: added external" \
index e59fa51a1ab0560d1faa81e2c1b77668c2d52f82..a1d14a8fce9f4a1f51d8994dd35220279aa313db 100755 (executable)
@@ -13,8 +13,7 @@ if [ -n "$updates" ]; then
         echo > /tmp/net.ifaces
     fi
     echo "$updates" > /tmp/liveupdates.info
-    echo '[ -e /tmp/liveupdates.done ]' > \
-        "$hookdir"/initqueue/finished/liveupdates.sh
+    echo '[ -e /tmp/liveupdates.done ]' > "$hookdir"/initqueue/finished/liveupdates.sh
 fi
 
 str_starts "$root" "live:" && liveurl="$root"
index 669eaf291a120414c070eab9f2c9cba29d6f58b8..5e7d90951ee3976c9e0fc2bf0e7be263a58a2e95 100755 (executable)
@@ -31,8 +31,8 @@ EOF
     fi
 }
 
-if [[ -f /sys/firmware/ipl/ipl_type && \
-    $(< /sys/firmware/ipl/ipl_type) == "fcp" ]]; then
+if [[ -f /sys/firmware/ipl/ipl_type ]] \
+    && [[ $(< /sys/firmware/ipl/ipl_type) == "fcp" ]]; then
     (
         read -r _wwpn < /sys/firmware/ipl/wwpn
         read -r _lun < /sys/firmware/ipl/lun