Skip to content

Commit

Permalink
fix(fcoe-uefi): shellcheck for modules.d/95fcoe-uefi
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldh committed Mar 29, 2021
1 parent 3a04fdf commit eb0d3fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Empty file added modules.d/95fcoe-uefi/.shchkdir
Empty file.
2 changes: 1 addition & 1 deletion modules.d/95fcoe-uefi/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]] && {
Expand Down
4 changes: 2 additions & 2 deletions modules.d/95fcoe-uefi/parse-uefifcoe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit eb0d3fb

Please sign in to comment.