]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(fcoe-uefi): shellcheck for modules.d/95fcoe-uefi
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:26 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 29 Mar 2021 12:23:02 +0000 (14:23 +0200)
modules.d/95fcoe-uefi/.shchkdir [new file with mode: 0644]
modules.d/95fcoe-uefi/module-setup.sh
modules.d/95fcoe-uefi/parse-uefifcoe.sh

diff --git a/modules.d/95fcoe-uefi/.shchkdir b/modules.d/95fcoe-uefi/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index 9e5719dfb19f17ac8bd76619e220578c47df3c19..d1804cc6f072c4792f84ee0c8986f1a92a383c04 100755 (executable)
@@ -3,7 +3,7 @@
 # called by dracut
 check() {
     is_fcoe() {
-        block_is_fcoe $1 || return 1
+        block_is_fcoe "$1" || return 1
     }
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
index 942d85dd2553d6c767d7c4c1403e5bb7153108ca..e120dec3286857baf4bda8eeaa288cf4701e83d8 100755 (executable)
@@ -8,7 +8,7 @@ print_fcoe_uefi_conf() {
     local mac dev vlan
     mac=$(get_fcoe_boot_mac "$1")
     [ -z "$mac" ] && return 1
-    dev=$(set_ifname fcoe $mac)
+    dev=$(set_ifname fcoe "$mac")
     vlan=$(get_fcoe_boot_vlan "$1")
     if [ "$vlan" -ne "0" ]; then
         case "$vlan" in
@@ -29,5 +29,5 @@ print_fcoe_uefi_conf() {
 
 for i in /sys/firmware/efi/efivars/FcoeBootDevice-*; do
     [ -e "$i" ] || continue
-    print_fcoe_uefi_conf $i > /etc/cmdline.d/40-fcoe-uefi.conf && break
+    print_fcoe_uefi_conf "$i" > /etc/cmdline.d/40-fcoe-uefi.conf && break
 done