dracut-108-3.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/bin/dracut:1398:42: warning[SC2154]: acpi_override is referenced but not assigned.
# 1396|   mkdir -p "$initdir"
# 1397|   
# 1398|-> if [[ $early_microcode == yes ]] || { [[ $acpi_override == yes ]] && [[ -d $acpi_table_dir ]]; }; then
# 1399|       readonly early_cpio_dir="${DRACUT_TMPDIR}/earlycpio"
# 1400|       mkdir "$early_cpio_dir"

Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/usr/bin/dracut:1398:76: warning[SC2154]: acpi_table_dir is referenced but not assigned.
# 1396|   mkdir -p "$initdir"
# 1397|   
# 1398|-> if [[ $early_microcode == yes ]] || { [[ $acpi_override == yes ]] && [[ -d $acpi_table_dir ]]; }; then
# 1399|       readonly early_cpio_dir="${DRACUT_TMPDIR}/earlycpio"
# 1400|       mkdir "$early_cpio_dir"

Error: SHELLCHECK_WARNING (CWE-457): [#def3]
/usr/bin/dracut:1452:39: warning[SC2154]: srcmods is referenced but not assigned.
# 1450|   fi
# 1451|   
# 1452|-> if [[ $no_kernel != yes ]] && ! [[ -d $srcmods ]]; then
# 1453|       dfatal "Cannot find module directory $srcmods"
# 1454|       dfatal "and --no-kernel was not specified"

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/bin/dracut:1553:41: warning[SC2154]: dbus is referenced but not assigned.
# 1551|   set_global_var "dbus" "dbus" "/usr/share/dbus-1"
# 1552|   set_global_var "dbus" "dbusconfdir" "/etc/dbus-1"
# 1553|-> set_global_var "dbus" "dbusinterfaces" "${dbus}/interfaces"
# 1554|   set_global_var "dbus" "dbusinterfacesconfdir" "${dbusconfdir}/interfaces"
# 1555|   set_global_var "dbus" "dbusservices" "${dbus}/services"

Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/bin/dracut:1554:48: warning[SC2154]: dbusconfdir is referenced but not assigned.
# 1552|   set_global_var "dbus" "dbusconfdir" "/etc/dbus-1"
# 1553|   set_global_var "dbus" "dbusinterfaces" "${dbus}/interfaces"
# 1554|-> set_global_var "dbus" "dbusinterfacesconfdir" "${dbusconfdir}/interfaces"
# 1555|   set_global_var "dbus" "dbusservices" "${dbus}/services"
# 1556|   set_global_var "dbus" "dbusservicesconfdir" "${dbusconfdir}/services"

Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/bin/dracut:1567:39: warning[SC2154]: udevdir is referenced but not assigned.
# 1565|   set_global_var "udev" "udevdir" "/lib/udev:/lib/udev/ata_id" "/usr/lib/udev:/usr/lib/udev/ata_id"
# 1566|   set_global_var "udev" "udevconfdir" "/etc/udev"
# 1567|-> set_global_var "udev" "udevrulesdir" "${udevdir}/rules.d"
# 1568|   set_global_var "udev" "udevrulesconfdir" "${udevconfdir}/rules.d"
# 1569|   

Error: SHELLCHECK_WARNING (CWE-457): [#def7]
/usr/bin/dracut:1568:43: warning[SC2154]: udevconfdir is referenced but not assigned.
# 1566|   set_global_var "udev" "udevconfdir" "/etc/udev"
# 1567|   set_global_var "udev" "udevrulesdir" "${udevdir}/rules.d"
# 1568|-> set_global_var "udev" "udevrulesconfdir" "${udevconfdir}/rules.d"
# 1569|   
# 1570|   # systemd global variables

Error: SHELLCHECK_WARNING (CWE-457): [#def8]
/usr/bin/dracut:1582:51: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
# 1580|   set_global_var "systemd" "systemdcatalog" "${systemdutildir}/catalog"
# 1581|   set_global_var "systemd" "systemdnetwork" "${systemdutildir}/network"
# 1582|-> set_global_var "systemd" "systemdnetworkconfdir" "${systemdutilconfdir}/network"
# 1583|   set_global_var "systemd" "systemdntpunits" "${systemdutildir}/ntp-units.d"
# 1584|   set_global_var "systemd" "systemdntpunitsconfdir" "${systemdutilconfdir}/ntp-units.d"

Error: SHELLCHECK_WARNING (CWE-457): [#def9]
/usr/bin/dracut:1610:28: warning[SC2154]: systemdversion is referenced but not assigned.
# 1608|   USE_SYSTEMD_DLOPEN_DEPS=
# 1609|   # shellcheck disable=SC2034 # USE_SYSTEMD_DLOPEN_DEPS is used in modules
# 1610|-> [[ $DRACUT_INSTALL_JSON && ${systemdversion%%.*} -ge 256 ]] && USE_SYSTEMD_DLOPEN_DEPS=1
# 1611|   
# 1612|   if [[ $no_kernel != yes ]] && [[ -d $srcmods ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def10]
/usr/bin/dracut:1680:44: warning[SC2154]: systemdprefix is referenced but not assigned.
# 1678|   
# 1679|           if ! [[ -s $uefi_stub ]]; then
# 1680|->             uefi_stub="${dracutsysrootdir-}${systemdprefix}/lib/systemd/boot/efi/linux${EFI_MACHINE_TYPE_NAME}.efi.stub"
# 1681|           fi
# 1682|   

Error: SHELLCHECK_WARNING (CWE-277): [#def11]
/usr/bin/dracut:2036:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
# 2034|   if [[ $kernel_only != yes ]]; then
# 2035|       mkdir -p "${initdir}/etc/cmdline.d"
# 2036|->     mkdir -m 0755 -p "${initdir}"/var/lib/dracut/hooks
# 2037|   
# 2038|       # symlink to old hooks location for compatibility

Error: SHELLCHECK_WARNING (CWE-457): [#def12]
/usr/bin/dracut:2041:15: warning[SC2154]: hookdirs is referenced but not assigned.
# 2039|       ln_r /var/lib/dracut/hooks /lib/dracut/hooks
# 2040|   
# 2041|->     for _d in $hookdirs; do
# 2042|           # shellcheck disable=SC2174
# 2043|           mkdir -m 0755 -p "${initdir}/lib/dracut/hooks/$_d"

Error: SHELLCHECK_WARNING (CWE-457): [#def13]
/usr/bin/dracut:2196:55: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
# 2194|               {
# 2195|                   printf "%s\n" "systemdutildir=\"$systemdutildir\""
# 2196|->                 printf "%s\n" "systemdsystemunitdir=\"$systemdsystemunitdir\""
# 2197|                   printf "%s\n" "systemdsystemconfdir=\"$systemdsystemconfdir\""
# 2198|                   printf "%s\n" "systemdnetworkconfdir=\"$systemdnetworkconfdir\""

Error: SHELLCHECK_WARNING (CWE-457): [#def14]
/usr/bin/dracut:2197:55: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
# 2195|                   printf "%s\n" "systemdutildir=\"$systemdutildir\""
# 2196|                   printf "%s\n" "systemdsystemunitdir=\"$systemdsystemunitdir\""
# 2197|->                 printf "%s\n" "systemdsystemconfdir=\"$systemdsystemconfdir\""
# 2198|                   printf "%s\n" "systemdnetworkconfdir=\"$systemdnetworkconfdir\""
# 2199|               } > "${initdir}"/etc/conf.d/systemd.conf

Error: SHELLCHECK_WARNING (CWE-457): [#def15]
/usr/bin/dracut:2198:56: warning[SC2154]: systemdnetworkconfdir is referenced but not assigned.
# 2196|                   printf "%s\n" "systemdsystemunitdir=\"$systemdsystemunitdir\""
# 2197|                   printf "%s\n" "systemdsystemconfdir=\"$systemdsystemconfdir\""
# 2198|->                 printf "%s\n" "systemdnetworkconfdir=\"$systemdnetworkconfdir\""
# 2199|               } > "${initdir}"/etc/conf.d/systemd.conf
# 2200|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def16]
/usr/bin/dracut:2617:6: warning[SC2154]: maxloglvl is referenced but not assigned.
# 2615|   fi
# 2616|   
# 2617|-> if ((maxloglvl >= 5)) && ((verbosity_mod_l >= 0)); then
# 2618|       if [[ $allowlocal ]]; then
# 2619|           "$dracutbasedir/lsinitrd.sh" "${DRACUT_TMPDIR}/initramfs.img" | ddebug

Error: SHELLCHECK_WARNING (CWE-457): [#def17]
/usr/lib/dracut/dracut-functions.sh:63:18: warning[SC2154]: libdirs is referenced but not assigned.
#   61|   
#   62|       if [[ $1 == *.so* ]]; then
#   63|->         for l in $libdirs; do
#   64|               _path="${l}${_delim}${1}"
#   65|               if is_elf "${dracutsysrootdir-}${_path}"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def18]
/usr/lib/dracut/dracut-functions.sh:373:11: warning[SC2154]: use_fstab is referenced but not assigned.
#  371|       _find_mpt="$1"
#  372|   
#  373|->     if [[ $use_fstab != yes ]]; then
#  374|           [[ -d $_find_mpt/. ]]
#  375|           findmnt -e -v -n -o 'MAJ:MIN,SOURCE' --target "$_find_mpt" | {

Error: SHELLCHECK_WARNING (CWE-457): [#def19]
/usr/lib/dracut/dracut-functions.sh:742:8: warning[SC2154]: no_kernel is referenced but not assigned.
#  740|       # If $no_kernel is set, $kernel will point to the running kernel.
#  741|       # Avoid reading the current kernel config by mistake.
#  742|->     [[ $no_kernel == yes ]] && return 0
#  743|   
#  744|       local _config_paths=(

Error: SHELLCHECK_WARNING (CWE-457): [#def20]
/usr/lib/dracut/dracut-functions.sh:745:23: warning[SC2154]: kernel is referenced but not assigned.
#  743|   
#  744|       local _config_paths=(
#  745|->         "/lib/modules/$kernel/config"
#  746|           "/lib/modules/$kernel/build/.config"
#  747|           "/lib/modules/$kernel/source/.config"

Error: SHELLCHECK_WARNING (CWE-457): [#def21]
/usr/lib/dracut/dracut-functions.sh:769:18: warning[SC2154]: drivers_dir is referenced but not assigned.
#  767|   # 1 if the kernel module is not enabled
#  768|   check_kernel_module() {
#  769|->     modprobe -d "$drivers_dir/../../../" -S "$kernel" --dry-run "$1" &> /dev/null || return 1
#  770|   }
#  771|   

Error: SHELLCHECK_WARNING (CWE-457): [#def22]
/usr/lib/dracut/dracut-init.sh:137:25: warning[SC2154]: moddir is referenced but not assigned (did you mean '_moddir'?).
#  135|   # issues a standardized warning message
#  136|   require_binaries() {
#  137|->     local _module_name="${moddir##*/}"
#  138|       local _ret=0
#  139|   

Error: SHELLCHECK_WARNING (CWE-457): [#def23]
/usr/lib/dracut/dracut-init.sh:186:8: warning[SC2154]: no_kernel is referenced but not assigned.
#  184|   
#  185|       # Ignore kernel module requirement for no-kernel build
#  186|->     [[ $no_kernel == yes ]] && return 0
#  187|   
#  188|       if [[ $1 == "-m" ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def24]
/usr/lib/dracut/dracut-init.sh:207:24: warning[SC2154]: modules_loaded is referenced but not assigned.
#  205|   
#  206|   dracut_module_included() {
#  207|->     [[ " $mods_to_load $modules_loaded " == *\ $*\ * ]]
#  208|   }
#  209|   

Error: SHELLCHECK_WARNING (CWE-457): [#def25]
/usr/lib/dracut/dracut-init.sh:383:11: warning[SC2154]: hostonly_mode is referenced but not assigned.
#  381|   # given modules.
#  382|   optional_hostonly() {
#  383|->     if [[ $hostonly_mode == "strict" ]]; then
#  384|           printf -- "%s" "${hostonly-}"
#  385|       else

Error: SHELLCHECK_WARNING (CWE-457): [#def26]
/usr/lib/dracut/dracut-init.sh:434:39: warning[SC2154]: udevdir is referenced but not assigned.
#  432|       for _prog in $(sed -nr 's/.*PROGRAM==?"([^ "]+).*/\1/p' "$1"); do
#  433|           _bin=""
#  434|->         if [[ -x "${dracutsysrootdir-}${udevdir}/$_prog" ]]; then
#  435|               _bin="${udevdir}"/$_prog
#  436|           elif [[ ${_prog/\$env\{/} == "$_prog" ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def27]
/usr/lib/dracut/dracut-init.sh:641:23: warning[SC2154]: sysusers is referenced but not assigned.
#  639|   # install sysusers files
#  640|   inst_sysusers() {
#  641|->     inst_multiple -o "$sysusers/$*" "$sysusers/acct-*-$*"
#  642|   
#  643|       if [[ ${hostonly-} ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def28]
/usr/lib/dracut/dracut-init.sh:644:30: warning[SC2154]: sysusersconfdir is referenced but not assigned.
#  642|   
#  643|       if [[ ${hostonly-} ]]; then
#  644|->         inst_multiple -H -o "$sysusersconfdir/$*" "$sysusers/acct-*-$*"
#  645|       fi
#  646|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def29]
/usr/lib/dracut/dracut-init.sh:844:8: warning[SC2154]: host_fs_types is referenced but not assigned.
#  842|   
#  843|       [[ -z $_moddir ]] && _moddir=$(dracut_module_path "$1")
#  844|->     [ "${#host_fs_types[@]}" -le 0 ] && return 1
#  845|   
#  846|       # If we are already scheduled to be loaded, no need to check again.

Error: SHELLCHECK_WARNING (CWE-457): [#def30]
/usr/lib/dracut/dracut-init.sh:855:13: warning[SC2154]: omit_dracutmodules is referenced but not assigned.
#  853|       [[ $2 ]] || mods_checked_as_dep+=" $_mod "
#  854|   
#  855|->     if [[ " $omit_dracutmodules " == *\ $_mod\ * ]]; then
#  856|           return 1
#  857|       fi

Error: SHELLCHECK_WARNING (CWE-758): [#def31]
/usr/lib/dracut/dracut-version.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> DRACUT_VERSION=108-3.fc44

Error: SHELLCHECK_WARNING (CWE-563): [#def32]
/usr/lib/dracut/dracut-version.sh:1:1: warning[SC2034]: DRACUT_VERSION appears unused. Verify use (or export if used externally).
#    1|-> DRACUT_VERSION=108-3.fc44

Error: SHELLCHECK_WARNING (CWE-457): [#def33]
/usr/lib/dracut/modules.d/10bash/module-setup.sh:19:11: warning[SC2154]: initdir is referenced but not assigned.
#   17|   
#   18|       # Prefer bash as default shell if no other shell is preferred.
#   19|->     [[ -L $initdir/bin/sh ]] || ln -sf bash "${initdir}/bin/sh"
#   20|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def34]
/usr/lib/dracut/modules.d/10systemd/module-setup.sh:12:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#   10|       [[ $mount_needs ]] && return 1
#   11|       # If the binary(s) requirements are not fulfilled the module can't be installed
#   12|->     require_binaries "$systemdutildir"/systemd || return 1
#   13|       # Return 255 to only include the module, if another module requires it.
#   14|       return 255

Error: SHELLCHECK_WARNING (CWE-457): [#def35]
/usr/lib/dracut/modules.d/10systemd/module-setup.sh:30:11: warning[SC2154]: prefix is referenced but not assigned.
#   28|   install() {
#   29|   
#   30|->     if [[ $prefix == /run/* ]]; then
#   31|           dfatal 'systemd does not work with a prefix, which contains "/run"!!'
#   32|           exit 1

Error: SHELLCHECK_WARNING (CWE-457): [#def36]
/usr/lib/dracut/modules.d/10systemd/module-setup.sh:51:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   49|           "$systemdutildir"/system.conf \
#   50|           "$systemdutildir"/system.conf.d/*.conf \
#   51|->         "$systemdsystemunitdir"/debug-shell.service \
#   52|           "$systemdsystemunitdir"/emergency.target \
#   53|           "$systemdsystemunitdir"/sysinit.target \

Error: SHELLCHECK_WARNING (CWE-457): [#def37]
/usr/lib/dracut/modules.d/10systemd/module-setup.sh:101:14: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   99|       if [[ ${hostonly-} ]]; then
#  100|           inst_multiple -H -o \
#  101|->             "$systemdutilconfdir"/system.conf \
#  102|               "$systemdutilconfdir"/system.conf.d/*.conf \
#  103|               /etc/hosts \

Error: SHELLCHECK_WARNING (CWE-457): [#def38]
/usr/lib/dracut/modules.d/10systemd/module-setup.sh:110:17: warning[SC2154]: initdir is referenced but not assigned.
#  108|       fi
#  109|   
#  110|->     if ! [[ -e "$initdir/etc/machine-id" ]]; then
#  111|           : > "$initdir/etc/machine-id"
#  112|           chmod 444 "$initdir/etc/machine-id"

Error: SHELLCHECK_WARNING (CWE-457): [#def39]
/usr/lib/dracut/modules.d/10warpclock/module-setup.sh:20:31: warning[SC2154]: moddir is referenced but not assigned.
#   18|   # Install the required file(s) and directories for the module in the initramfs.
#   19|   install() {
#   20|->     inst_hook pre-trigger 00 "$moddir/warpclock.sh"
#   21|   
#   22|       inst_multiple -o \

Error: SHELLCHECK_WARNING (CWE-457): [#def40]
/usr/lib/dracut/modules.d/11fips-crypto-policies/module-setup.sh:20:29: warning[SC2154]: moddir is referenced but not assigned.
#   18|   # called by dracut
#   19|   install() {
#   20|->     inst_hook pre-pivot 01 "$moddir/fips-crypto-policies.sh"
#   21|   
#   22|       inst_multiple mount

Error: SHELLCHECK_WARNING: [#def41]
/usr/lib/dracut/modules.d/11fips/fips.sh:98:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   96|   
#   97|   do_uki_check() {
#   98|->     local KVER
#   99|       local uki_checked=0
#  100|   

Error: SHELLCHECK_WARNING: [#def42]
/usr/lib/dracut/modules.d/11fips/fips.sh:99:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   97|   do_uki_check() {
#   98|       local KVER
#   99|->     local uki_checked=0
#  100|   
#  101|       KVER="$(uname -r)"

Error: SHELLCHECK_WARNING: [#def43]
/usr/lib/dracut/modules.d/11fips/fips.sh:117:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  115|           [ -r "$UKIpath" ] || break
#  116|   
#  117|->         local UKI="${UKIpath##*/}"
#  118|           local UKIHMAC=."$UKI".hmac
#  119|   

Error: SHELLCHECK_WARNING: [#def44]
/usr/lib/dracut/modules.d/11fips/fips.sh:118:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  116|   
#  117|           local UKI="${UKIpath##*/}"
#  118|->         local UKIHMAC=."$UKI".hmac
#  119|   
#  120|           fips_info "checking $UKIHMAC"

Error: SHELLCHECK_WARNING: [#def45]
/usr/lib/dracut/modules.d/11fips/fips.sh:140:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  138|   
#  139|   fips_load_crypto() {
#  140|->     local _k
#  141|       local _v
#  142|       local _module

Error: SHELLCHECK_WARNING: [#def46]
/usr/lib/dracut/modules.d/11fips/fips.sh:141:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  139|   fips_load_crypto() {
#  140|       local _k
#  141|->     local _v
#  142|       local _module
#  143|       local _found

Error: SHELLCHECK_WARNING: [#def47]
/usr/lib/dracut/modules.d/11fips/fips.sh:142:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  140|       local _k
#  141|       local _v
#  142|->     local _module
#  143|       local _found
#  144|   

Error: SHELLCHECK_WARNING: [#def48]
/usr/lib/dracut/modules.d/11fips/fips.sh:143:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  141|       local _v
#  142|       local _module
#  143|->     local _found
#  144|   
#  145|       fips_info "Loading and integrity checking all crypto modules"

Error: SHELLCHECK_WARNING (CWE-457): [#def49]
/usr/lib/dracut/modules.d/11fips/module-setup.sh:15:15: warning[SC2154]: srcmods is referenced but not assigned.
#   13|   installkernel() {
#   14|       local _fipsmodules _mod _bootfstype
#   15|->     if [[ -f "${srcmods}/modules.fips" ]]; then
#   16|           read -d '' -r _fipsmodules < "${srcmods}/modules.fips"
#   17|       else

Error: SHELLCHECK_WARNING (CWE-457): [#def50]
/usr/lib/dracut/modules.d/11fips/module-setup.sh:43:30: warning[SC2154]: initdir is referenced but not assigned.
#   41|       for _mod in $_fipsmodules; do
#   42|           if hostonly='' instmods -c -s "$_mod"; then
#   43|->             echo "$_mod" >> "${initdir}/etc/fipsmodules"
#   44|               echo "blacklist $_mod" >> "${initdir}/etc/fips.conf"
#   45|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def51]
/usr/lib/dracut/modules.d/11fips/module-setup.sh:49:33: warning[SC2154]: hostonly_default_device is referenced but not assigned.
#   47|   
#   48|       # with hostonly_default_device fs module for /boot is not installed by default
#   49|->     if [[ ${hostonly-} ]] && [[ $hostonly_default_device == "no" ]]; then
#   50|           _bootfstype=$(find_mp_fstype /boot)
#   51|           if [[ -n $_bootfstype ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def52]
/usr/lib/dracut/modules.d/11fips/module-setup.sh:61:29: warning[SC2154]: moddir is referenced but not assigned.
#   59|   # called by dracut
#   60|   install() {
#   61|->     inst_hook pre-pivot 00 "$moddir/fips-boot.sh"
#   62|       inst_hook pre-pivot 01 "$moddir/fips-noboot.sh"
#   63|       inst_hook pre-udev 01 "$moddir/fips-load-crypto.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def53]
/usr/lib/dracut/modules.d/11systemd-ac-power/module-setup.sh:13:17: warning[SC2154]: moddir is referenced but not assigned.
#   11|   # Install the required file(s) and directories for the module in the initramfs.
#   12|   install() {
#   13|->     inst_rules "$moddir/99-initrd-power-targets.rules"
#   14|       inst systemd-ac-power
#   15|       inst_simple "$moddir/initrd-on-ac-power.target" "$systemdsystemunitdir/initrd-on-ac-power.target"

Error: SHELLCHECK_WARNING (CWE-457): [#def54]
/usr/lib/dracut/modules.d/11systemd-ac-power/module-setup.sh:15:54: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   13|       inst_rules "$moddir/99-initrd-power-targets.rules"
#   14|       inst systemd-ac-power
#   15|->     inst_simple "$moddir/initrd-on-ac-power.target" "$systemdsystemunitdir/initrd-on-ac-power.target"
#   16|       inst_simple "$moddir/initrd-on-battery-power.target" "$systemdsystemunitdir/initrd-on-battery-power.target"
#   17|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def55]
/usr/lib/dracut/modules.d/11systemd-ask-password/module-setup.sh:44:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   42|   
#   43|       inst_multiple -o \
#   44|->         "$systemdsystemunitdir"/systemd-ask-password-console.path \
#   45|           "$systemdsystemunitdir"/systemd-ask-password-console.service \
#   46|           "$systemdsystemunitdir"/sysinit.target.wants/systemd-ask-password-console.path \

Error: SHELLCHECK_WARNING (CWE-457): [#def56]
/usr/lib/dracut/modules.d/11systemd-ask-password/module-setup.sh:51:27: warning[SC2154]: initdir is referenced but not assigned.
#   49|   
#   50|       # Enable the systemd type service unit for systemd-ask-password.
#   51|->     $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-console.service
#   52|   
#   53|       # Install systemd-ask-password plymouth units if plymouth is enabled.

Error: SHELLCHECK_WARNING (CWE-457): [#def57]
/usr/lib/dracut/modules.d/11systemd-battery-check/module-setup.sh:8:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#    6|   check() {
#    7|       # If the binary(s) requirements are not fulfilled the module can't be installed
#    8|->     require_binaries "$systemdutildir"/systemd-battery-check || return 1
#    9|   
#   10|       return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def58]
/usr/lib/dracut/modules.d/11systemd-battery-check/module-setup.sh:24:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   22|   install() {
#   23|       inst_multiple \
#   24|->         "$systemdsystemunitdir"/systemd-battery-check.service \
#   25|           "$systemdsystemunitdir"/initrd.target.wants/systemd-battery-check.service \
#   26|           "$systemdutildir"/systemd-battery-check

Error: SHELLCHECK_WARNING (CWE-457): [#def59]
/usr/lib/dracut/modules.d/11systemd-bsod/module-setup.sh:8:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#    6|   check() {
#    7|       # If the binary(s) requirements are not fulfilled the module can't be installed
#    8|->     require_binaries "$systemdutildir"/systemd-bsod || return 1
#    9|   
#   10|       # Return 255 to only include the module, if another module requires it.

Error: SHELLCHECK_WARNING (CWE-457): [#def60]
/usr/lib/dracut/modules.d/11systemd-bsod/module-setup.sh:30:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   28|   install() {
#   29|       inst_multiple \
#   30|->         "$systemdsystemunitdir"/systemd-bsod.service \
#   31|           "$systemdsystemunitdir"/initrd.target.wants/systemd-bsod.service \
#   32|           "$systemdutildir"/systemd-bsod

Error: SHELLCHECK_WARNING (CWE-457): [#def61]
/usr/lib/dracut/modules.d/11systemd-coredump/module-setup.sh:11:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    9|       require_binaries \
#   10|           coredumpctl \
#   11|->         "$systemdutildir"/systemd-coredump \
#   12|           || return 1
#   13|   

Error: SHELLCHECK_WARNING (CWE-457): [#def62]
/usr/lib/dracut/modules.d/11systemd-coredump/module-setup.sh:41:10: warning[SC2154]: sysctld is referenced but not assigned.
#   39|   
#   40|       inst_multiple -o \
#   41|->         "$sysctld"/50-coredump.conf \
#   42|           "$systemdutildir"/coredump.conf \
#   43|           "$systemdutildir/coredump.conf.d/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def63]
/usr/lib/dracut/modules.d/11systemd-coredump/module-setup.sh:45:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   43|           "$systemdutildir/coredump.conf.d/*.conf" \
#   44|           "$systemdutildir"/systemd-coredump \
#   45|->         "$systemdsystemunitdir"/systemd-coredump.socket \
#   46|           "$systemdsystemunitdir"/systemd-coredump@.service \
#   47|           "$systemdsystemunitdir"/sockets.target.wants/systemd-coredump.socket \

Error: SHELLCHECK_WARNING (CWE-457): [#def64]
/usr/lib/dracut/modules.d/11systemd-coredump/module-setup.sh:62:14: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   60|       if [[ ${hostonly-} ]]; then
#   61|           inst_multiple -H -o \
#   62|->             "$systemdutilconfdir"/coredump.conf \
#   63|               "$systemdutilconfdir/coredump.conf.d/*.conf" \
#   64|               "$systemdsystemconfdir"/systemd-coredump.socket \

Error: SHELLCHECK_WARNING (CWE-457): [#def65]
/usr/lib/dracut/modules.d/11systemd-coredump/module-setup.sh:64:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   62|               "$systemdutilconfdir"/coredump.conf \
#   63|               "$systemdutilconfdir/coredump.conf.d/*.conf" \
#   64|->             "$systemdsystemconfdir"/systemd-coredump.socket \
#   65|               "$systemdsystemconfdir/systemd-coredump.socket.d/*.conf" \
#   66|               "$systemdsystemconfdir"/systemd-coredump@.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def66]
/usr/lib/dracut/modules.d/11systemd-creds/module-setup.sh:36:10: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   34|           "/usr/lib/credstore/*" \
#   35|           "/usr/lib/credstore.encrypted/*" \
#   36|->         "$tmpfilesdir/credstore.conf" \
#   37|           systemd-creds
#   38|   

Error: SHELLCHECK_WARNING (CWE-457): [#def67]
/usr/lib/dracut/modules.d/11systemd-cryptsetup/module-setup.sh:7:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#    5|       local fs
#    6|       # if cryptsetup is not installed, then we cannot support encrypted devices.
#    7|->     require_binaries "$systemdutildir"/systemd-cryptsetup || return 1
#    8|   
#    9|       [[ $hostonly ]] || [[ $mount_needs ]] && {

Error: SHELLCHECK_WARNING (CWE-457): [#def68]
/usr/lib/dracut/modules.d/11systemd-cryptsetup/module-setup.sh:10:20: warning[SC2154]: host_fs_types is referenced but not assigned.
#    8|   
#    9|       [[ $hostonly ]] || [[ $mount_needs ]] && {
#   10|->         for fs in "${host_fs_types[@]}"; do
#   11|               [[ $fs == "crypto_LUKS" ]] && return 0
#   12|           done

Error: SHELLCHECK_WARNING (CWE-457): [#def69]
/usr/lib/dracut/modules.d/11systemd-cryptsetup/module-setup.sh:36:42: warning[SC2154]: omit_dracutmodules is referenced but not assigned.
#   34|           for module in fido2 pkcs11 tpm2-tss; do
#   35|               module_check $module > /dev/null 2>&1
#   36|->             if [[ $? == 255 ]] && ! [[ " $omit_dracutmodules " == *\ $module\ * ]]; then
#   37|                   deps+=" $module"
#   38|               fi

Error: SHELLCHECK_WARNING (CWE-457): [#def70]
/usr/lib/dracut/modules.d/11systemd-cryptsetup/module-setup.sh:50:10: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   48|       # the enablement symlinks
#   49|       inst_multiple -o \
#   50|->         "$tmpfilesdir"/cryptsetup.conf \
#   51|           "$systemdutildir"/system-generators/systemd-cryptsetup-generator \
#   52|           "$systemdutildir"/systemd-cryptsetup \

Error: SHELLCHECK_WARNING (CWE-457): [#def71]
/usr/lib/dracut/modules.d/11systemd-cryptsetup/module-setup.sh:53:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   51|           "$systemdutildir"/system-generators/systemd-cryptsetup-generator \
#   52|           "$systemdutildir"/systemd-cryptsetup \
#   53|->         "$systemdsystemunitdir"/cryptsetup-pre.target \
#   54|           "$systemdsystemunitdir"/cryptsetup.target \
#   55|           "$systemdsystemunitdir"/sysinit.target.wants/cryptsetup.target \

Error: SHELLCHECK_WARNING (CWE-457): [#def72]
/usr/lib/dracut/modules.d/11systemd-cryptsetup/module-setup.sh:59:36: warning[SC2154]: initdir is referenced but not assigned.
#   57|           "$systemdsystemunitdir"/initrd-root-device.target.wants/remote-cryptsetup.target
#   58|   
#   59|->     if [[ ${hostonly-} ]] && [[ -f $initdir/etc/crypttab ]]; then
#   60|           # for each entry in /etc/crypttab check if the key file is backed by a socket unit and if so,
#   61|           # include it along with its corresponding service unit.

Error: SHELLCHECK_WARNING (CWE-457): [#def73]
/usr/lib/dracut/modules.d/11systemd-cryptsetup/module-setup.sh:73:83: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   71|               fi
#   72|   
#   73|->             find "${dracutsysrootdir-}$systemdsystemunitdir" "${dracutsysrootdir-}$systemdsystemconfdir" -type f -name "*.socket" | while read -r socket_unit; do
#   74|                   # systemd-cryptsetup utility only supports SOCK_STREAM (ListenStream) sockets, so we ignore
#   75|                   # other types like SOCK_DGRAM (ListenDatagram), SOCK_SEQPACKET (ListenSequentialPacket), etc.

Error: SHELLCHECK_WARNING (CWE-457): [#def74]
/usr/lib/dracut/modules.d/11systemd-hostnamed/module-setup.sh:11:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    9|       require_binaries \
#   10|           hostnamectl \
#   11|->         "$systemdutildir"/systemd-hostnamed \
#   12|           || return 1
#   13|   

Error: SHELLCHECK_WARNING (CWE-457): [#def75]
/usr/lib/dracut/modules.d/11systemd-hostnamed/module-setup.sh:32:18: warning[SC2154]: moddir is referenced but not assigned.
#   30|   install() {
#   31|   
#   32|->     inst_simple "$moddir/systemd-hostname-dracut.conf" "$sysusers/systemd-hostname-dracut.conf"
#   33|       inst_simple "$moddir/org.freedesktop.hostname1_dracut.conf" "$dbussystem/org.freedesktop.hostname1_dracut.conf"
#   34|       inst_simple "$moddir/99-systemd-networkd-dracut.conf" "$systemdsystemunitdir/systemd-hostnamed.service.d/99-systemd-networkd-dracut.conf"

Error: SHELLCHECK_WARNING (CWE-457): [#def76]
/usr/lib/dracut/modules.d/11systemd-hostnamed/module-setup.sh:32:57: warning[SC2154]: sysusers is referenced but not assigned.
#   30|   install() {
#   31|   
#   32|->     inst_simple "$moddir/systemd-hostname-dracut.conf" "$sysusers/systemd-hostname-dracut.conf"
#   33|       inst_simple "$moddir/org.freedesktop.hostname1_dracut.conf" "$dbussystem/org.freedesktop.hostname1_dracut.conf"
#   34|       inst_simple "$moddir/99-systemd-networkd-dracut.conf" "$systemdsystemunitdir/systemd-hostnamed.service.d/99-systemd-networkd-dracut.conf"

Error: SHELLCHECK_WARNING (CWE-457): [#def77]
/usr/lib/dracut/modules.d/11systemd-hostnamed/module-setup.sh:33:66: warning[SC2154]: dbussystem is referenced but not assigned.
#   31|   
#   32|       inst_simple "$moddir/systemd-hostname-dracut.conf" "$sysusers/systemd-hostname-dracut.conf"
#   33|->     inst_simple "$moddir/org.freedesktop.hostname1_dracut.conf" "$dbussystem/org.freedesktop.hostname1_dracut.conf"
#   34|       inst_simple "$moddir/99-systemd-networkd-dracut.conf" "$systemdsystemunitdir/systemd-hostnamed.service.d/99-systemd-networkd-dracut.conf"
#   35|   

Error: SHELLCHECK_WARNING (CWE-457): [#def78]
/usr/lib/dracut/modules.d/11systemd-hostnamed/module-setup.sh:34:60: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   32|       inst_simple "$moddir/systemd-hostname-dracut.conf" "$sysusers/systemd-hostname-dracut.conf"
#   33|       inst_simple "$moddir/org.freedesktop.hostname1_dracut.conf" "$dbussystem/org.freedesktop.hostname1_dracut.conf"
#   34|->     inst_simple "$moddir/99-systemd-networkd-dracut.conf" "$systemdsystemunitdir/systemd-hostnamed.service.d/99-systemd-networkd-dracut.conf"
#   35|   
#   36|       inst_multiple -o \

Error: SHELLCHECK_WARNING (CWE-457): [#def79]
/usr/lib/dracut/modules.d/11systemd-hostnamed/module-setup.sh:38:10: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   36|       inst_multiple -o \
#   37|           "$dbussystem"/org.freedesktop.hostname1.conf \
#   38|->         "$dbussystemservices"/org.freedesktop.hostname1.service \
#   39|           "$systemdutildir"/systemd-hostnamed \
#   40|           "$systemdsystemunitdir"/systemd-hostnamed.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def80]
/usr/lib/dracut/modules.d/11systemd-hostnamed/module-setup.sh:52:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   50|           inst_multiple -H -o \
#   51|               /etc/hostname \
#   52|->             "$systemdsystemconfdir"/systemd-hostnamed.service \
#   53|               "$systemdsystemconfdir/systemd-hostnamed.service.d/*.conf" \
#   54|               "$systemdsystemconfdir"/systemd-hostnamed.socket \

Error: SHELLCHECK_WARNING (CWE-457): [#def81]
/usr/lib/dracut/modules.d/11systemd-initrd/module-setup.sh:19:17: warning[SC2154]: initdir is referenced but not assigned.
#   17|   install() {
#   18|       # The existence of this file is required
#   19|->     if ! [[ -e "$initdir/etc/initrd-release" ]]; then
#   20|           : > "$initdir/etc/initrd-release"
#   21|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def82]
/usr/lib/dracut/modules.d/11systemd-initrd/module-setup.sh:24:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   22|   
#   23|       inst_multiple -o \
#   24|->         "$systemdsystemunitdir"/initrd.target \
#   25|           "$systemdsystemunitdir"/initrd-fs.target \
#   26|           "$systemdsystemunitdir"/initrd-root-device.target \

Error: SHELLCHECK_WARNING (CWE-457): [#def83]
/usr/lib/dracut/modules.d/11systemd-integritysetup/module-setup.sh:10:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    8|       # If the binary(s) requirements are not fulfilled the module can't be installed.
#    9|       require_binaries \
#   10|->         "$systemdutildir"/systemd-integritysetup \
#   11|           "$systemdutildir"/system-generators/systemd-integritysetup-generator \
#   12|           || return 1

Error: SHELLCHECK_WARNING (CWE-457): [#def84]
/usr/lib/dracut/modules.d/11systemd-integritysetup/module-setup.sh:45:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   43|           "$systemdutildir"/systemd-integritysetup \
#   44|           "$systemdutildir"/system-generators/systemd-integritysetup-generator \
#   45|->         "$systemdsystemunitdir"/remote-integritysetup.target \
#   46|           "$systemdsystemunitdir"/integritysetup-pre.target \
#   47|           "$systemdsystemunitdir"/integritysetup.target \

Error: SHELLCHECK_WARNING (CWE-457): [#def85]
/usr/lib/dracut/modules.d/11systemd-integritysetup/module-setup.sh:55:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   53|           inst_multiple -H -o \
#   54|               /etc/integritytab \
#   55|->             "$systemdsystemconfdir"/integritysetup.target \
#   56|               "$systemdsystemconfdir/integritysetup.target.wants/*.target" \
#   57|               "$systemdsystemconfdir"/integritysetup-pre.target \

Error: SHELLCHECK_WARNING (CWE-457): [#def86]
/usr/lib/dracut/modules.d/11systemd-journald/module-setup.sh:11:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    9|       require_binaries \
#   10|           journalctl \
#   11|->         "$systemdutildir"/systemd-journald \
#   12|           || return 1
#   13|   

Error: SHELLCHECK_WARNING (CWE-457): [#def87]
/usr/lib/dracut/modules.d/11systemd-journald/module-setup.sh:37:18: warning[SC2154]: moddir is referenced but not assigned.
#   35|   install() {
#   36|   
#   37|->     inst_simple "$moddir/initrd.conf" "$systemdutildir/journald.conf.d/initrd.conf"
#   38|   
#   39|       inst_sysusers systemd-journal.conf

Error: SHELLCHECK_WARNING (CWE-457): [#def88]
/usr/lib/dracut/modules.d/11systemd-journald/module-setup.sh:45:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   43|           "$systemdutildir/journald.conf.d/*.conf" \
#   44|           "$systemdutildir"/systemd-journald \
#   45|->         "$systemdsystemunitdir"/systemd-journald.service \
#   46|           "$systemdsystemunitdir"/systemd-journald.socket \
#   47|           "$systemdsystemunitdir"/systemd-journald@.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def89]
/usr/lib/dracut/modules.d/11systemd-journald/module-setup.sh:72:14: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   70|       if [[ ${hostonly-} ]]; then
#   71|           inst_multiple -H -o \
#   72|->             "$systemdutilconfdir"/journald.conf \
#   73|               "$systemdutilconfdir/journald.conf.d/*.conf" \
#   74|               "$systemdsystemconfdir"/systemd-journald.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def90]
/usr/lib/dracut/modules.d/11systemd-journald/module-setup.sh:74:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   72|               "$systemdutilconfdir"/journald.conf \
#   73|               "$systemdutilconfdir/journald.conf.d/*.conf" \
#   74|->             "$systemdsystemconfdir"/systemd-journald.service \
#   75|               "$systemdsystemconfdir/systemd-journald.service.d/*.conf" \
#   76|               "$systemdsystemconfdir"/systemd-journal-catalog-update.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def91]
/usr/lib/dracut/modules.d/11systemd-ldconfig/module-setup.sh:33:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   31|           /etc/ld.so.conf \
#   32|           "/etc/ld.so.conf.d/*.conf" \
#   33|->         "$systemdsystemunitdir"/ldconfig.service \
#   34|           "$systemdsystemunitdir/ldconfig.service.d/*.conf" \
#   35|           "$systemdsystemunitdir"/sysinit.target.wants/ldconfig.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def92]
/usr/lib/dracut/modules.d/11systemd-ldconfig/module-setup.sh:46:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   44|       if [[ ${hostonly-} ]]; then
#   45|           inst_multiple -H -o \
#   46|->             "$systemdsystemconfdir"/ldconfig.service \
#   47|               "$systemdsystemconfdir/ldconfig.service.d/*.conf"
#   48|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def93]
/usr/lib/dracut/modules.d/11systemd-modules-load/module-setup.sh:8:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#    6|   check() {
#    7|       # If the binary(s) requirements are not fulfilled the module can't be installed
#    8|->     require_binaries "$systemdutildir"/systemd-modules-load || return 1
#    9|   
#   10|       # Return 255 to only include the module, if another module requires it.

Error: SHELLCHECK_WARNING (CWE-457): [#def94]
/usr/lib/dracut/modules.d/11systemd-modules-load/module-setup.sh:36:44: warning[SC2154]: modulesload is referenced but not assigned.
#   34|       }
#   35|   
#   36|->     mapfile -t _mods < <(modules_load_get "$modulesload")
#   37|       if [[ ${#_mods[@]} -gt 0 ]]; then
#   38|           hostonly='' instmods "${_mods[@]}"

Error: SHELLCHECK_WARNING (CWE-457): [#def95]
/usr/lib/dracut/modules.d/11systemd-modules-load/module-setup.sh:42:48: warning[SC2154]: modulesloadconfdir is referenced but not assigned.
#   40|   
#   41|       if [[ ${hostonly-} ]]; then
#   42|->         mapfile -t _mods < <(modules_load_get "$modulesloadconfdir")
#   43|           if [[ ${#_mods[@]} -gt 0 ]]; then
#   44|               hostonly='' instmods "${_mods[@]}"

Error: SHELLCHECK_WARNING (CWE-457): [#def96]
/usr/lib/dracut/modules.d/11systemd-modules-load/module-setup.sh:57:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   55|           "$modulesload/*.conf" \
#   56|           "$systemdutildir"/systemd-modules-load \
#   57|->         "$systemdsystemunitdir"/systemd-modules-load.service \
#   58|           "$systemdsystemunitdir"/modprobe@.service \
#   59|           "$systemdsystemunitdir"/kmod-static-nodes.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def97]
/usr/lib/dracut/modules.d/11systemd-modules-load/module-setup.sh:65:27: warning[SC2154]: initdir is referenced but not assigned.
#   63|   
#   64|       # Enable systemd type unit(s)
#   65|->     $SYSTEMCTL -q --root "$initdir" enable systemd-modules-load.service
#   66|   
#   67|       # Install the hosts local user configurations if enabled.

Error: SHELLCHECK_WARNING (CWE-457): [#def98]
/usr/lib/dracut/modules.d/11systemd-modules-load/module-setup.sh:72:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   70|               /etc/modules-load.d/*.conf \
#   71|               "$modulesloadconfdir/*.conf" \
#   72|->             "$systemdsystemconfdir"/modprobe@.service \
#   73|               "$systemdsystemconfdir/modprobe@.service.d/*.conf" \
#   74|               "$systemdsystemconfdir"/systemd-modules-load.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def99]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:11:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    9|       # If the binary(s) requirements are not fulfilled the module can't be installed
#   10|       require_binaries ip \
#   11|->         "$systemdutildir"/systemd-networkd \
#   12|           "$systemdutildir"/systemd-network-generator \
#   13|           "$systemdutildir"/systemd-networkd-wait-online \

Error: SHELLCHECK_WARNING (CWE-457): [#def100]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:37:10: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   35|   
#   36|       inst_multiple -o \
#   37|->         "$tmpfilesdir"/systemd-network.conf \
#   38|           "$dbussystem"/org.freedesktop.network1.conf \
#   39|           "$dbussystemservices"/org.freedesktop.network1.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def101]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:38:10: warning[SC2154]: dbussystem is referenced but not assigned.
#   36|       inst_multiple -o \
#   37|           "$tmpfilesdir"/systemd-network.conf \
#   38|->         "$dbussystem"/org.freedesktop.network1.conf \
#   39|           "$dbussystemservices"/org.freedesktop.network1.service \
#   40|           "$systemdutildir"/networkd.conf \

Error: SHELLCHECK_WARNING (CWE-457): [#def102]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:39:10: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   37|           "$tmpfilesdir"/systemd-network.conf \
#   38|           "$dbussystem"/org.freedesktop.network1.conf \
#   39|->         "$dbussystemservices"/org.freedesktop.network1.service \
#   40|           "$systemdutildir"/networkd.conf \
#   41|           "$systemdutildir/networkd.conf.d/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def103]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:45:10: warning[SC2154]: systemdnetwork is referenced but not assigned.
#   43|           "$systemdutildir"/systemd-network-generator \
#   44|           "$systemdutildir"/systemd-networkd-wait-online \
#   45|->         "$systemdnetwork"/80-6rd-tunnel.network \
#   46|           "$systemdnetwork"/80-container-host0.network \
#   47|           "$systemdnetwork"/80-container-vb.network \

Error: SHELLCHECK_WARNING (CWE-457): [#def104]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:54:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   52|           "$systemdnetwork"/98-default-mac-none.link \
#   53|           "$systemdnetwork"/99-default.link \
#   54|->         "$systemdsystemunitdir"/systemd-networkd.service \
#   55|           "$systemdsystemunitdir"/systemd-networkd.socket \
#   56|           "$systemdsystemunitdir"/systemd-network-generator.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def105]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:62:18: warning[SC2154]: moddir is referenced but not assigned.
#   60|           ip sed grep
#   61|   
#   62|->     inst_simple "$moddir"/99-wait-online-dracut.conf \
#   63|           "$systemdsystemunitdir"/systemd-networkd-wait-online.service.d/99-dracut.conf
#   64|   

Error: SHELLCHECK_WARNING (CWE-457): [#def106]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:66:10: warning[SC2154]: systemdnetworkconfdir is referenced but not assigned.
#   64|   
#   65|       inst_simple "$moddir"/99-default.network \
#   66|->         "$systemdnetworkconfdir"/zzzz-dracut-default.network
#   67|   
#   68|       inst_hook cmdline 99 "$moddir"/networkd-config.sh

Error: SHELLCHECK_WARNING (CWE-457): [#def107]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:77:31: warning[SC2154]: initdir is referenced but not assigned.
#   75|           systemd-network-generator.service \
#   76|           systemd-networkd-wait-online.service; do
#   77|->         $SYSTEMCTL -q --root "$initdir" enable "$i"
#   78|       done
#   79|   

Error: SHELLCHECK_WARNING (CWE-457): [#def108]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:83:14: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   81|       if [[ ${hostonly-} ]]; then
#   82|           inst_multiple -H -o \
#   83|->             "$systemdutilconfdir"/networkd.conf \
#   84|               "$systemdutilconfdir/networkd.conf.d/*.conf" \
#   85|               "$systemdnetworkconfdir/*" \

Error: SHELLCHECK_WARNING (CWE-457): [#def109]
/usr/lib/dracut/modules.d/11systemd-networkd/module-setup.sh:86:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   84|               "$systemdutilconfdir/networkd.conf.d/*.conf" \
#   85|               "$systemdnetworkconfdir/*" \
#   86|->             "$systemdsystemconfdir"/systemd-networkd.service \
#   87|               "$systemdsystemconfdir/systemd-networkd.service.d/*.conf" \
#   88|               "$systemdsystemconfdir"/systemd-networkd.socket \

Error: SHELLCHECK_WARNING (CWE-457): [#def110]
/usr/lib/dracut/modules.d/11systemd-networkd/networkd-config.sh:23:12: warning[SC2154]: systemdnetworkconfdir is referenced but not assigned.
#   21|   
#   22|       # Remove the default network if at least one was generated
#   23|->     rm -f "$systemdnetworkconfdir"/zzzz-dracut-default.network
#   24|   done
#   25|   

Error: SHELLCHECK_WARNING (CWE-457): [#def111]
/usr/lib/dracut/modules.d/11systemd-pcrphase/module-setup.sh:9:28: warning[SC2154]: systemdutildir is referenced but not assigned.
#    7|       # If the binary(s) requirements are not fulfilled the module can't be installed.
#    8|       # systemd-255 renamed the binary, check for old and new location.
#    9|->     if ! require_binaries "$systemdutildir"/systemd-pcrphase \
#   10|           && ! require_binaries "$systemdutildir"/systemd-pcrextend; then
#   11|           return 1

Error: SHELLCHECK_WARNING (CWE-457): [#def112]
/usr/lib/dracut/modules.d/11systemd-pcrphase/module-setup.sh:41:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   39|           "$systemdutildir"/systemd-pcrphase \
#   40|           "$systemdutildir"/systemd-pcrextend \
#   41|->         "$systemdsystemunitdir"/systemd-pcrphase-initrd.service \
#   42|           "$systemdsystemunitdir/systemd-pcrphase-initrd.service.d/*.conf" \
#   43|           "$systemdsystemunitdir"/initrd.target.wants/systemd-pcrphase-initrd.service

Error: SHELLCHECK_WARNING (CWE-457): [#def113]
/usr/lib/dracut/modules.d/11systemd-pcrphase/module-setup.sh:48:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   46|       if [[ ${hostonly-} ]]; then
#   47|           inst_multiple -H -o \
#   48|->             "$systemdsystemconfdir"/systemd-pcrphase-initrd.service \
#   49|               "$systemdsystemconfdir/systemd-pcrphase-initrd.service.d/*.conf" \
#   50|               "$systemdsystemconfdir"/initrd.target.wants/systemd-pcrphase-initrd.service

Error: SHELLCHECK_WARNING (CWE-457): [#def114]
/usr/lib/dracut/modules.d/11systemd-portabled/module-setup.sh:11:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    9|       require_binaries \
#   10|           portablectl \
#   11|->         "$systemdutildir"/systemd-portabled \
#   12|           || return 1
#   13|   

Error: SHELLCHECK_WARNING (CWE-457): [#def115]
/usr/lib/dracut/modules.d/11systemd-portabled/module-setup.sh:48:10: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   46|           "/var/lib/portables/*.raw" \
#   47|           "/usr/lib/portables/*.raw" \
#   48|->         "$tmpfilesdir/portables.conf" \
#   49|           "$dbussystem"/org.freedesktop.portable1.conf \
#   50|           "$dbussystemservices"/org.freedesktop.portable1.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def116]
/usr/lib/dracut/modules.d/11systemd-portabled/module-setup.sh:49:10: warning[SC2154]: dbussystem is referenced but not assigned.
#   47|           "/usr/lib/portables/*.raw" \
#   48|           "$tmpfilesdir/portables.conf" \
#   49|->         "$dbussystem"/org.freedesktop.portable1.conf \
#   50|           "$dbussystemservices"/org.freedesktop.portable1.service \
#   51|           "$systemdutildir"/systemd-portabled \

Error: SHELLCHECK_WARNING (CWE-457): [#def117]
/usr/lib/dracut/modules.d/11systemd-portabled/module-setup.sh:50:10: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   48|           "$tmpfilesdir/portables.conf" \
#   49|           "$dbussystem"/org.freedesktop.portable1.conf \
#   50|->         "$dbussystemservices"/org.freedesktop.portable1.service \
#   51|           "$systemdutildir"/systemd-portabled \
#   52|           "$systemdutildir/portable/profile/default/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def118]
/usr/lib/dracut/modules.d/11systemd-portabled/module-setup.sh:56:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   54|           "$systemdutildir/portable/profile/strict/*.conf" \
#   55|           "$systemdutildir/portable/profile/trusted/*.conf" \
#   56|->         "$systemdsystemunitdir"/systemd-portabled.service \
#   57|           "$systemdsystemunitdir/systemd-portabled.service.d/*.conf" \
#   58|           "$systemdsystemunitdir"/dbus-org.freedesktop.portable1.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def119]
/usr/lib/dracut/modules.d/11systemd-portabled/module-setup.sh:62:12: warning[SC2154]: initdir is referenced but not assigned.
#   60|   
#   61|       # The existence of this file is required
#   62|->     touch "$initdir"/etc/resolv.conf
#   63|   
#   64|       # Enable systemd type unit(s)

Error: SHELLCHECK_WARNING (CWE-457): [#def120]
/usr/lib/dracut/modules.d/11systemd-portabled/module-setup.sh:72:14: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   70|           inst_multiple -H -o \
#   71|               "/etc/portables/*.raw" \
#   72|->             "$systemdutilconfdir/system.attached/*" \
#   73|               "$systemdutilconfdir/system.attached/*/*" \
#   74|               "$systemdutilconfdir/portable/profile/default/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def121]
/usr/lib/dracut/modules.d/11systemd-portabled/module-setup.sh:78:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   76|               "$systemdutilconfdir/portable/profile/strict/*.conf" \
#   77|               "$systemdutilconfdir/portable/profile/trusted/*.conf" \
#   78|->             "$systemdsystemconfdir"/systemd-portabled.service \
#   79|               "$systemdsystemconfdir/systemd-portabled.service.d/*.conf"
#   80|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def122]
/usr/lib/dracut/modules.d/11systemd-pstore/module-setup.sh:9:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#    7|   
#    8|       # If the binary(s) requirements are not fulfilled the module can't be installed.
#    9|->     require_binaries "$systemdutildir"/systemd-pstore || return 1
#   10|   
#   11|       # Return 255 to only include the module, if another module requires it.

Error: SHELLCHECK_WARNING (CWE-457): [#def123]
/usr/lib/dracut/modules.d/11systemd-pstore/module-setup.sh:36:10: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   34|       inst_dir /var/lib/systemd/pstore
#   35|       inst_multiple -o \
#   36|->         "$tmpfilesdir/systemd-pstore.conf" \
#   37|           "$systemdutildir"/pstore.conf \
#   38|           "$systemdutildir/pstore.conf.d/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def124]
/usr/lib/dracut/modules.d/11systemd-pstore/module-setup.sh:40:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   38|           "$systemdutildir/pstore.conf.d/*.conf" \
#   39|           "$systemdutildir"/systemd-pstore \
#   40|->         "$systemdsystemunitdir"/systemd-pstore.service \
#   41|           "$systemdsystemunitdir/systemd-pstore.service.d/*.conf"
#   42|   

Error: SHELLCHECK_WARNING (CWE-457): [#def125]
/usr/lib/dracut/modules.d/11systemd-pstore/module-setup.sh:44:27: warning[SC2154]: initdir is referenced but not assigned.
#   42|   
#   43|       # Enable systemd type unit(s)
#   44|->     $SYSTEMCTL -q --root "$initdir" enable systemd-pstore.service
#   45|   
#   46|       # Install the hosts local user configurations if enabled.

Error: SHELLCHECK_WARNING (CWE-457): [#def126]
/usr/lib/dracut/modules.d/11systemd-pstore/module-setup.sh:49:14: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   47|       if [[ ${hostonly-} ]]; then
#   48|           inst_multiple -H -o \
#   49|->             "$systemdutilconfdir"/pstore.conf \
#   50|               "$systemdutilconfdir/pstore.conf.d/*.conf" \
#   51|               "$systemdsystemconfdir"/systemd-pstore.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def127]
/usr/lib/dracut/modules.d/11systemd-pstore/module-setup.sh:51:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   49|               "$systemdutilconfdir"/pstore.conf \
#   50|               "$systemdutilconfdir/pstore.conf.d/*.conf" \
#   51|->             "$systemdsystemconfdir"/systemd-pstore.service \
#   52|               "$systemdsystemconfdir/systemd-pstore.service.d/*.conf"
#   53|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def128]
/usr/lib/dracut/modules.d/11systemd-repart/module-setup.sh:18:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   16|       inst_multiple -o \
#   17|           "/usr/lib/repart.d/*.conf" \
#   18|->         "$systemdsystemunitdir"/systemd-repart.service \
#   19|           "$systemdsystemunitdir/systemd-repart.service.d/*.conf" \
#   20|           "$systemdsystemunitdir"/initrd-root-fs.target.wants/systemd-repart.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def129]
/usr/lib/dracut/modules.d/11systemd-repart/module-setup.sh:37:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   35|           inst_multiple -H -o \
#   36|               "/etc/repart.d/*.conf" \
#   37|->             "$systemdsystemconfdir"/systemd-repart.service \
#   38|               "$systemdsystemconfdir/systemd-repart.service.d/*.conf"
#   39|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def130]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:11:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    9|       require_binaries \
#   10|           resolvectl \
#   11|->         "$systemdutildir"/systemd-resolved \
#   12|           || return 1
#   13|   

Error: SHELLCHECK_WARNING (CWE-457): [#def131]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:32:18: warning[SC2154]: moddir is referenced but not assigned.
#   30|   install() {
#   31|   
#   32|->     inst_simple "$moddir/resolved-tmpfile-dracut.conf" "$tmpfilesdir/resolved-tmpfile-dracut.conf"
#   33|   
#   34|       inst_sysusers systemd-resolve.conf

Error: SHELLCHECK_WARNING (CWE-457): [#def132]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:32:57: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   30|   install() {
#   31|   
#   32|->     inst_simple "$moddir/resolved-tmpfile-dracut.conf" "$tmpfilesdir/resolved-tmpfile-dracut.conf"
#   33|   
#   34|       inst_sysusers systemd-resolve.conf

Error: SHELLCHECK_WARNING (CWE-457): [#def133]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:37:10: warning[SC2154]: dbussystem is referenced but not assigned.
#   35|   
#   36|       inst_multiple -o \
#   37|->         "$dbussystem"/org.freedesktop.resolve1.conf \
#   38|           "$dbussystemservices"/org.freedesktop.resolve1.service \
#   39|           "$systemdutildir"/resolv.conf \

Error: SHELLCHECK_WARNING (CWE-457): [#def134]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:38:10: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   36|       inst_multiple -o \
#   37|           "$dbussystem"/org.freedesktop.resolve1.conf \
#   38|->         "$dbussystemservices"/org.freedesktop.resolve1.service \
#   39|           "$systemdutildir"/resolv.conf \
#   40|           "$systemdutildir"/resolved.conf \

Error: SHELLCHECK_WARNING (CWE-457): [#def135]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:43:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   41|           "$systemdutildir/resolved.conf.d/*.conf" \
#   42|           "$systemdutildir"/systemd-resolved \
#   43|->         "$systemdsystemunitdir"/systemd-resolved.service \
#   44|           "$systemdsystemunitdir/systemd-resolved.service.d/*.conf" \
#   45|           resolvectl

Error: SHELLCHECK_WARNING (CWE-457): [#def136]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:48:27: warning[SC2154]: initdir is referenced but not assigned.
#   46|   
#   47|       # Enable systemd type unit(s)
#   48|->     $SYSTEMCTL -q --root "$initdir" enable systemd-resolved.service
#   49|   
#   50|       # Install the hosts local user configurations if enabled.

Error: SHELLCHECK_WARNING (CWE-457): [#def137]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:53:14: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   51|       if [[ ${hostonly-} ]]; then
#   52|           inst_multiple -H -o \
#   53|->             "$systemdutilconfdir"/resolv.conf \
#   54|               "$systemdutilconfdir"/resolved.conf \
#   55|               "$systemdutilconfdir/resolved.conf.d/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def138]
/usr/lib/dracut/modules.d/11systemd-resolved/module-setup.sh:56:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   54|               "$systemdutilconfdir"/resolved.conf \
#   55|               "$systemdutilconfdir/resolved.conf.d/*.conf" \
#   56|->             "$systemdsystemconfdir"/systemd-resolved.service \
#   57|               "$systemdsystemconfdir/systemd-resolved.service.d/*.conf"
#   58|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def139]
/usr/lib/dracut/modules.d/11systemd-sysctl/module-setup.sh:9:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#    7|   
#    8|       # If the binary(s) requirements are not fulfilled the module can't be installed
#    9|->     require_binaries "$systemdutildir"/systemd-sysctl || return 1
#   10|   
#   11|       # Return 255 to only include the module, if another module requires it.

Error: SHELLCHECK_WARNING (CWE-457): [#def140]
/usr/lib/dracut/modules.d/11systemd-sysctl/module-setup.sh:20:10: warning[SC2154]: sysctld is referenced but not assigned.
#   18|       inst_multiple -o \
#   19|           /usr/lib/sysctl.d/*.conf \
#   20|->         "$sysctld/*.conf" \
#   21|           "$systemdsystemunitdir"/systemd-sysctl.service \
#   22|           "$systemdsystemunitdir"/sysinit.target.wants/systemd-sysctl.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def141]
/usr/lib/dracut/modules.d/11systemd-sysctl/module-setup.sh:21:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   19|           /usr/lib/sysctl.d/*.conf \
#   20|           "$sysctld/*.conf" \
#   21|->         "$systemdsystemunitdir"/systemd-sysctl.service \
#   22|           "$systemdsystemunitdir"/sysinit.target.wants/systemd-sysctl.service \
#   23|           "$systemdutildir"/systemd-sysctl

Error: SHELLCHECK_WARNING (CWE-457): [#def142]
/usr/lib/dracut/modules.d/11systemd-sysctl/module-setup.sh:30:14: warning[SC2154]: sysctlconfdir is referenced but not assigned.
#   28|               /etc/sysctl.conf \
#   29|               /etc/sysctl.d/*.conf \
#   30|->             "$sysctlconfdir/*.conf" \
#   31|               "$systemdsystemconfdir"/systemd-sysctl.service \
#   32|               "$systemdsystemconfdir/systemd-sysctl.service.d/*.conf"

Error: SHELLCHECK_WARNING (CWE-457): [#def143]
/usr/lib/dracut/modules.d/11systemd-sysctl/module-setup.sh:31:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   29|               /etc/sysctl.d/*.conf \
#   30|               "$sysctlconfdir/*.conf" \
#   31|->             "$systemdsystemconfdir"/systemd-sysctl.service \
#   32|               "$systemdsystemconfdir/systemd-sysctl.service.d/*.conf"
#   33|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def144]
/usr/lib/dracut/modules.d/11systemd-sysctl/module-setup.sh:36:27: warning[SC2154]: initdir is referenced but not assigned.
#   34|   
#   35|       # Enable the systemd type service unit for sysctl.
#   36|->     $SYSTEMCTL -q --root "$initdir" enable systemd-sysctl.service
#   37|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def145]
/usr/lib/dracut/modules.d/11systemd-sysext/module-setup.sh:38:32: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   36|   
#   37|       # systemd >= v258
#   38|->     [[ -e "${dracutsysrootdir-}$systemdsystemunitdir"/systemd-sysext-initrd.service ]] && _suffix="-initrd"
#   39|   
#   40|       # It's intended to work only with raw binary disk images contained in

Error: SHELLCHECK_WARNING (CWE-457): [#def146]
/usr/lib/dracut/modules.d/11systemd-sysext/module-setup.sh:56:31: warning[SC2154]: initdir is referenced but not assigned.
#   54|           systemd-confext.service \
#   55|           systemd-sysext.service; do
#   56|->         $SYSTEMCTL -q --root "$initdir" enable "$i"
#   57|       done
#   58|   

Error: SHELLCHECK_WARNING (CWE-457): [#def147]
/usr/lib/dracut/modules.d/11systemd-sysext/module-setup.sh:66:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   64|               "/var/lib/confexts/*.raw" \
#   65|               "/var/lib/extensions/*.raw" \
#   66|->             "$systemdsystemconfdir"/systemd-confext${_suffix}.service \
#   67|               "$systemdsystemconfdir/systemd-confext${_suffix}.service.d/*.conf" \
#   68|               "$systemdsystemconfdir"/systemd-sysext${_suffix}.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def148]
/usr/lib/dracut/modules.d/11systemd-timedated/module-setup.sh:11:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    9|       require_binaries \
#   10|           timedatectl \
#   11|->         "$systemdutildir"/systemd-timedated \
#   12|           || return 1
#   13|   

Error: SHELLCHECK_WARNING (CWE-457): [#def149]
/usr/lib/dracut/modules.d/11systemd-timedated/module-setup.sh:33:10: warning[SC2154]: dbussystem is referenced but not assigned.
#   31|   
#   32|       inst_multiple -o \
#   33|->         "$dbussystem"/org.freedesktop.timedate1.conf \
#   34|           "$dbussystemservices"/org.freedesktop.timedate1.service \
#   35|           "$systemdutildir"/systemd-timedated \

Error: SHELLCHECK_WARNING (CWE-457): [#def150]
/usr/lib/dracut/modules.d/11systemd-timedated/module-setup.sh:34:10: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   32|       inst_multiple -o \
#   33|           "$dbussystem"/org.freedesktop.timedate1.conf \
#   34|->         "$dbussystemservices"/org.freedesktop.timedate1.service \
#   35|           "$systemdutildir"/systemd-timedated \
#   36|           "$systemdsystemunitdir"/systemd-timedated.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def151]
/usr/lib/dracut/modules.d/11systemd-timedated/module-setup.sh:36:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   34|           "$dbussystemservices"/org.freedesktop.timedate1.service \
#   35|           "$systemdutildir"/systemd-timedated \
#   36|->         "$systemdsystemunitdir"/systemd-timedated.service \
#   37|           "$systemdsystemunitdir"/dbus-org.freedesktop.timedate1.service \
#   38|           timedatectl

Error: SHELLCHECK_WARNING (CWE-457): [#def152]
/usr/lib/dracut/modules.d/11systemd-timedated/module-setup.sh:43:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   41|       if [[ ${hostonly-} ]]; then
#   42|           inst_multiple -H -o \
#   43|->             "$systemdsystemconfdir"/systemd-timedated.service \
#   44|               "$systemdsystemconfdir/systemd-timedated.service.d/*.conf"
#   45|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def153]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:10:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    8|       # If the binary(s) requirements are not fulfilled the module can't be installed
#    9|       require_binaries \
#   10|->         "$systemdutildir"/systemd-timesyncd \
#   11|           "$systemdutildir"/systemd-time-wait-sync \
#   12|           || return 1

Error: SHELLCHECK_WARNING (CWE-457): [#def154]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:38:10: warning[SC2154]: dbussystem is referenced but not assigned.
#   36|   
#   37|       inst_multiple -o \
#   38|->         "$dbussystem"/org.freedesktop.timesync1.conf \
#   39|           "$dbussystemservices"/org.freedesktop.timesync1.service \
#   40|           "$systemdntpunits/*.list" \

Error: SHELLCHECK_WARNING (CWE-457): [#def155]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:39:10: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   37|       inst_multiple -o \
#   38|           "$dbussystem"/org.freedesktop.timesync1.conf \
#   39|->         "$dbussystemservices"/org.freedesktop.timesync1.service \
#   40|           "$systemdntpunits/*.list" \
#   41|           "$systemdutildir"/systemd-timesyncd \

Error: SHELLCHECK_WARNING (CWE-457): [#def156]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:40:10: warning[SC2154]: systemdntpunits is referenced but not assigned.
#   38|           "$dbussystem"/org.freedesktop.timesync1.conf \
#   39|           "$dbussystemservices"/org.freedesktop.timesync1.service \
#   40|->         "$systemdntpunits/*.list" \
#   41|           "$systemdutildir"/systemd-timesyncd \
#   42|           "$systemdutildir"/systemd-time-wait-sync \

Error: SHELLCHECK_WARNING (CWE-457): [#def157]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:45:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   43|           "$systemdutildir"/timesyncd.conf \
#   44|           "$systemdutildir/timesyncd.conf.d/*.conf" \
#   45|->         "$systemdsystemunitdir"/systemd-timesyncd.service \
#   46|           "$systemdsystemunitdir/systemd-timesyncd.service.d/*.conf" \
#   47|           "$systemdsystemunitdir"/systemd-time-wait-sync.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def158]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:54:31: warning[SC2154]: initdir is referenced but not assigned.
#   52|           systemd-timesyncd.service \
#   53|           systemd-time-wait-sync.service; do
#   54|->         $SYSTEMCTL -q --root "$initdir" enable "$i"
#   55|       done
#   56|   

Error: SHELLCHECK_WARNING (CWE-457): [#def159]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:60:14: warning[SC2154]: systemdntpunitsconfdir is referenced but not assigned.
#   58|       if [[ ${hostonly-} ]]; then
#   59|           inst_multiple -H -o \
#   60|->             "$systemdntpunitsconfdir/*.list" \
#   61|               "$systemdutilconfdir"/timesyncd.conf \
#   62|               "$systemdutilconfdir/timesyncd.conf.d/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def160]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:61:14: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   59|           inst_multiple -H -o \
#   60|               "$systemdntpunitsconfdir/*.list" \
#   61|->             "$systemdutilconfdir"/timesyncd.conf \
#   62|               "$systemdutilconfdir/timesyncd.conf.d/*.conf" \
#   63|               "$systemdsystemconfdir"/systemd-timesyncd.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def161]
/usr/lib/dracut/modules.d/11systemd-timesyncd/module-setup.sh:63:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   61|               "$systemdutilconfdir"/timesyncd.conf \
#   62|               "$systemdutilconfdir/timesyncd.conf.d/*.conf" \
#   63|->             "$systemdsystemconfdir"/systemd-timesyncd.service \
#   64|               "$systemdsystemconfdir/systemd-timesyncd.service.d/*.conf" \
#   65|               "$systemdsystemconfdir"/systemd-time-wait-sync.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def162]
/usr/lib/dracut/modules.d/11systemd-tmpfiles/module-setup.sh:26:10: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   24|           /usr/lib/group \
#   25|           /usr/lib/passwd \
#   26|->         "$tmpfilesdir/etc.conf" \
#   27|           "$tmpfilesdir/static-nodes-permissions.conf" \
#   28|           "$tmpfilesdir/systemd-tmp.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def163]
/usr/lib/dracut/modules.d/11systemd-tmpfiles/module-setup.sh:32:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   30|           "$tmpfilesdir/20-systemd-stub.conf" \
#   31|           "$tmpfilesdir/var.conf" \
#   32|->         "$systemdsystemunitdir"/systemd-tmpfiles-clean.service \
#   33|           "$systemdsystemunitdir/systemd-tmpfiles-clean.service.d/*.conf" \
#   34|           "$systemdsystemunitdir"/systemd-tmpfiles-setup.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def164]
/usr/lib/dracut/modules.d/11systemd-tmpfiles/module-setup.sh:48:14: warning[SC2154]: tmpfilesconfdir is referenced but not assigned.
#   46|       if [[ ${hostonly-} ]]; then
#   47|           inst_multiple -H -o \
#   48|->             "$tmpfilesconfdir/*.conf" \
#   49|               "$systemdsystemconfdir"/systemd-tmpfiles-clean.service \
#   50|               "$systemdsystemconfdir/systemd-tmpfiles-clean.service.d/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def165]
/usr/lib/dracut/modules.d/11systemd-tmpfiles/module-setup.sh:49:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   47|           inst_multiple -H -o \
#   48|               "$tmpfilesconfdir/*.conf" \
#   49|->             "$systemdsystemconfdir"/systemd-tmpfiles-clean.service \
#   50|               "$systemdsystemconfdir/systemd-tmpfiles-clean.service.d/*.conf" \
#   51|               "$systemdsystemconfdir"/systemd-tmpfiles-setup.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def166]
/usr/lib/dracut/modules.d/11systemd-udevd/module-setup.sh:10:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    8|       require_binaries \
#    9|           udevadm \
#   10|->         "$systemdutildir"/systemd-udevd \
#   11|           || return 1
#   12|   

Error: SHELLCHECK_WARNING (CWE-457): [#def167]
/usr/lib/dracut/modules.d/11systemd-udevd/module-setup.sh:25:38: warning[SC2154]: omit_dracutmodules is referenced but not assigned.
#   23|       for module in systemd-sysctl systemd-modules-load; do
#   24|           module_check $module > /dev/null 2>&1
#   25|->         if [[ $? == 255 ]] && ! [[ " $omit_dracutmodules " == *\ $module\ * ]]; then
#   26|               deps+=" $module"
#   27|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def168]
/usr/lib/dracut/modules.d/11systemd-udevd/module-setup.sh:37:10: warning[SC2154]: udevrulesdir is referenced but not assigned.
#   35|   install() {
#   36|       inst_multiple -o \
#   37|->         "$udevrulesdir"/90-image-dissect.rules \
#   38|           "$udevrulesdir"/99-systemd.rules \
#   39|           "$systemdutildir"/systemd-udevd \

Error: SHELLCHECK_WARNING (CWE-457): [#def169]
/usr/lib/dracut/modules.d/11systemd-udevd/module-setup.sh:40:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   38|           "$udevrulesdir"/99-systemd.rules \
#   39|           "$systemdutildir"/systemd-udevd \
#   40|->         "$systemdsystemunitdir"/systemd-udevd.service \
#   41|           "$systemdsystemunitdir/systemd-udevd.service.d/*.conf" \
#   42|           "$systemdsystemunitdir"/systemd-udev-trigger.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def170]
/usr/lib/dracut/modules.d/11systemd-udevd/module-setup.sh:56:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   54|       if [[ ${hostonly-} ]]; then
#   55|           inst_multiple -H -o \
#   56|->             "$systemdsystemconfdir"/systemd-udevd.service \
#   57|               "$systemdsystemconfdir/systemd-udevd.service.d/*.conf" \
#   58|               "$systemdsystemconfdir"/systemd-udev-trigger.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def171]
/usr/lib/dracut/modules.d/11systemd-udevd/module-setup.sh:73:18: warning[SC2154]: systemdutilconfdir is referenced but not assigned.
#   71|           if dracut_module_included "hwdb"; then
#   72|               inst_multiple -H -o \
#   73|->                 "$systemdutilconfdir"/hwdb/hwdb.bin
#   74|           fi
#   75|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def172]
/usr/lib/dracut/modules.d/11systemd-veritysetup/module-setup.sh:10:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    8|       # If the binary(s) requirements are not fulfilled the module can't be installed.
#    9|       require_binaries \
#   10|->         "$systemdutildir"/systemd-veritysetup \
#   11|           "$systemdutildir"/system-generators/systemd-veritysetup-generator \
#   12|           || return 1

Error: SHELLCHECK_WARNING (CWE-457): [#def173]
/usr/lib/dracut/modules.d/11systemd-veritysetup/module-setup.sh:45:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   43|           "$systemdutildir"/systemd-veritysetup \
#   44|           "$systemdutildir"/system-generators/systemd-veritysetup-generator \
#   45|->         "$systemdsystemunitdir"/remote-veritysetup.target \
#   46|           "$systemdsystemunitdir"/veritysetup-pre.target \
#   47|           "$systemdsystemunitdir"/veritysetup.target \

Error: SHELLCHECK_WARNING (CWE-457): [#def174]
/usr/lib/dracut/modules.d/11systemd-veritysetup/module-setup.sh:55:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   53|           inst_multiple -H -o \
#   54|               /etc/veritytab \
#   55|->             "$systemdsystemconfdir"/veritysetup.target \
#   56|               "$systemdsystemconfdir/veritysetup.target.wants/*.target" \
#   57|               "$systemdsystemconfdir"/veritysetup-pre.target \

Error: SHELLCHECK_WARNING (CWE-457): [#def175]
/usr/lib/dracut/modules.d/12caps/module-setup.sh:18:33: warning[SC2154]: moddir is referenced but not assigned.
#   16|   install() {
#   17|       if ! dracut_module_included "systemd"; then
#   18|->         inst_hook pre-pivot 00 "$moddir/caps.sh"
#   19|           inst "$(find_binary capsh 2> /dev/null)" /usr/sbin/capsh
#   20|           # capsh wants bash and we need bash also

Error: SHELLCHECK_WARNING (CWE-457): [#def176]
/usr/lib/dracut/modules.d/13modsign/module-setup.sh:27:31: warning[SC2154]: moddir is referenced but not assigned.
#   25|       inst_binary keyctl
#   26|   
#   27|->     inst_hook pre-trigger 01 "$moddir/load-modsign-keys.sh"
#   28|   
#   29|       for x in "${dracutsysrootdir-}"/lib/modules/keys/*; do

Error: SHELLCHECK_WARNING (CWE-457): [#def177]
/usr/lib/dracut/modules.d/14watchdog-modules/module-setup.sh:28:17: warning[SC2154]: initdir is referenced but not assigned.
#   26|               IFS=,
#   27|               echo "${!_drivers[*]}"
#   28|->         )\"" > "${initdir}"/etc/cmdline.d/00-watchdog.conf
#   29|       fi
#   30|       return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def178]
/usr/lib/dracut/modules.d/14watchdog/module-setup.sh:22:31: warning[SC2154]: moddir is referenced but not assigned.
#   20|       # In that case, systemd will manage watchdog kick
#   21|       if ! dracut_module_included "systemd"; then
#   22|->         inst_hook cmdline 00 "$moddir/watchdog.sh"
#   23|           inst_hook cmdline 50 "$moddir/watchdog.sh"
#   24|           inst_hook pre-trigger 00 "$moddir/watchdog.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def179]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:31:15: warning[SC2154]: dbus is referenced but not assigned.
#   29|   
#   30|       # Create dbus related directories.
#   31|->     inst_dir "$dbus"
#   32|       inst_dir "$dbusinterfaces"
#   33|       inst_dir "$dbusservices"

Error: SHELLCHECK_WARNING (CWE-457): [#def180]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:32:15: warning[SC2154]: dbusinterfaces is referenced but not assigned.
#   30|       # Create dbus related directories.
#   31|       inst_dir "$dbus"
#   32|->     inst_dir "$dbusinterfaces"
#   33|       inst_dir "$dbusservices"
#   34|       inst_dir "$dbussession"

Error: SHELLCHECK_WARNING (CWE-457): [#def181]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:33:15: warning[SC2154]: dbusservices is referenced but not assigned.
#   31|       inst_dir "$dbus"
#   32|       inst_dir "$dbusinterfaces"
#   33|->     inst_dir "$dbusservices"
#   34|       inst_dir "$dbussession"
#   35|       inst_dir "$dbussystem"

Error: SHELLCHECK_WARNING (CWE-457): [#def182]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:34:15: warning[SC2154]: dbussession is referenced but not assigned.
#   32|       inst_dir "$dbusinterfaces"
#   33|       inst_dir "$dbusservices"
#   34|->     inst_dir "$dbussession"
#   35|       inst_dir "$dbussystem"
#   36|       inst_dir "$dbussystemservices"

Error: SHELLCHECK_WARNING (CWE-457): [#def183]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:35:15: warning[SC2154]: dbussystem is referenced but not assigned.
#   33|       inst_dir "$dbusservices"
#   34|       inst_dir "$dbussession"
#   35|->     inst_dir "$dbussystem"
#   36|       inst_dir "$dbussystemservices"
#   37|       inst_dir "$dbusconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def184]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:36:15: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   34|       inst_dir "$dbussession"
#   35|       inst_dir "$dbussystem"
#   36|->     inst_dir "$dbussystemservices"
#   37|       inst_dir "$dbusconfdir"
#   38|       inst_dir "$dbusinterfacesconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def185]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:37:15: warning[SC2154]: dbusconfdir is referenced but not assigned.
#   35|       inst_dir "$dbussystem"
#   36|       inst_dir "$dbussystemservices"
#   37|->     inst_dir "$dbusconfdir"
#   38|       inst_dir "$dbusinterfacesconfdir"
#   39|       inst_dir "$dbusservicesconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def186]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:38:15: warning[SC2154]: dbusinterfacesconfdir is referenced but not assigned.
#   36|       inst_dir "$dbussystemservices"
#   37|       inst_dir "$dbusconfdir"
#   38|->     inst_dir "$dbusinterfacesconfdir"
#   39|       inst_dir "$dbusservicesconfdir"
#   40|       inst_dir "$dbussessionconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def187]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:39:15: warning[SC2154]: dbusservicesconfdir is referenced but not assigned.
#   37|       inst_dir "$dbusconfdir"
#   38|       inst_dir "$dbusinterfacesconfdir"
#   39|->     inst_dir "$dbusservicesconfdir"
#   40|       inst_dir "$dbussessionconfdir"
#   41|       inst_dir "$dbussystemconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def188]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:40:15: warning[SC2154]: dbussessionconfdir is referenced but not assigned.
#   38|       inst_dir "$dbusinterfacesconfdir"
#   39|       inst_dir "$dbusservicesconfdir"
#   40|->     inst_dir "$dbussessionconfdir"
#   41|       inst_dir "$dbussystemconfdir"
#   42|       inst_dir "$dbussystemservicesconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def189]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:41:15: warning[SC2154]: dbussystemconfdir is referenced but not assigned.
#   39|       inst_dir "$dbusservicesconfdir"
#   40|       inst_dir "$dbussessionconfdir"
#   41|->     inst_dir "$dbussystemconfdir"
#   42|       inst_dir "$dbussystemservicesconfdir"
#   43|   

Error: SHELLCHECK_WARNING (CWE-457): [#def190]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:42:15: warning[SC2154]: dbussystemservicesconfdir is referenced but not assigned.
#   40|       inst_dir "$dbussessionconfdir"
#   41|       inst_dir "$dbussystemconfdir"
#   42|->     inst_dir "$dbussystemservicesconfdir"
#   43|   
#   44|       inst_sysusers dbus.conf

Error: SHELLCHECK_WARNING (CWE-457): [#def191]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:52:10: warning[SC2154]: systemdcatalog is referenced but not assigned.
#   50|           "$dbusservicesconfdir"/org.freedesktop.systemd1.service \
#   51|           "$dbussystemservices"/org.freedesktop.systemd1.service \
#   52|->         "$systemdcatalog"/dbus-broker.catalog \
#   53|           "$systemdcatalog"/dbus-broker-launch.catalog \
#   54|           "$systemdsystemunitdir"/dbus-broker.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def192]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:54:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   52|           "$systemdcatalog"/dbus-broker.catalog \
#   53|           "$systemdcatalog"/dbus-broker-launch.catalog \
#   54|->         "$systemdsystemunitdir"/dbus-broker.service \
#   55|           "$systemduser"/dbus-broker.service \
#   56|           "$systemdsystemunitdir"/dbus.socket \

Error: SHELLCHECK_WARNING (CWE-457): [#def193]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:55:10: warning[SC2154]: systemduser is referenced but not assigned.
#   53|           "$systemdcatalog"/dbus-broker-launch.catalog \
#   54|           "$systemdsystemunitdir"/dbus-broker.service \
#   55|->         "$systemduser"/dbus-broker.service \
#   56|           "$systemdsystemunitdir"/dbus.socket \
#   57|           "$systemduser"/dbus.socket \

Error: SHELLCHECK_WARNING (CWE-457): [#def194]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:69:10: warning[SC2154]: initdir is referenced but not assigned.
#   67|           Before=shutdown.target
#   68|           /^\[Socket\]/aRemoveOnStop=yes' \
#   69|->         "$initdir$systemdsystemunitdir/dbus.socket"
#   70|   
#   71|       $SYSTEMCTL -q --root "$initdir" enable dbus-broker.service

Error: SHELLCHECK_WARNING (CWE-457): [#def195]
/usr/lib/dracut/modules.d/16dbus-broker/module-setup.sh:78:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   76|               "$dbusconfdir"/session.conf \
#   77|               "$dbusconfdir"/system.conf \
#   78|->             "$systemdsystemconfdir"/dbus.socket \
#   79|               "$systemdsystemconfdir"/dbus.socket.d/*.conf \
#   80|               "$systemdsystemconfdir"/dbus-broker.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def196]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:35:15: warning[SC2154]: dbus is referenced but not assigned.
#   33|   
#   34|       # Create dbus related directories.
#   35|->     inst_dir "$dbus"
#   36|       inst_dir "$dbusinterfaces"
#   37|       inst_dir "$dbusservices"

Error: SHELLCHECK_WARNING (CWE-457): [#def197]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:36:15: warning[SC2154]: dbusinterfaces is referenced but not assigned.
#   34|       # Create dbus related directories.
#   35|       inst_dir "$dbus"
#   36|->     inst_dir "$dbusinterfaces"
#   37|       inst_dir "$dbusservices"
#   38|       inst_dir "$dbussession"

Error: SHELLCHECK_WARNING (CWE-457): [#def198]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:37:15: warning[SC2154]: dbusservices is referenced but not assigned.
#   35|       inst_dir "$dbus"
#   36|       inst_dir "$dbusinterfaces"
#   37|->     inst_dir "$dbusservices"
#   38|       inst_dir "$dbussession"
#   39|       inst_dir "$dbussystem"

Error: SHELLCHECK_WARNING (CWE-457): [#def199]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:38:15: warning[SC2154]: dbussession is referenced but not assigned.
#   36|       inst_dir "$dbusinterfaces"
#   37|       inst_dir "$dbusservices"
#   38|->     inst_dir "$dbussession"
#   39|       inst_dir "$dbussystem"
#   40|       inst_dir "$dbussystemservices"

Error: SHELLCHECK_WARNING (CWE-457): [#def200]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:39:15: warning[SC2154]: dbussystem is referenced but not assigned.
#   37|       inst_dir "$dbusservices"
#   38|       inst_dir "$dbussession"
#   39|->     inst_dir "$dbussystem"
#   40|       inst_dir "$dbussystemservices"
#   41|       inst_dir "$dbusconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def201]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:40:15: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   38|       inst_dir "$dbussession"
#   39|       inst_dir "$dbussystem"
#   40|->     inst_dir "$dbussystemservices"
#   41|       inst_dir "$dbusconfdir"
#   42|       inst_dir "$dbusinterfacesconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def202]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:41:15: warning[SC2154]: dbusconfdir is referenced but not assigned.
#   39|       inst_dir "$dbussystem"
#   40|       inst_dir "$dbussystemservices"
#   41|->     inst_dir "$dbusconfdir"
#   42|       inst_dir "$dbusinterfacesconfdir"
#   43|       inst_dir "$dbusservicesconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def203]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:42:15: warning[SC2154]: dbusinterfacesconfdir is referenced but not assigned.
#   40|       inst_dir "$dbussystemservices"
#   41|       inst_dir "$dbusconfdir"
#   42|->     inst_dir "$dbusinterfacesconfdir"
#   43|       inst_dir "$dbusservicesconfdir"
#   44|       inst_dir "$dbussessionconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def204]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:43:15: warning[SC2154]: dbusservicesconfdir is referenced but not assigned.
#   41|       inst_dir "$dbusconfdir"
#   42|       inst_dir "$dbusinterfacesconfdir"
#   43|->     inst_dir "$dbusservicesconfdir"
#   44|       inst_dir "$dbussessionconfdir"
#   45|       inst_dir "$dbussystemconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def205]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:44:15: warning[SC2154]: dbussessionconfdir is referenced but not assigned.
#   42|       inst_dir "$dbusinterfacesconfdir"
#   43|       inst_dir "$dbusservicesconfdir"
#   44|->     inst_dir "$dbussessionconfdir"
#   45|       inst_dir "$dbussystemconfdir"
#   46|       inst_dir "$dbussystemservicesconfdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def206]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:45:15: warning[SC2154]: dbussystemconfdir is referenced but not assigned.
#   43|       inst_dir "$dbusservicesconfdir"
#   44|       inst_dir "$dbussessionconfdir"
#   45|->     inst_dir "$dbussystemconfdir"
#   46|       inst_dir "$dbussystemservicesconfdir"
#   47|   

Error: SHELLCHECK_WARNING (CWE-457): [#def207]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:46:15: warning[SC2154]: dbussystemservicesconfdir is referenced but not assigned.
#   44|       inst_dir "$dbussessionconfdir"
#   45|       inst_dir "$dbussystemconfdir"
#   46|->     inst_dir "$dbussystemservicesconfdir"
#   47|   
#   48|       inst_multiple -o \

Error: SHELLCHECK_WARNING (CWE-457): [#def208]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:53:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   51|           "$dbusservicesconfdir"/org.freedesktop.systemd1.service \
#   52|           "$dbussystemservices"/org.freedesktop.systemd1.service \
#   53|->         "$systemdsystemunitdir"/dbus.service \
#   54|           "$systemdsystemunitdir"/dbus.socket \
#   55|           "$systemdsystemunitdir"/dbus.target.wants \

Error: SHELLCHECK_WARNING (CWE-457): [#def209]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:65:10: warning[SC2154]: initdir is referenced but not assigned.
#   63|           Conflicts=shutdown.target\
#   64|           Before=shutdown.target' \
#   65|->         "$initdir$systemdsystemunitdir/dbus.service"
#   66|   
#   67|       # Adjusting dependencies for initramfs in the dbus socket unit.

Error: SHELLCHECK_WARNING (CWE-457): [#def210]
/usr/lib/dracut/modules.d/16dbus-daemon/module-setup.sh:83:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   81|           inst_multiple -H -o \
#   82|               "$dbusconfdir"/system.conf \
#   83|->             "$systemdsystemconfdir"/dbus.socket \
#   84|               "$systemdsystemconfdir"/dbus.socket.d/*.conf \
#   85|               "$systemdsystemconfdir"/dbus.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def211]
/usr/lib/dracut/modules.d/16rngd/module-setup.sh:24:12: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   22|       # if there's no rngd binary, no go.
#   23|       require_binaries rngd || return 1
#   24|->     [[ -e "${systemdsystemunitdir}/rngd.service" ]] || return 1
#   25|   
#   26|       return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def212]
/usr/lib/dracut/modules.d/16rngd/module-setup.sh:39:22: warning[SC2154]: moddir is referenced but not assigned.
#   37|   
#   38|       if [ -r /etc/sysconfig/rngd ]; then
#   39|->         inst_simple "${moddir}/sysconfig" "/etc/sysconfig/rngd"
#   40|       fi
#   41|   

Error: SHELLCHECK_WARNING (CWE-457): [#def213]
/usr/lib/dracut/modules.d/16rngd/module-setup.sh:45:27: warning[SC2154]: initdir is referenced but not assigned.
#   43|       inst_libdir_file opensc-pkcs11.so
#   44|   
#   45|->     $SYSTEMCTL -q --root "$initdir" add-wants sysinit.target rngd.service
#   46|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def214]
/usr/lib/dracut/modules.d/20i18n/console_init.sh:5:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#    3|   [ -n "${DRACUT_SYSTEMD-}" ] && exit 0
#    4|   
#    5|-> if [ -x "$systemdutildir"/systemd-vconsole-setup ]; then
#    6|       "$systemdutildir"/systemd-vconsole-setup "$@"
#    7|   fi

Error: SHELLCHECK_WARNING: [#def215]
/usr/lib/dracut/modules.d/20i18n/console_init.sh:15:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   13|   
#   14|   set_keyboard() {
#   15|->     local param
#   16|   
#   17|       [ "${UNICODE}" = 1 ] && param=-u || param=-a

Error: SHELLCHECK_WARNING: [#def216]
/usr/lib/dracut/modules.d/20i18n/console_init.sh:22:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   20|   
#   21|   set_terminal() {
#   22|->     local dev="$1"
#   23|   
#   24|       if [ "${UNICODE}" = 1 ]; then

Error: SHELLCHECK_WARNING: [#def217]
/usr/lib/dracut/modules.d/20i18n/console_init.sh:34:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   32|   
#   33|   set_keymap() {
#   34|->     local utf_switch
#   35|   
#   36|       if [ -z "${KEYMAP}" ]; then

Error: SHELLCHECK_WARNING: [#def218]
/usr/lib/dracut/modules.d/20i18n/console_init.sh:61:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   59|   
#   60|   dev_open() {
#   61|->     local dev="$1"
#   62|   
#   63|       exec 6< "${dev}" \

Error: SHELLCHECK_WARNING (CWE-457): [#def219]
/usr/lib/dracut/modules.d/20i18n/module-setup.sh:129:25: warning[SC2154]: initdir is referenced but not assigned.
#  127|               inst_dir /usr/share
#  128|               for _src in "${KBDSUBDIRS[@]}"; do
#  129|->                 [ ! -e "${initdir}/usr/share/${_src}" ] && ln -s "${kbddir}/${_src}" "${initdir}/usr/share/${_src}"
#  130|               done
#  131|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def220]
/usr/lib/dracut/modules.d/20i18n/module-setup.sh:139:43: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#  137|               inst_rules 90-vconsole.rules
#  138|   
#  139|->             if [[ -e "${dracutsysrootdir-}$systemdsystemunitdir"/systemd-vconsole-setup.service ]]; then
#  140|                   inst_multiple -o \
#  141|                       "$systemdutildir"/systemd-vconsole-setup \

Error: SHELLCHECK_WARNING (CWE-457): [#def221]
/usr/lib/dracut/modules.d/20i18n/module-setup.sh:141:22: warning[SC2154]: systemdutildir is referenced but not assigned.
#  139|               if [[ -e "${dracutsysrootdir-}$systemdsystemunitdir"/systemd-vconsole-setup.service ]]; then
#  140|                   inst_multiple -o \
#  141|->                     "$systemdutildir"/systemd-vconsole-setup \
#  142|                       "$systemdsystemunitdir"/systemd-vconsole-setup.service \
#  143|                       "$systemdsystemunitdir"/sysinit.target.wants/systemd-vconsole-setup.service

Error: SHELLCHECK_WARNING (CWE-457): [#def222]
/usr/lib/dracut/modules.d/20i18n/module-setup.sh:146:19: warning[SC2154]: moddir is referenced but not assigned.
#  144|               fi
#  145|           else
#  146|->             inst "${moddir}"/console_init.sh /lib/udev/console_init
#  147|               inst_rules "${moddir}"/10-console.rules
#  148|               inst_hook cmdline 20 "${moddir}/parse-i18n.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def223]
/usr/lib/dracut/modules.d/20i18n/module-setup.sh:312:39: warning[SC2154]: i18n_install_all is referenced but not assigned.
#  310|           install_base
#  311|   
#  312|->         if [[ ${hostonly-} ]] && ! [[ ${i18n_install_all} == "yes" ]]; then
#  313|               install_local_i18n || install_all_kbd
#  314|           else

Error: SHELLCHECK_WARNING: [#def224]
/usr/lib/dracut/modules.d/20i18n/parse-i18n.sh:4:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    2|   
#    3|   inst_key_val() {
#    4|->     local _value
#    5|       local _file
#    6|       local _default

Error: SHELLCHECK_WARNING: [#def225]
/usr/lib/dracut/modules.d/20i18n/parse-i18n.sh:5:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    3|   inst_key_val() {
#    4|       local _value
#    5|->     local _file
#    6|       local _default
#    7|       _file="$1"

Error: SHELLCHECK_WARNING: [#def226]
/usr/lib/dracut/modules.d/20i18n/parse-i18n.sh:6:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    4|       local _value
#    5|       local _file
#    6|->     local _default
#    7|       _file="$1"
#    8|       shift

Error: SHELLCHECK_WARNING (CWE-457): [#def227]
/usr/lib/dracut/modules.d/30convertfs/convertfs.sh:91:6: warning[SC2154]: ret is referenced but not assigned.
#   89|   }
#   90|   
#   91|-> trap 'ret=$?; [[ $ret -ne 0 ]] && cleanup;exit $ret;' EXIT
#   92|   trap 'exit 1;' SIGINT
#   93|   

Error: SHELLCHECK_WARNING (CWE-457): [#def228]
/usr/lib/dracut/modules.d/30convertfs/module-setup.sh:17:29: warning[SC2154]: moddir is referenced but not assigned.
#   15|   install() {
#   16|       inst_multiple bash find ldconfig mv rm cp ln
#   17|->     inst_hook pre-pivot 99 "$moddir/do-convertfs.sh"
#   18|       inst_script "$moddir/convertfs.sh" /usr/bin/convertfs
#   19|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def229]
/usr/lib/dracut/modules.d/35connman/cm-lib.sh:7:39: warning[SC2154]: hookdir is referenced but not assigned.
#    5|   cm_generate_connections() {
#    6|       if getargbool 0 rd.neednet; then
#    7|->         echo '[ -f /tmp/cm.done ]' > "$hookdir"/initqueue/finished/cm.sh
#    8|           mkdir -p /run/connman/initrd
#    9|           : > /run/connman/initrd/neednet # activate ConnMan services

Error: SHELLCHECK_WARNING (CWE-457): [#def230]
/usr/lib/dracut/modules.d/35connman/module-setup.sh:26:11: warning[SC2154]: dbussystem is referenced but not assigned.
#   24|       inst connmanctl
#   25|       inst connmand-wait-online
#   26|->     inst "$dbussystem"/connman.conf
#   27|       [[ ${hostonly-} ]] && [[ -f ${dracutsysrootdir-}/etc/connman/main.conf ]] && inst /etc/connman/main.conf
#   28|       inst_dir /usr/lib/connman/plugins

Error: SHELLCHECK_WARNING (CWE-457): [#def231]
/usr/lib/dracut/modules.d/35connman/module-setup.sh:31:27: warning[SC2154]: moddir is referenced but not assigned.
#   29|       inst_dir /var/lib/connman
#   30|   
#   31|->     inst_hook cmdline 99 "$moddir/cm-config.sh"
#   32|   
#   33|       inst_simple "$moddir"/cm-initrd.service "$systemdsystemunitdir"/cm-initrd.service

Error: SHELLCHECK_WARNING (CWE-457): [#def232]
/usr/lib/dracut/modules.d/35connman/module-setup.sh:33:46: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   31|       inst_hook cmdline 99 "$moddir/cm-config.sh"
#   32|   
#   33|->     inst_simple "$moddir"/cm-initrd.service "$systemdsystemunitdir"/cm-initrd.service
#   34|       inst_simple "$moddir"/cm-wait-online-initrd.service "$systemdsystemunitdir"/cm-wait-online-initrd.service
#   35|   

Error: SHELLCHECK_WARNING (CWE-457): [#def233]
/usr/lib/dracut/modules.d/35connman/module-setup.sh:36:27: warning[SC2154]: initdir is referenced but not assigned.
#   34|       inst_simple "$moddir"/cm-wait-online-initrd.service "$systemdsystemunitdir"/cm-wait-online-initrd.service
#   35|   
#   36|->     $SYSTEMCTL -q --root "$initdir" enable cm-initrd.service
#   37|   
#   38|       inst_hook initqueue/settled 99 "$moddir/cm-run.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def234]
/usr/lib/dracut/modules.d/35network-manager/module-setup.sh:39:27: warning[SC2154]: moddir is referenced but not assigned.
#   37|       inst_multiple -o /usr/{lib,libexec}/nm-daemon-helper
#   38|       inst_multiple -o teamd dhclient nft
#   39|->     inst_hook cmdline 99 "$moddir/nm-config.sh"
#   40|       if dracut_module_included "systemd"; then
#   41|   

Error: SHELLCHECK_WARNING (CWE-457): [#def235]
/usr/lib/dracut/modules.d/35network-manager/module-setup.sh:42:15: warning[SC2154]: dbussystem is referenced but not assigned.
#   40|       if dracut_module_included "systemd"; then
#   41|   
#   42|->         inst "$dbussystem"/org.freedesktop.NetworkManager.conf
#   43|           inst_multiple nmcli nm-online
#   44|   

Error: SHELLCHECK_WARNING (CWE-457): [#def236]
/usr/lib/dracut/modules.d/35network-manager/module-setup.sh:48:14: warning[SC2154]: dbussystemconfdir is referenced but not assigned.
#   46|           inst_multiple -o \
#   47|               "$dbussystem"/teamd.conf \
#   48|->             "$dbussystemconfdir"/teamd.conf
#   49|   
#   50|           # Install a configuration snippet to prevent the automatic creation of

Error: SHELLCHECK_WARNING (CWE-457): [#def237]
/usr/lib/dracut/modules.d/35network-manager/module-setup.sh:55:19: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   53|   
#   54|           # Install systemd service units
#   55|->         if [[ -e "$systemdsystemunitdir"/NetworkManager-config-initrd.service ]]; then
#   56|               # NetworkManager-1.54 provides its own initrd services
#   57|               inst_multiple -o \

Error: SHELLCHECK_WARNING (CWE-457): [#def238]
/usr/lib/dracut/modules.d/35network-manager/module-setup.sh:68:35: warning[SC2154]: initdir is referenced but not assigned.
#   66|                   "$systemdsystemunitdir/NetworkManager-wait-online-initrd.service.d/NetworkManager-wait-online-initrd-dracut.conf"
#   67|   
#   68|->             $SYSTEMCTL -q --root "$initdir" enable NetworkManager-initrd.service
#   69|           else
#   70|               #TODO: remove custom systemd services when NetworkManager-1.54 is the minimum supported version

Error: SHELLCHECK_WARNING (CWE-457): [#def239]
/usr/lib/dracut/modules.d/35network-manager/module-setup.sh:79:14: warning[SC2154]: systemdnetwork is referenced but not assigned.
#   77|           # Adding default link and (if exists) 98-default-mac-none.link
#   78|           inst_multiple -o \
#   79|->             "${systemdnetwork}/99-default.link" \
#   80|               "${systemdnetwork}/98-default-mac-none.link"
#   81|           [[ ${hostonly-} ]] && inst_multiple -H -o "${systemdnetworkconfdir}/*.link"

Error: SHELLCHECK_WARNING (CWE-457): [#def240]
/usr/lib/dracut/modules.d/35network-manager/module-setup.sh:81:52: warning[SC2154]: systemdnetworkconfdir is referenced but not assigned.
#   79|               "${systemdnetwork}/99-default.link" \
#   80|               "${systemdnetwork}/98-default-mac-none.link"
#   81|->         [[ ${hostonly-} ]] && inst_multiple -H -o "${systemdnetworkconfdir}/*.link"
#   82|       fi
#   83|   

Error: SHELLCHECK_WARNING (CWE-457): [#def241]
/usr/lib/dracut/modules.d/35network-manager/nm-lib.sh:26:47: warning[SC2154]: hookdir is referenced but not assigned.
#   24|                   /etc/sysconfig/network-scripts/ifcfg-*; do
#   25|                   [ -f "$i" ] || continue
#   26|->                 echo '[ -f /tmp/nm.done ]' > "$hookdir"/initqueue/finished/nm.sh
#   27|                   mkdir -p /run/NetworkManager/initrd
#   28|                   : > /run/NetworkManager/initrd/neednet # activate NM services

Error: SHELLCHECK_WARNING (CWE-457): [#def242]
/usr/lib/dracut/modules.d/40network/module-setup.sh:22:38: warning[SC2154]: omit_dracutmodules is referenced but not assigned.
#   20|           # install the first viable module, unless there omitted
#   21|           module_check $module > /dev/null 2>&1
#   22|->         if [[ $? == 255 ]] && ! [[ " $omit_dracutmodules " == *\ $module\ * ]] && check_module "$module"; then
#   23|               echo "$module"
#   24|               return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def243]
/usr/lib/dracut/modules.d/45net-lib/dhcp-root.sh:29:52: warning[SC2154]: hookdir is referenced but not assigned.
#   27|       [ -z "$root" ] && root="dhcp"
#   28|       # shellcheck disable=SC2016
#   29|->     echo '[ -d $NEWROOT/proc -o -e /dev/root ]' > "$hookdir"/initqueue/finished/dhcp.sh
#   30|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def244]
/usr/lib/dracut/modules.d/45net-lib/ifname-genrules.sh:14:30: warning[SC2154]: ifname_mac is referenced but not assigned.
#   12|           parse_ifname_opts "$p"
#   13|   
#   14|->         if [ -f /tmp/ifname-"$ifname_mac" ]; then
#   15|               read -r oldif < /tmp/ifname-"$ifname_mac"
#   16|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def245]
/usr/lib/dracut/modules.d/45net-lib/ifname-genrules.sh:17:30: warning[SC2154]: ifname_if is referenced but not assigned.
#   15|               read -r oldif < /tmp/ifname-"$ifname_mac"
#   16|           fi
#   17|->         if [ -f /tmp/ifname-"$ifname_if" ]; then
#   18|               read -r oldmac < /tmp/ifname-"$ifname_if"
#   19|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def246]
/usr/lib/dracut/modules.d/45net-lib/module-setup.sh:14:18: warning[SC2154]: moddir is referenced but not assigned.
#   12|   
#   13|   install() {
#   14|->     inst_script "$moddir/netroot.sh" "/sbin/netroot"
#   15|       inst_simple "$moddir/net-lib.sh" "/lib/net-lib.sh"
#   16|       inst_hook pre-udev 50 "$moddir/ifname-genrules.sh"

Error: SHELLCHECK_WARNING: [#def247]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:19:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   17|   
#   18|   get_ip() {
#   19|->     local iface="$1" ip=""
#   20|       ip=$(ip -f inet addr show "$iface")
#   21|       ip=${ip%%/*}

Error: SHELLCHECK_WARNING: [#def248]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:39:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   37|   
#   38|   iface_for_mac() {
#   39|->     local interface=""
#   40|       local mac
#   41|       mac="$(echo "$@" | sed 'y/ABCDEF/abcdef/')"

Error: SHELLCHECK_WARNING: [#def249]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:40:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   38|   iface_for_mac() {
#   39|       local interface=""
#   40|->     local mac
#   41|       mac="$(echo "$@" | sed 'y/ABCDEF/abcdef/')"
#   42|       for interface in /sys/class/net/*; do

Error: SHELLCHECK_WARNING: [#def250]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:60:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   58|   # list the configured interfaces
#   59|   configured_ifaces() {
#   60|->     local IFACES="" iface_id="" rv=1
#   61|       [ -e "/tmp/net.ifaces" ] && read -r IFACES < /tmp/net.ifaces
#   62|       if { pidof udevd || pidof systemd-udevd; } > /dev/null; then

Error: SHELLCHECK_WARNING: [#def251]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:76:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   74|   
#   75|   all_ifaces_up() {
#   76|->     local iface="" IFACES=""
#   77|       [ -e "/tmp/net.ifaces" ] && read -r IFACES < /tmp/net.ifaces
#   78|       for iface in $IFACES; do

Error: SHELLCHECK_WARNING: [#def252]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:84:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   82|   
#   83|   all_ifaces_setup() {
#   84|->     local iface="" IFACES=""
#   85|       [ -e "/tmp/net.ifaces" ] && read -r IFACES < /tmp/net.ifaces
#   86|       for iface in $IFACES; do

Error: SHELLCHECK_WARNING: [#def253]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:92:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   90|   
#   91|   get_netroot_ip() {
#   92|->     local prefix="" server="" rest=""
#   93|       splitsep ":" "$1" prefix server rest
#   94|       case $server in

Error: SHELLCHECK_WARNING: [#def254]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:112:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  110|   
#  111|   ifdown() {
#  112|->     local netif="$1"
#  113|       # ip down/flush ensures that routing info goes away as well
#  114|       ip link set "$netif" down

Error: SHELLCHECK_WARNING: [#def255]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:125:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  123|   
#  124|   setup_net() {
#  125|->     local netif="$1" f="" gw_ip="" netroot_ip="" iface="" IFACES=""
#  126|       local _p
#  127|       [ -e /tmp/net."$netif".did-setup ] && return

Error: SHELLCHECK_WARNING: [#def256]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:126:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  124|   setup_net() {
#  125|       local netif="$1" f="" gw_ip="" netroot_ip="" iface="" IFACES=""
#  126|->     local _p
#  127|       [ -e /tmp/net."$netif".did-setup ] && return
#  128|       [ -z "$DO_VLAN" ] \

Error: SHELLCHECK_WARNING (CWE-457): [#def257]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:178:34: warning[SC2154]: netroot is referenced but not assigned.
#  176|   
#  177|       # Get the "netroot" IP (if there's an IP address in there)
#  178|->     netroot_ip=$(get_netroot_ip "$netroot")
#  179|   
#  180|       # try netroot if it's local (or there's no gateway)

Error: SHELLCHECK_WARNING: [#def258]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:208:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  206|   
#  207|   save_netinfo() {
#  208|->     local netif="$1" IFACES="" f="" i=""
#  209|       [ -e /tmp/net.ifaces ] && read -r IFACES < /tmp/net.ifaces
#  210|       # Add $netif to the front of IFACES (if it's not there already).

Error: SHELLCHECK_WARNING: [#def259]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:224:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  222|   
#  223|   set_ifname() {
#  224|->     local name="$1" mac="$2" num=-1 n=""
#  225|       # if it's already set, return the existing name
#  226|       for n in $(getargs ifname=); do

Error: SHELLCHECK_WARNING: [#def260]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:246:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  244|   # pxelinux provides macaddr '-' separated, but we need ':'
#  245|   fix_bootif() {
#  246|->     local macaddr="${1}"
#  247|       local IFS='-'
#  248|       # shellcheck disable=SC2086

Error: SHELLCHECK_WARNING: [#def261]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:247:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  245|   fix_bootif() {
#  246|       local macaddr="${1}"
#  247|->     local IFS='-'
#  248|       # shellcheck disable=SC2086
#  249|       macaddr=$(printf '%s:' ${macaddr})

Error: SHELLCHECK_WARNING: [#def262]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:258:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  256|   
#  257|   ibft_to_cmdline() {
#  258|->     local iface=""
#  259|       modprobe -q iscsi_ibft
#  260|       (

Error: SHELLCHECK_WARNING: [#def263]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:262:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  260|       (
#  261|           for iface in /sys/firmware/ibft/ethernet*; do
#  262|->             local mac="" dev=""
#  263|               local dhcp="" ip="" gw="" mask="" hostname=""
#  264|               local dns1 dns2

Error: SHELLCHECK_WARNING: [#def264]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:263:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  261|           for iface in /sys/firmware/ibft/ethernet*; do
#  262|               local mac="" dev=""
#  263|->             local dhcp="" ip="" gw="" mask="" hostname=""
#  264|               local dns1 dns2
#  265|   

Error: SHELLCHECK_WARNING: [#def265]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:264:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  262|               local mac="" dev=""
#  263|               local dhcp="" ip="" gw="" mask="" hostname=""
#  264|->             local dns1 dns2
#  265|   
#  266|               [ -e "${iface}"/mac ] || continue

Error: SHELLCHECK_WARNING: [#def266]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:362:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  360|   
#  361|   parse_iscsi_root() {
#  362|->     local v
#  363|       v=${1#iscsi:}
#  364|   

Error: SHELLCHECK_WARNING: [#def267]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:469:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  467|   
#  468|   ip_to_var() {
#  469|->     local v="${1}":
#  470|       local i
#  471|       set --

Error: SHELLCHECK_WARNING: [#def268]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:470:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  468|   ip_to_var() {
#  469|       local v="${1}":
#  470|->     local i
#  471|       set --
#  472|       while [ -n "$v" ]; do

Error: SHELLCHECK_WARNING: [#def269]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:567:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  565|   
#  566|   route_to_var() {
#  567|->     local v="${1}":
#  568|       local i
#  569|       set --

Error: SHELLCHECK_WARNING: [#def270]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:568:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  566|   route_to_var() {
#  567|       local v="${1}":
#  568|->     local i
#  569|       set --
#  570|       while [ -n "$v" ]; do

Error: SHELLCHECK_WARNING: [#def271]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:601:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  599|   
#  600|   parse_ifname_opts() {
#  601|->     local IFS=:
#  602|       # shellcheck disable=SC2086
#  603|       set -- $1

Error: SHELLCHECK_WARNING: [#def272]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:634:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  632|   # some network driver need long time to initialize, wait before it's ready.
#  633|   wait_for_if_link() {
#  634|->     local cnt=0
#  635|       local li
#  636|       local timeout

Error: SHELLCHECK_WARNING: [#def273]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:635:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  633|   wait_for_if_link() {
#  634|       local cnt=0
#  635|->     local li
#  636|       local timeout
#  637|       timeout=$(getargs rd.net.timeout.iflink=)

Error: SHELLCHECK_WARNING: [#def274]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:636:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  634|       local cnt=0
#  635|       local li
#  636|->     local timeout
#  637|       timeout=$(getargs rd.net.timeout.iflink=)
#  638|       timeout=${timeout:-60}

Error: SHELLCHECK_WARNING: [#def275]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:651:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  649|   
#  650|   wait_for_if_up() {
#  651|->     local cnt=0
#  652|       local li
#  653|       local timeout

Error: SHELLCHECK_WARNING: [#def276]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:652:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  650|   wait_for_if_up() {
#  651|       local cnt=0
#  652|->     local li
#  653|       local timeout
#  654|       timeout=$(getargs rd.net.timeout.ifup=)

Error: SHELLCHECK_WARNING: [#def277]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:653:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  651|       local cnt=0
#  652|       local li
#  653|->     local timeout
#  654|       timeout=$(getargs rd.net.timeout.ifup=)
#  655|       timeout=${timeout:-20}

Error: SHELLCHECK_WARNING: [#def278]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:685:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  683|   
#  684|   wait_for_route_ok() {
#  685|->     local cnt=0
#  686|       local timeout
#  687|       timeout=$(getargs rd.net.timeout.route=)

Error: SHELLCHECK_WARNING: [#def279]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:686:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  684|   wait_for_route_ok() {
#  685|       local cnt=0
#  686|->     local timeout
#  687|       timeout=$(getargs rd.net.timeout.route=)
#  688|       timeout=${timeout:-20}

Error: SHELLCHECK_WARNING: [#def280]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:701:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  699|   
#  700|   wait_for_ipv6_dad_link() {
#  701|->     local cnt=0
#  702|       local timeout
#  703|       timeout=$(getargs rd.net.timeout.ipv6dad=)

Error: SHELLCHECK_WARNING: [#def281]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:702:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  700|   wait_for_ipv6_dad_link() {
#  701|       local cnt=0
#  702|->     local timeout
#  703|       timeout=$(getargs rd.net.timeout.ipv6dad=)
#  704|       timeout=${timeout:-50}

Error: SHELLCHECK_WARNING: [#def282]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:720:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  718|   
#  719|   wait_for_ipv6_dad() {
#  720|->     local cnt=0
#  721|       local timeout
#  722|       timeout=$(getargs rd.net.timeout.ipv6dad=)

Error: SHELLCHECK_WARNING: [#def283]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:721:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  719|   wait_for_ipv6_dad() {
#  720|       local cnt=0
#  721|->     local timeout
#  722|       timeout=$(getargs rd.net.timeout.ipv6dad=)
#  723|       timeout=${timeout:-50}

Error: SHELLCHECK_WARNING: [#def284]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:739:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  737|   
#  738|   wait_for_ipv6_auto() {
#  739|->     local cnt=0
#  740|       local timeout
#  741|       timeout=$(getargs rd.net.timeout.ipv6auto=)

Error: SHELLCHECK_WARNING: [#def285]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:740:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  738|   wait_for_ipv6_auto() {
#  739|       local cnt=0
#  740|->     local timeout
#  741|       timeout=$(getargs rd.net.timeout.ipv6auto=)
#  742|       timeout=${timeout:-40}

Error: SHELLCHECK_WARNING: [#def286]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:765:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  763|   
#  764|   iface_has_carrier() {
#  765|->     local cnt=0
#  766|       local iface="$1" flags=""
#  767|       local timeout

Error: SHELLCHECK_WARNING: [#def287]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:766:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  764|   iface_has_carrier() {
#  765|       local cnt=0
#  766|->     local iface="$1" flags=""
#  767|       local timeout
#  768|       local iface_sys_path

Error: SHELLCHECK_WARNING: [#def288]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:767:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  765|       local cnt=0
#  766|       local iface="$1" flags=""
#  767|->     local timeout
#  768|       local iface_sys_path
#  769|       [ -n "$iface" ] || return 2

Error: SHELLCHECK_WARNING: [#def289]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:768:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  766|       local iface="$1" flags=""
#  767|       local timeout
#  768|->     local iface_sys_path
#  769|       [ -n "$iface" ] || return 2
#  770|       iface_sys_path="/sys/class/net/$iface"

Error: SHELLCHECK_WARNING: [#def290]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:803:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  801|   
#  802|   iface_is_enslaved() {
#  803|->     local _li
#  804|       _li=$(ip link show dev "$@")
#  805|       strstr "$_li" " master " || return 1

Error: SHELLCHECK_WARNING: [#def291]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:810:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  808|   
#  809|   find_iface_with_link() {
#  810|->     local iface_path="" iface=""
#  811|       for iface_path in /sys/class/net/*; do
#  812|           iface=${iface_path##*/}

Error: SHELLCHECK_WARNING: [#def292]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:823:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  821|   
#  822|   is_persistent_ethernet_name() {
#  823|->     local _netif="$1"
#  824|       local _name_assign_type="0"
#  825|   

Error: SHELLCHECK_WARNING: [#def293]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:824:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  822|   is_persistent_ethernet_name() {
#  823|       local _netif="$1"
#  824|->     local _name_assign_type="0"
#  825|   
#  826|       [ -f "/sys/class/net/$_netif/name_assign_type" ] \

Error: SHELLCHECK_WARNING: [#def294]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:858:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  856|   
#  857|   is_kernel_ethernet_name() {
#  858|->     local _netif="$1"
#  859|       local _name_assign_type="1"
#  860|   

Error: SHELLCHECK_WARNING: [#def295]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:859:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  857|   is_kernel_ethernet_name() {
#  858|       local _netif="$1"
#  859|->     local _name_assign_type="1"
#  860|   
#  861|       if [ -e "/sys/class/net/$_netif/name_assign_type" ]; then

Error: SHELLCHECK_WARNING: [#def296]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:891:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  889|   
#  890|   iface_get_subchannels() {
#  891|->     local _netif
#  892|       local _subchannels
#  893|   

Error: SHELLCHECK_WARNING: [#def297]
/usr/lib/dracut/modules.d/45net-lib/net-lib.sh:892:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  890|   iface_get_subchannels() {
#  891|       local _netif
#  892|->     local _subchannels
#  893|   
#  894|       _netif="$1"

Error: SHELLCHECK_WARNING (CWE-457): [#def298]
/usr/lib/dracut/modules.d/45net-lib/netroot.sh:54:19: warning[SC2154]: hookdir is referenced but not assigned.
#   52|           fi
#   53|   
#   54|->         rm -f -- "$hookdir"/initqueue/finished/dhcp.sh
#   55|   
#   56|           # Set netroot to new_root_path, so cmdline parsers don't call

Error: SHELLCHECK_WARNING (CWE-457): [#def299]
/usr/lib/dracut/modules.d/45plymouth/module-setup.sh:36:12: warning[SC2154]: moddir is referenced but not assigned.
#   34|           || [ ! -x "${dracutsysrootdir-}${PKGLIBDIR}"/plymouth-populate-initrd ]; then
#   35|           # shellcheck disable=SC1090
#   36|->         . "$moddir"/plymouth-populate-initrd.sh
#   37|       else
#   38|           PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="$dracutfunctions" \

Error: SHELLCHECK_WARNING (CWE-457): [#def300]
/usr/lib/dracut/modules.d/45plymouth/module-setup.sh:38:45: warning[SC2154]: dracutfunctions is referenced but not assigned.
#   36|           . "$moddir"/plymouth-populate-initrd.sh
#   37|       else
#   38|->         PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="$dracutfunctions" \
#   39|               "${dracutsysrootdir-}${PKGLIBDIR}"/plymouth-populate-initrd -t "$initdir" 2> /dev/null
#   40|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def301]
/usr/lib/dracut/modules.d/45plymouth/module-setup.sh:39:77: warning[SC2154]: initdir is referenced but not assigned.
#   37|       else
#   38|           PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="$dracutfunctions" \
#   39|->             "${dracutsysrootdir-}${PKGLIBDIR}"/plymouth-populate-initrd -t "$initdir" 2> /dev/null
#   40|       fi
#   41|   

Error: SHELLCHECK_WARNING (CWE-457): [#def302]
/usr/lib/dracut/modules.d/45plymouth/plymouth-populate-initrd.sh:11:19: warning[SC2154]: initdir is referenced but not assigned.
#    9|   
#   10|   # shellcheck disable=SC2174
#   11|-> mkdir -m 0755 -p "${initdir}/usr/share/plymouth"
#   12|   
#   13|   inst_libdir_file "plymouth/text.so" "plymouth/details.so"

Error: SHELLCHECK_WARNING (CWE-457): [#def303]
/usr/lib/dracut/modules.d/45simpledrm/module-setup.sh:13:11: warning[SC2154]: hostonly_mode is referenced but not assigned.
#   11|       hostonly='' instmods simpledrm =drivers/gpu/drm/panel
#   12|   
#   13|->     if [[ $hostonly_mode == "strict" ]]; then
#   14|           # if there is a privacy screen then its driver must be loaded before the
#   15|           # kms driver will bind, otherwise its probe() will return -EPROBE_DEFER

Error: SHELLCHECK_WARNING (CWE-457): [#def304]
/usr/lib/dracut/modules.d/45url-lib/module-setup.sh:19:18: warning[SC2154]: moddir is referenced but not assigned.
#   17|   install() {
#   18|       local _dir _crt _crts _found _lib _nssckbi _p11roots _p11root
#   19|->     inst_simple "$moddir/url-lib.sh" "/lib/url-lib.sh"
#   20|       inst_multiple -o ctorrent
#   21|       inst_multiple curl sed

Error: SHELLCHECK_WARNING (CWE-457): [#def305]
/usr/lib/dracut/modules.d/45url-lib/module-setup.sh:30:17: warning[SC2154]: libdirs is referenced but not assigned.
#   28|       fi
#   29|   
#   30|->     for _dir in $libdirs; do
#   31|           [[ -d ${dracutsysrootdir-}$_dir ]] || continue
#   32|           for _lib in "${dracutsysrootdir-}$_dir"/libcurl.so.* "${dracutsysrootdir-}$_dir"/libcrypto.so.*; do

Error: SHELLCHECK_WARNING (CWE-457): [#def306]
/usr/lib/dracut/modules.d/45url-lib/module-setup.sh:79:38: warning[SC2154]: initdir is referenced but not assigned.
#   77|                           # so now we know it's really a p11-kit trust dir;
#   78|                           # install everything in it
#   79|->                         mkdir -p -- "${initdir}/${_p11root}"
#   80|                           if ! $DRACUT_CP -L -t "${initdir}/${_p11root}" "${dracutsysrootdir-}${_p11root}"/*; then
#   81|                               dwarn "Couldn't install from p11-kit trust dir '${_p11root#"${dracutsysrootdir-}"}'; HTTPS might not work."

Error: SHELLCHECK_WARNING: [#def307]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:22:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   20|   #   other: fetch command failure (whatever curl/mount/etc return)
#   21|   fetch_url() {
#   22|->     local url="$1" outloc="$2"
#   23|       local handler
#   24|       handler="$(get_url_handler "$url")"

Error: SHELLCHECK_WARNING: [#def308]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:23:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   21|   fetch_url() {
#   22|       local url="$1" outloc="$2"
#   23|->     local handler
#   24|       handler="$(get_url_handler "$url")"
#   25|       [ -n "$handler" ] || return 254

Error: SHELLCHECK_WARNING: [#def309]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:33:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   31|   #   returns the first HANDLERNAME corresponding to the URL's scheme
#   32|   get_url_handler() {
#   33|->     local scheme="${1%%:*}" item=""
#   34|       for item in $url_handler_map; do
#   35|           [ "$scheme" = "${item%%:*}" ] && echo "${item#*:}" && return 0

Error: SHELLCHECK_WARNING: [#def310]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:43:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   41|   #   associate the named handler with the named scheme(s).
#   42|   add_url_handler() {
#   43|->     local handler="$1"
#   44|       shift
#   45|       local schemes="$*" scheme=""

Error: SHELLCHECK_WARNING: [#def311]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:45:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   43|       local handler="$1"
#   44|       shift
#   45|->     local schemes="$*" scheme=""
#   46|       set --
#   47|       for scheme in $schemes; do

Error: SHELLCHECK_WARNING: [#def312]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:66:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   64|   
#   65|   curl_fetch_url() {
#   66|->     local url="$1" outloc="$2"
#   67|       echo "$url" > /proc/self/fd/0
#   68|       if [ -n "$outloc" ]; then

Error: SHELLCHECK_WARNING: [#def313]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:72:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   70|           curl $curl_args --output "$outloc" -- "$url" || return $?
#   71|       else
#   72|->         local outdir
#   73|           outdir="$(mkuniqdir /tmp curl_fetch_url)"
#   74|           (

Error: SHELLCHECK_WARNING: [#def314]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:98:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   96|   
#   97|   ctorrent_fetch_url() {
#   98|->     local url="$1" outloc="$2"
#   99|       url=${url#*//}
#  100|       torrent_outloc="$outloc.torrent"

Error: SHELLCHECK_WARNING: [#def315]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:106:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  104|           curl $curl_args --output "$torrent_outloc" -- "$url" || return $?
#  105|       else
#  106|->         local outdir
#  107|           outdir="$(mkuniqdir /tmp torrent_fetch_url)"
#  108|           (

Error: SHELLCHECK_WARNING: [#def316]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:137:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  135|   
#  136|   nfs_already_mounted() {
#  137|->     local server="$1" path="$2" s="" p=""
#  138|       while read -r src mnt rest || [ -n "$src" ]; do
#  139|           splitsep ":" "$src" s p

Error: SHELLCHECK_WARNING: [#def317]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:152:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  150|   
#  151|   nfs_fetch_url() {
#  152|->     local url="$1" outloc="$2" nfs="" server="" path="" options=""
#  153|       nfs_to_var "$url" || return 255
#  154|       local filepath="${path%/*}" filename="${path##*/}" mntdir=""

Error: SHELLCHECK_WARNING: [#def318]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:154:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  152|       local url="$1" outloc="$2" nfs="" server="" path="" options=""
#  153|       nfs_to_var "$url" || return 255
#  154|->     local filepath="${path%/*}" filename="${path##*/}" mntdir=""
#  155|   
#  156|       # skip mount if server:/filepath is already mounted

Error: SHELLCHECK_WARNING: [#def319]
/usr/lib/dracut/modules.d/45url-lib/url-lib.sh:159:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  157|       mntdir=$(nfs_already_mounted "$server" "$filepath")
#  158|       if [ -z "$mntdir" ]; then
#  159|->         local mntdir
#  160|           mntdir="$(mkuniqdir /run nfs_mnt)"
#  161|           mount_nfs "$nfs:$server:$filepath${options:+:$options}" "$mntdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def320]
/usr/lib/dracut/modules.d/68lvmmerge/module-setup.sh:24:27: warning[SC2154]: moddir is referenced but not assigned.
#   22|   install() {
#   23|       inst_multiple dd swapoff
#   24|->     inst_hook cleanup 01 "$moddir/lvmmerge.sh"
#   25|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def321]
/usr/lib/dracut/modules.d/68lvmthinpool-monitor/module-setup.sh:20:18: warning[SC2154]: moddir is referenced but not assigned.
#   18|   install() {
#   19|       inst_multiple sort tr awk
#   20|->     inst_script "$moddir/start-thinpool-monitor.sh" "/bin/start-thinpool-monitor"
#   21|   
#   22|       inst "$moddir/start-thinpool-monitor.service" "$systemdsystemunitdir/start-thinpool-monitor.service"

Error: SHELLCHECK_WARNING (CWE-457): [#def322]
/usr/lib/dracut/modules.d/68lvmthinpool-monitor/module-setup.sh:22:52: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   20|       inst_script "$moddir/start-thinpool-monitor.sh" "/bin/start-thinpool-monitor"
#   21|   
#   22|->     inst "$moddir/start-thinpool-monitor.service" "$systemdsystemunitdir/start-thinpool-monitor.service"
#   23|       $SYSTEMCTL -q --root "$initdir" add-wants initrd.target start-thinpool-monitor.service
#   24|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def323]
/usr/lib/dracut/modules.d/68lvmthinpool-monitor/module-setup.sh:23:27: warning[SC2154]: initdir is referenced but not assigned.
#   21|   
#   22|       inst "$moddir/start-thinpool-monitor.service" "$systemdsystemunitdir/start-thinpool-monitor.service"
#   23|->     $SYSTEMCTL -q --root "$initdir" add-wants initrd.target start-thinpool-monitor.service
#   24|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def324]
/usr/lib/dracut/modules.d/68systemd-sysusers/module-setup.sh:24:34: warning[SC2154]: initdir is referenced but not assigned.
#   22|       {
#   23|           set -o pipefail
#   24|->         systemd-sysusers --root="$initdir" 2>&1 >&3 | grep -v "^Creating " >&2
#   25|       } 3>&1
#   26|   

Error: SHELLCHECK_WARNING (CWE-457): [#def325]
/usr/lib/dracut/modules.d/70bluetooth/module-setup.sh:61:10: warning[SC2154]: dbussystem is referenced but not assigned.
#   59|   
#   60|       inst_multiple -o \
#   61|->         "$dbussystem"/bluetooth.conf \
#   62|           "$dbussystemservices"/org.bluez.service \
#   63|           "${systemdsystemunitdir}/bluetooth.target" \

Error: SHELLCHECK_WARNING (CWE-457): [#def326]
/usr/lib/dracut/modules.d/70bluetooth/module-setup.sh:62:10: warning[SC2154]: dbussystemservices is referenced but not assigned.
#   60|       inst_multiple -o \
#   61|           "$dbussystem"/bluetooth.conf \
#   62|->         "$dbussystemservices"/org.bluez.service \
#   63|           "${systemdsystemunitdir}/bluetooth.target" \
#   64|           "${systemdsystemunitdir}/bluetooth.service" \

Error: SHELLCHECK_WARNING (CWE-457): [#def327]
/usr/lib/dracut/modules.d/70bluetooth/module-setup.sh:63:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   61|           "$dbussystem"/bluetooth.conf \
#   62|           "$dbussystemservices"/org.bluez.service \
#   63|->         "${systemdsystemunitdir}/bluetooth.target" \
#   64|           "${systemdsystemunitdir}/bluetooth.service" \
#   65|           bluetoothctl

Error: SHELLCHECK_WARNING (CWE-457): [#def328]
/usr/lib/dracut/modules.d/70bluetooth/module-setup.sh:76:14: warning[SC2154]: dbussystemconfdir is referenced but not assigned.
#   74|           inst_multiple -o \
#   75|               /etc/bluetooth/main.conf \
#   76|->             "$dbussystemconfdir"/bluetooth.conf \
#   77|               "$systemdsystemconfdir"/bluetooth.service \
#   78|               "$systemdsystemconfdir/bluetooth.service.d/*.conf" \

Error: SHELLCHECK_WARNING (CWE-457): [#def329]
/usr/lib/dracut/modules.d/70bluetooth/module-setup.sh:77:14: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   75|               /etc/bluetooth/main.conf \
#   76|               "$dbussystemconfdir"/bluetooth.conf \
#   77|->             "$systemdsystemconfdir"/bluetooth.service \
#   78|               "$systemdsystemconfdir/bluetooth.service.d/*.conf" \
#   79|               "${var_lib_files[@]#"${dracutsysrootdir-}"}"

Error: SHELLCHECK_WARNING (CWE-457): [#def330]
/usr/lib/dracut/modules.d/70bluetooth/module-setup.sh:89:10: warning[SC2154]: initdir is referenced but not assigned.
#   87|           Before=shutdown.target\
#   88|           After=dbus.service' \
#   89|->         "${initdir}/${systemdsystemunitdir}/bluetooth.service"
#   90|   
#   91|       $SYSTEMCTL -q --root "$initdir" enable bluetooth.service

Error: SHELLCHECK_WARNING: [#def331]
/usr/lib/dracut/modules.d/70btrfs/btrfs_device_ready.sh:6:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    4|   
#    5|   btrfs_check_complete() {
#    6|->     local _rootinfo _dev
#    7|       _dev="${1:-/dev/root}"
#    8|       [ -e "$_dev" ] || return 0

Error: SHELLCHECK_WARNING: [#def332]
/usr/lib/dracut/modules.d/70btrfs/btrfs_finished.sh:6:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    4|   
#    5|   btrfs_check_complete() {
#    6|->     local _rootinfo _dev
#    7|       _dev="${1:-/dev/root}"
#    8|       [ -e "$_dev" ] || return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def333]
/usr/lib/dracut/modules.d/70btrfs/module-setup.sh:10:20: warning[SC2154]: host_fs_types is referenced but not assigned.
#    8|   
#    9|       [[ $hostonly ]] || [[ $mount_needs ]] && {
#   10|->         for fs in "${host_fs_types[@]}"; do
#   11|               [[ $fs == "btrfs" ]] && return 0
#   12|           done

Error: SHELLCHECK_WARNING (CWE-457): [#def334]
/usr/lib/dracut/modules.d/70btrfs/module-setup.sh:35:35: warning[SC2154]: initdir is referenced but not assigned.
#   33|   installkernel() {
#   34|       hostonly='' instmods btrfs
#   35|->     printf "%s\n" "$(cmdline)" > "${initdir}/etc/cmdline.d/00-btrfs.conf"
#   36|   }
#   37|   

Error: SHELLCHECK_WARNING (CWE-457): [#def335]
/usr/lib/dracut/modules.d/70btrfs/module-setup.sh:41:21: warning[SC2154]: moddir is referenced but not assigned.
#   39|   install() {
#   40|       if ! inst_rules 64-btrfs.rules; then
#   41|->         inst_rules "$moddir/80-btrfs.rules"
#   42|           case "$(btrfs --help)" in
#   43|               *device\ ready*)

Error: SHELLCHECK_WARNING: [#def336]
/usr/lib/dracut/modules.d/70crypt/crypt-cleanup.sh:8:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    6|   if ! getarg rd.luks.uuid > /dev/null 2>&1 && getargbool 1 rd.luks > /dev/null 2>&1; then
#    7|       while true; do
#    8|->         local do_break="y"
#    9|           for i in /dev/mapper/luks-*; do
#   10|               cryptsetup luksClose "$i" > /dev/null 2>&1 && do_break=n

Error: SHELLCHECK_WARNING: [#def337]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|   # check if the crypttab contains an entry for a LUKS UUID
#    6|   crypttab_contains() {
#    7|->     local luks="$1"
#    8|       local dev="$2"
#    9|       local l d rest

Error: SHELLCHECK_WARNING: [#def338]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:8:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    6|   crypttab_contains() {
#    7|       local luks="$1"
#    8|->     local dev="$2"
#    9|       local l d rest
#   10|       if [ -f /etc/crypttab ]; then

Error: SHELLCHECK_WARNING: [#def339]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:9:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    7|       local luks="$1"
#    8|       local dev="$2"
#    9|->     local l d rest
#   10|       if [ -f /etc/crypttab ]; then
#   11|           while read -r l d rest || [ -n "$l" ]; do

Error: SHELLCHECK_WARNING: [#def340]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:52:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   50|   #   It's useful when password is read from stdin.
#   51|   ask_for_password() {
#   52|->     local ply_cmd
#   53|       local ply_prompt
#   54|       local ply_tries=3

Error: SHELLCHECK_WARNING: [#def341]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:53:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   51|   ask_for_password() {
#   52|       local ply_cmd
#   53|->     local ply_prompt
#   54|       local ply_tries=3
#   55|       local tty_cmd

Error: SHELLCHECK_WARNING: [#def342]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:54:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   52|       local ply_cmd
#   53|       local ply_prompt
#   54|->     local ply_tries=3
#   55|       local tty_cmd
#   56|       local tty_prompt

Error: SHELLCHECK_WARNING: [#def343]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:55:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   53|       local ply_prompt
#   54|       local ply_tries=3
#   55|->     local tty_cmd
#   56|       local tty_prompt
#   57|       local tty_tries=3

Error: SHELLCHECK_WARNING: [#def344]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:56:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   54|       local ply_tries=3
#   55|       local tty_cmd
#   56|->     local tty_prompt
#   57|       local tty_tries=3
#   58|       local ret

Error: SHELLCHECK_WARNING: [#def345]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:57:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   55|       local tty_cmd
#   56|       local tty_prompt
#   57|->     local tty_tries=3
#   58|       local ret
#   59|   

Error: SHELLCHECK_WARNING: [#def346]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:58:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   56|       local tty_prompt
#   57|       local tty_tries=3
#   58|->     local ret
#   59|   
#   60|       while [ $# -gt 0 ]; do

Error: SHELLCHECK_WARNING: [#def347]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:120:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  118|               fi
#  119|   
#  120|->             local i=1
#  121|               while [ $i -le "$tty_tries" ]; do
#  122|                   [ -n "$tty_prompt" ] \

Error: SHELLCHECK_WARNING: [#def348]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:144:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  142|   # test_dev -f LABEL="nice label" /some/file1
#  143|   test_dev() {
#  144|->     local test_op="$1"
#  145|       local dev="$2"
#  146|       local f="$3"

Error: SHELLCHECK_WARNING: [#def349]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:145:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  143|   test_dev() {
#  144|       local test_op="$1"
#  145|->     local dev="$2"
#  146|       local f="$3"
#  147|       local ret=1

Error: SHELLCHECK_WARNING: [#def350]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:146:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  144|       local test_op="$1"
#  145|       local dev="$2"
#  146|->     local f="$3"
#  147|       local ret=1
#  148|       local mount_point

Error: SHELLCHECK_WARNING: [#def351]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:147:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  145|       local dev="$2"
#  146|       local f="$3"
#  147|->     local ret=1
#  148|       local mount_point
#  149|   

Error: SHELLCHECK_WARNING: [#def352]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:148:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  146|       local f="$3"
#  147|       local ret=1
#  148|->     local mount_point
#  149|   
#  150|       mount_point=$(mkuniqdir /mnt testdev)

Error: SHELLCHECK_WARNING: [#def353]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:179:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  177|   match_dev() {
#  178|       [ -z "$1" ] || [ "$1" = '*' ] && return 0
#  179|->     local devlist
#  180|       local dev
#  181|   

Error: SHELLCHECK_WARNING: [#def354]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:180:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  178|       [ -z "$1" ] || [ "$1" = '*' ] && return 0
#  179|       local devlist
#  180|->     local dev
#  181|   
#  182|       devlist="$(devnames "$1")" || return 255

Error: SHELLCHECK_WARNING: [#def355]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:203:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  201|   #   /dev/sdc1:/keys/some.key
#  202|   getkey() {
#  203|->     local keys_file="$1"
#  204|       local for_dev="$2"
#  205|       local luks_dev

Error: SHELLCHECK_WARNING: [#def356]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:204:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  202|   getkey() {
#  203|       local keys_file="$1"
#  204|->     local for_dev="$2"
#  205|       local luks_dev
#  206|       local key_dev

Error: SHELLCHECK_WARNING: [#def357]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:205:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  203|       local keys_file="$1"
#  204|       local for_dev="$2"
#  205|->     local luks_dev
#  206|       local key_dev
#  207|       local key_path

Error: SHELLCHECK_WARNING: [#def358]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:206:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  204|       local for_dev="$2"
#  205|       local luks_dev
#  206|->     local key_dev
#  207|       local key_path
#  208|   

Error: SHELLCHECK_WARNING: [#def359]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:207:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  205|       local luks_dev
#  206|       local key_dev
#  207|->     local key_path
#  208|   
#  209|       [ -z "$keys_file" ] || [ -z "$for_dev" ] && die 'getkey: wrong usage!'

Error: SHELLCHECK_WARNING: [#def360]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:229:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  227|   # informational purpose.
#  228|   readkey() {
#  229|->     local keypath="$1"
#  230|       local keydev="$2"
#  231|       local device="$3"

Error: SHELLCHECK_WARNING: [#def361]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:230:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  228|   readkey() {
#  229|       local keypath="$1"
#  230|->     local keydev="$2"
#  231|       local device="$3"
#  232|   

Error: SHELLCHECK_WARNING: [#def362]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:231:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  229|       local keypath="$1"
#  230|       local keydev="$2"
#  231|->     local device="$3"
#  232|   
#  233|       # No mounting needed if the keyfile resides inside the initrd

Error: SHELLCHECK_WARNING: [#def363]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:235:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  233|       # No mounting needed if the keyfile resides inside the initrd
#  234|       if [ "/" = "$keydev" ]; then
#  235|->         local mntp=/
#  236|       else
#  237|           # This creates a unique single mountpoint for *, or several for explicitly

Error: SHELLCHECK_WARNING: [#def364]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:240:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  238|           # given LUKS devices. It accomplishes unlocking multiple LUKS devices with
#  239|           # a single password entry.
#  240|->         local mntp
#  241|           mntp="/mnt/$(str_replace "keydev-$keydev-$keypath" '/' '-')"
#  242|   

Error: SHELLCHECK_WARNING (CWE-457): [#def365]
/usr/lib/dracut/modules.d/70crypt/crypt-lib.sh:262:71: warning[SC2154]: hookdir is referenced but not assigned.
#  260|                   . /lib/dracut-crypt-loop-lib.sh
#  261|                   loop_decrypt "$mntp" "$keypath" "$keydev" "$device"
#  262|->                 printf "%s\n" "umount \"$mntp\"; rmdir \"$mntp\";" > "${hookdir}/cleanup/crypt-loop-cleanup-99-${mntp##*/}".sh
#  263|                   return 0
#  264|               else

Error: SHELLCHECK_WARNING (CWE-277): [#def366]
/usr/lib/dracut/modules.d/70crypt/cryptroot-ask.sh:11:10: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#    9|   command -v getarg > /dev/null || . /lib/dracut-lib.sh
#   10|   
#   11|-> mkdir -p -m 0700 /run/cryptsetup
#   12|   
#   13|   # if device name is /dev/dm-X, convert to /dev/mapper/name

Error: SHELLCHECK_WARNING (CWE-457): [#def367]
/usr/lib/dracut/modules.d/70crypt/cryptroot-ask.sh:123:39: warning[SC2154]: luksdev is referenced but not assigned.
#  121|       if discarduuids=$(getargs "rd.luks.allow-discards"); then
#  122|           discarduuids=$(str_replace "$discarduuids" 'luks-' '')
#  123|->         if strstr " $discarduuids " " ${luksdev##luks-}"; then
#  124|               allowdiscards="--allow-discards"
#  125|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def368]
/usr/lib/dracut/modules.d/70crypt/cryptroot-ask.sh:195:11: warning[SC2154]: hookdir is referenced but not assigned.
#  193|           printf -- '[ -e /dev/mapper/%s ] && ' "$luksname"
#  194|           printf -- '%s "%s"\n' "$luks_close" "$luksname"
#  195|->     } >> "$hookdir/cleanup/31-crypt-keysource.sh"
#  196|       unset luks_close
#  197|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def369]
/usr/lib/dracut/modules.d/70crypt/module-setup.sh:7:25: warning[SC2154]: systemdutildir is referenced but not assigned.
#    5|       local fs
#    6|       # if cryptsetup is not installed, then we cannot support encrypted devices.
#    7|->     require_any_binary "$systemdutildir"/systemd-cryptsetup cryptsetup || return 1
#    8|   
#    9|       [[ $hostonly ]] || [[ $mount_needs ]] && {

Error: SHELLCHECK_WARNING (CWE-457): [#def370]
/usr/lib/dracut/modules.d/70crypt/module-setup.sh:37:11: warning[SC2154]: hostonly_mode is referenced but not assigned.
#   35|       # to module based, try to install those modules
#   36|       # best guess
#   37|->     if [[ $hostonly_mode == "strict" ]] || [[ $mount_needs ]]; then
#   38|           # dmsetup returns s.th. like
#   39|           # cryptvol: 0 2064384 crypt aes-xts-plain64 :64:logon:cryptsetup:....

Error: SHELLCHECK_WARNING (CWE-457): [#def371]
/usr/lib/dracut/modules.d/70crypt/module-setup.sh:81:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#   79|   install() {
#   80|   
#   81|->     if [[ $hostonly_cmdline == "yes" ]]; then
#   82|           local _cryptconf
#   83|           _cryptconf=$(cmdline)

Error: SHELLCHECK_WARNING (CWE-457): [#def372]
/usr/lib/dracut/modules.d/70crypt/module-setup.sh:84:62: warning[SC2154]: initdir is referenced but not assigned.
#   82|           local _cryptconf
#   83|           _cryptconf=$(cmdline)
#   84|->         [[ $_cryptconf ]] && printf "%s\n" "$_cryptconf" >> "${initdir}/etc/cmdline.d/90crypt.conf"
#   85|       fi
#   86|   

Error: SHELLCHECK_WARNING (CWE-457): [#def373]
/usr/lib/dracut/modules.d/70crypt/module-setup.sh:87:27: warning[SC2154]: moddir is referenced but not assigned.
#   85|       fi
#   86|   
#   87|->     inst_hook cmdline 30 "$moddir/parse-crypt.sh"
#   88|       if ! dracut_module_included "systemd"; then
#   89|           inst_multiple cryptsetup rmdir readlink umount

Error: SHELLCHECK_WARNING: [#def374]
/usr/lib/dracut/modules.d/70crypt/parse-crypt.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|   _cryptgetargsname() {
#    6|       debug_off
#    7|->     local _o _found _key
#    8|       unset _o
#    9|       unset _found

Error: SHELLCHECK_WARNING (CWE-457): [#def375]
/usr/lib/dracut/modules.d/70crypt/parse-crypt.sh:170:25: warning[SC2154]: hookdir is referenced but not assigned.
#  168|                   while [ "$uuid" != "${uuid#*-}" ]; do uuid=${uuid%%-*}${uuid#*-}; done
#  169|                   printf -- '[ -e /dev/disk/by-id/dm-uuid-CRYPT-LUKS?-*%s*-* ] || exit 1\n' "$uuid" \
#  170|->                     >> "$hookdir/initqueue/finished/90-crypt.sh"
#  171|                   {
#  172|                       printf -- '[ -e /dev/disk/by-uuid/*%s* ] || ' "$luksid"

Error: SHELLCHECK_WARNING: [#def376]
/usr/lib/dracut/modules.d/70dm/dm-shutdown.sh:4:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    2|   
#    3|   _remove_dm() {
#    4|->     local dev="$1"
#    5|       local final="$2"
#    6|       local s

Error: SHELLCHECK_WARNING: [#def377]
/usr/lib/dracut/modules.d/70dm/dm-shutdown.sh:5:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    3|   _remove_dm() {
#    4|       local dev="$1"
#    5|->     local final="$2"
#    6|       local s
#    7|       local devname

Error: SHELLCHECK_WARNING: [#def378]
/usr/lib/dracut/modules.d/70dm/dm-shutdown.sh:6:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    4|       local dev="$1"
#    5|       local final="$2"
#    6|->     local s
#    7|       local devname
#    8|   

Error: SHELLCHECK_WARNING: [#def379]
/usr/lib/dracut/modules.d/70dm/dm-shutdown.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|       local final="$2"
#    6|       local s
#    7|->     local devname
#    8|   
#    9|       for s in /sys/block/"${dev}"/holders/dm-*; do

Error: SHELLCHECK_WARNING: [#def380]
/usr/lib/dracut/modules.d/70dm/dm-shutdown.sh:42:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   40|   
#   41|   _do_dm_shutdown() {
#   42|->     local ret=0
#   43|       local final="$1"
#   44|       local dev

Error: SHELLCHECK_WARNING: [#def381]
/usr/lib/dracut/modules.d/70dm/dm-shutdown.sh:43:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   41|   _do_dm_shutdown() {
#   42|       local ret=0
#   43|->     local final="$1"
#   44|       local dev
#   45|   

Error: SHELLCHECK_WARNING: [#def382]
/usr/lib/dracut/modules.d/70dm/dm-shutdown.sh:44:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   42|       local ret=0
#   43|       local final="$1"
#   44|->     local dev
#   45|   
#   46|       info "Disassembling device-mapper devices"

Error: SHELLCHECK_WARNING (CWE-457): [#def383]
/usr/lib/dracut/modules.d/70dm/module-setup.sh:16:17: warning[SC2154]: kernel is referenced but not assigned.
#   14|   # called by dracut
#   15|   install() {
#   16|->     modinfo -k "$kernel" dm_mod > /dev/null 2>&1 \
#   17|           && inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
#   18|   

Error: SHELLCHECK_WARNING (CWE-457): [#def384]
/usr/lib/dracut/modules.d/70dm/module-setup.sh:17:35: warning[SC2154]: moddir is referenced but not assigned.
#   15|   install() {
#   16|       modinfo -k "$kernel" dm_mod > /dev/null 2>&1 \
#   17|->         && inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
#   18|   
#   19|       inst_multiple dmsetup

Error: SHELLCHECK_WARNING (CWE-457): [#def385]
/usr/lib/dracut/modules.d/70dmraid/module-setup.sh:14:21: warning[SC2154]: host_fs_types is referenced but not assigned.
#   12|   
#   13|       [[ $hostonly ]] || [[ $mount_needs ]] && {
#   14|->         for dev in "${!host_fs_types[@]}"; do
#   15|               [[ ${host_fs_types[$dev]} != *_raid_member ]] && continue
#   16|   

Error: SHELLCHECK_WARNING (CWE-457): [#def386]
/usr/lib/dracut/modules.d/70dmraid/module-setup.sh:69:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#   67|       local _raidconf
#   68|   
#   69|->     if [[ $hostonly_cmdline == "yes" ]]; then
#   70|           _raidconf=$(cmdline)
#   71|           [[ $_raidconf ]] && printf "%s\n" "$_raidconf" >> "${initdir}/etc/cmdline.d/90dmraid.conf"

Error: SHELLCHECK_WARNING (CWE-457): [#def387]
/usr/lib/dracut/modules.d/70dmraid/module-setup.sh:71:60: warning[SC2154]: initdir is referenced but not assigned.
#   69|       if [[ $hostonly_cmdline == "yes" ]]; then
#   70|           _raidconf=$(cmdline)
#   71|->         [[ $_raidconf ]] && printf "%s\n" "$_raidconf" >> "${initdir}/etc/cmdline.d/90dmraid.conf"
#   72|       fi
#   73|   

Error: SHELLCHECK_WARNING (CWE-457): [#def388]
/usr/lib/dracut/modules.d/70dmraid/module-setup.sh:78:11: warning[SC2154]: moddir is referenced but not assigned.
#   76|       inst partx /sbin/partx
#   77|   
#   78|->     inst "$moddir/dmraid.sh" /sbin/dmraid_scan
#   79|   
#   80|       inst_rules 66-kpartx.rules 67-kpartx-compat.rules

Error: SHELLCHECK_WARNING (CWE-457): [#def389]
/usr/lib/dracut/modules.d/70dmsquash-live-autooverlay/create-overlay-genrules.sh:3:7: warning[SC2154]: root is referenced but not assigned.
#    1|   #!/usr/bin/sh
#    2|   
#    3|-> case "$root" in
#    4|       live:/dev/*)
#    5|           printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/create-overlay %s"\n' \

Error: SHELLCHECK_WARNING (CWE-457): [#def390]
/usr/lib/dracut/modules.d/70dmsquash-live-autooverlay/module-setup.sh:21:28: warning[SC2154]: moddir is referenced but not assigned.
#   19|       inst_multiple awk blkid cat grep mkdir mount parted readlink rmdir tr umount
#   20|       inst_multiple -o mkfs.btrfs mkfs.ext4 mkfs.xfs
#   21|->     inst_hook pre-udev 25 "$moddir/create-overlay-genrules.sh"
#   22|       inst_script "$moddir/create-overlay.sh" "/sbin/create-overlay"
#   23|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def391]
/usr/lib/dracut/modules.d/70dmsquash-live-ntfs/module-setup.sh:15:18: warning[SC2154]: moddir is referenced but not assigned.
#   13|   install() {
#   14|       inst_multiple fusermount mount.fuse ntfs-3g
#   15|->     inst_script "$moddir/mount-ntfs-3g.sh" "/sbin/mount-ntfs-3g"
#   16|   }
#   17|   

Error: SHELLCHECK_WARNING (CWE-457): [#def392]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-genrules.sh:3:7: warning[SC2154]: root is referenced but not assigned.
#    1|   #!/usr/bin/sh
#    2|   
#    3|-> case "$root" in
#    4|       live:/dev/*)
#    5|           {

Error: SHELLCHECK_WARNING: [#def393]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-root.sh:40:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   38|   # Otherwise returns the original path
#   39|   get_check_dev() {
#   40|->     local _udevinfo
#   41|       dev_path="$(udevadm info -q path --name "$1")"
#   42|       _udevinfo="$(udevadm info -q property --path "${dev_path}")"

Error: SHELLCHECK_WARNING (CWE-277): [#def394]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-root.sh:108:7: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  106|   
#  107|   # mount the backing of the live image first
#  108|-> mkdir -m 0755 -p /run/initramfs/live
#  109|   if [ -f "$livedev" ]; then
#  110|       # no mount needed - we've already got the LiveOS image in initramfs

Error: SHELLCHECK_WARNING (CWE-277): [#def395]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-root.sh:160:15: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  158|       # need to know where to look for the overlay
#  159|       if [ -z "$setup" ] && [ -n "$devspec" ] && [ -n "$pathspec" ] && [ -n "$overlay" ]; then
#  160|->         mkdir -m 0755 -p /run/initramfs/overlayfs
#  161|           if ismounted "$devspec"; then
#  162|               devmnt=$(findmnt -e -v -n -o 'TARGET' --source "$devspec")

Error: SHELLCHECK_WARNING (CWE-277): [#def396]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-root.sh:290:15: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  288|       if [ -n "$thin_snapshot" ]; then
#  289|           modprobe dm_thin_pool
#  290|->         mkdir -m 0755 -p /run/initramfs/thin-overlay
#  291|   
#  292|           # In block units (512b)

Error: SHELLCHECK_WARNING (CWE-277): [#def397]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-root.sh:338:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  336|       SQUASHED_LOOPDEV=$(losetup -f)
#  337|       losetup -r "$SQUASHED_LOOPDEV" "$SQUASHED"
#  338|->     mkdir -m 0755 -p /run/initramfs/squashfs
#  339|       mount -n -o ro "$SQUASHED_LOOPDEV" /run/initramfs/squashfs
#  340|   

Error: SHELLCHECK_WARNING (CWE-277): [#def398]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-root.sh:377:15: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  375|           # mount the provided filesystem read/write
#  376|           echo "Unpacking live filesystem (may take some time)" > /dev/kmsg
#  377|->         mkdir -m 0755 -p /run/initramfs/fsimg/
#  378|           if [ -n "$SQUASHED" ]; then
#  379|               cp -v "$FSIMG" /run/initramfs/fsimg/rootfs.img

Error: SHELLCHECK_WARNING (CWE-277): [#def399]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-root.sh:424:15: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  422|   if [ -n "$overlayfs" ]; then
#  423|       if [ -n "$FSIMG" ]; then
#  424|->         mkdir -m 0755 -p /run/rootfsbase
#  425|           if [ "$FSIMG" = "$SQUASHED" ]; then
#  426|               mount --bind /run/initramfs/squashfs /run/rootfsbase

Error: SHELLCHECK_WARNING (CWE-457): [#def400]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-live-root.sh:436:79: warning[SC2154]: hookdir is referenced but not assigned.
#  434|       if [ -z "${DRACUT_SYSTEMD-}" ]; then
#  435|           [ -n "$ROOTFLAGS" ] && ROOTFLAGS="-o $ROOTFLAGS"
#  436|->         printf 'mount %s /dev/mapper/live-rw %s\n' "$ROOTFLAGS" "$NEWROOT" > "$hookdir"/mount/01-$$-live.sh
#  437|       fi
#  438|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def401]
/usr/lib/dracut/modules.d/70dmsquash-live/dmsquash-liveiso-genrules.sh:3:7: warning[SC2154]: root is referenced but not assigned.
#    1|   #!/usr/bin/sh
#    2|   
#    3|-> if [ "${root%%:*}" = "liveiso" ]; then
#    4|       {
#    5|           # shellcheck disable=SC2016

Error: SHELLCHECK_WARNING: [#def402]
/usr/lib/dracut/modules.d/70dmsquash-live/iso-scan.sh:16:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   14|   
#   15|   do_iso_scan() {
#   16|->     local _name
#   17|       local dev
#   18|       for dev in /dev/disk/by-uuid/*; do

Error: SHELLCHECK_WARNING: [#def403]
/usr/lib/dracut/modules.d/70dmsquash-live/iso-scan.sh:17:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   15|   do_iso_scan() {
#   16|       local _name
#   17|->     local dev
#   18|       for dev in /dev/disk/by-uuid/*; do
#   19|           _name=$(dev_unit_name "$dev")

Error: SHELLCHECK_WARNING (CWE-457): [#def404]
/usr/lib/dracut/modules.d/70dmsquash-live/iso-scan.sh:27:23: warning[SC2154]: job is referenced but not assigned.
#   25|               udevadm trigger --action=add > /dev/null 2>&1
#   26|               ln -s "$dev" /run/initramfs/isoscandev
#   27|->             rm -f -- "$job"
#   28|               exit 0
#   29|           else

Error: SHELLCHECK_WARNING (CWE-457): [#def405]
/usr/lib/dracut/modules.d/70dmsquash-live/module-setup.sh:27:27: warning[SC2154]: moddir is referenced but not assigned.
#   25|       inst_multiple umount dmsetup blkid dd losetup blockdev find rmdir grep
#   26|       inst_multiple -o checkisomd5
#   27|->     inst_hook cmdline 30 "$moddir/parse-dmsquash-live.sh"
#   28|       inst_hook cmdline 31 "$moddir/parse-iso-scan.sh"
#   29|       inst_hook pre-udev 30 "$moddir/dmsquash-live-genrules.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def406]
/usr/lib/dracut/modules.d/70dmsquash-live/module-setup.sh:35:54: warning[SC2154]: systemdutildir is referenced but not assigned.
#   33|       inst_script "$moddir/iso-scan.sh" "/sbin/iso-scan"
#   34|       if dracut_module_included "systemd"; then
#   35|->         inst_script "$moddir/dmsquash-generator.sh" "$systemdutildir"/system-generators/dracut-dmsquash-generator
#   36|           inst_simple "$moddir/checkisomd5@.service" "/etc/systemd/system/checkisomd5@.service"
#   37|       fi

Error: SHELLCHECK_WARNING: [#def407]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:95:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   93|   # common code for checkers that follow usual subset of options and return codes
#   94|   fsck_drv_com() {
#   95|->     local _drv="$1"
#   96|       local _ret
#   97|       local _out

Error: SHELLCHECK_WARNING: [#def408]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:96:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   94|   fsck_drv_com() {
#   95|       local _drv="$1"
#   96|->     local _ret
#   97|       local _out
#   98|   

Error: SHELLCHECK_WARNING: [#def409]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:97:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   95|       local _drv="$1"
#   96|       local _ret
#   97|->     local _out
#   98|   
#   99|       if ! strglobin "$_fop" "-[ynap]"; then

Error: SHELLCHECK_WARNING: [#def410]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:115:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  113|   # code for generic fsck, if the filesystem checked is "unknown" to us
#  114|   fsck_drv_std() {
#  115|->     local _ret
#  116|       local _out
#  117|       unset _out

Error: SHELLCHECK_WARNING: [#def411]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:116:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  114|   fsck_drv_std() {
#  115|       local _ret
#  116|->     local _out
#  117|       unset _out
#  118|   

Error: SHELLCHECK_WARNING: [#def412]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:138:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  136|   # necessary tools or insufficient options)
#  137|   fsck_single() {
#  138|->     local FSTAB_FILE=/etc/fstab.empty
#  139|       local _dev="$1"
#  140|       local _fs="${2:-auto}"

Error: SHELLCHECK_WARNING: [#def413]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:139:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  137|   fsck_single() {
#  138|       local FSTAB_FILE=/etc/fstab.empty
#  139|->     local _dev="$1"
#  140|       local _fs="${2:-auto}"
#  141|       local _fop="$4"

Error: SHELLCHECK_WARNING: [#def414]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:140:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  138|       local FSTAB_FILE=/etc/fstab.empty
#  139|       local _dev="$1"
#  140|->     local _fs="${2:-auto}"
#  141|       local _fop="$4"
#  142|       local _drv

Error: SHELLCHECK_WARNING: [#def415]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:141:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  139|       local _dev="$1"
#  140|       local _fs="${2:-auto}"
#  141|->     local _fop="$4"
#  142|       local _drv
#  143|   

Error: SHELLCHECK_WARNING: [#def416]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:142:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  140|       local _fs="${2:-auto}"
#  141|       local _fop="$4"
#  142|->     local _drv
#  143|   
#  144|       [ $# -lt 2 ] && return 255

Error: SHELLCHECK_WARNING: [#def417]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:159:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  157|   # checking based on fstab, so empty one is passed
#  158|   fsck_batch() {
#  159|->     local FSTAB_FILE=/etc/fstab.empty
#  160|       local _drv=fsck
#  161|       local _dev

Error: SHELLCHECK_WARNING: [#def418]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:160:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  158|   fsck_batch() {
#  159|       local FSTAB_FILE=/etc/fstab.empty
#  160|->     local _drv=fsck
#  161|       local _dev
#  162|       local _ret

Error: SHELLCHECK_WARNING: [#def419]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:161:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  159|       local FSTAB_FILE=/etc/fstab.empty
#  160|       local _drv=fsck
#  161|->     local _dev
#  162|       local _ret
#  163|       local _out

Error: SHELLCHECK_WARNING: [#def420]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:162:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  160|       local _drv=fsck
#  161|       local _dev
#  162|->     local _ret
#  163|       local _out
#  164|   

Error: SHELLCHECK_WARNING: [#def421]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:163:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  161|       local _dev
#  162|       local _ret
#  163|->     local _out
#  164|   
#  165|       [ $# -eq 0 ] || ! command -v fsck > /dev/null && return 255

Error: SHELLCHECK_WARNING: [#def422]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:185:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  183|   # if we found the fs, assume we're right
#  184|   det_fs() {
#  185|->     local _dev="$1"
#  186|       local _orig="${2:-auto}"
#  187|       local _fs

Error: SHELLCHECK_WARNING: [#def423]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:186:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  184|   det_fs() {
#  185|       local _dev="$1"
#  186|->     local _orig="${2:-auto}"
#  187|       local _fs
#  188|   

Error: SHELLCHECK_WARNING: [#def424]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:187:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  185|       local _dev="$1"
#  186|       local _orig="${2:-auto}"
#  187|->     local _fs
#  188|   
#  189|       _fs=$(udevadm info --query=property --name="$_dev" \

Error: SHELLCHECK_WARNING: [#def425]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:205:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  203|   
#  204|   write_fs_tab() {
#  205|->     local _o
#  206|       local _rw
#  207|       local _root

Error: SHELLCHECK_WARNING: [#def426]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:206:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  204|   write_fs_tab() {
#  205|       local _o
#  206|->     local _rw
#  207|       local _root
#  208|       local _rootfstype

Error: SHELLCHECK_WARNING: [#def427]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:207:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  205|       local _o
#  206|       local _rw
#  207|->     local _root
#  208|       local _rootfstype
#  209|       local _rootflags

Error: SHELLCHECK_WARNING: [#def428]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:208:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  206|       local _rw
#  207|       local _root
#  208|->     local _rootfstype
#  209|       local _rootflags
#  210|       local _fspassno

Error: SHELLCHECK_WARNING: [#def429]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:209:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  207|       local _root
#  208|       local _rootfstype
#  209|->     local _rootflags
#  210|       local _fspassno
#  211|   

Error: SHELLCHECK_WARNING: [#def430]
/usr/lib/dracut/modules.d/70fs-lib/fs-lib.sh:210:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  208|       local _rootfstype
#  209|       local _rootflags
#  210|->     local _fspassno
#  211|   
#  212|       _fspassno="0"

Error: SHELLCHECK_WARNING (CWE-457): [#def431]
/usr/lib/dracut/modules.d/70fs-lib/module-setup.sh:39:11: warning[SC2154]: hostonly_mode is referenced but not assigned.
#   37|   installkernel() {
#   38|       # xfs/btrfs/ext4 need crc32c, f2fs needs crc32
#   39|->     if [[ $hostonly_mode == "strict" ]]; then
#   40|           for_each_host_dev_fs include_fs_helper_modules
#   41|           :

Error: SHELLCHECK_WARNING (CWE-457): [#def432]
/usr/lib/dracut/modules.d/70fs-lib/module-setup.sh:51:11: warning[SC2154]: moddir is referenced but not assigned.
#   49|       local _helpers
#   50|   
#   51|->     inst "$moddir/fs-lib.sh" "/lib/fs-lib.sh"
#   52|       : > "${initdir}"/etc/fstab.empty
#   53|   

Error: SHELLCHECK_WARNING (CWE-457): [#def433]
/usr/lib/dracut/modules.d/70fs-lib/module-setup.sh:52:10: warning[SC2154]: initdir is referenced but not assigned.
#   50|   
#   51|       inst "$moddir/fs-lib.sh" "/lib/fs-lib.sh"
#   52|->     : > "${initdir}"/etc/fstab.empty
#   53|   
#   54|       [[ $nofscks == "yes" ]] && return

Error: SHELLCHECK_WARNING (CWE-457): [#def434]
/usr/lib/dracut/modules.d/70fs-lib/module-setup.sh:54:8: warning[SC2154]: nofscks is referenced but not assigned.
#   52|       : > "${initdir}"/etc/fstab.empty
#   53|   
#   54|->     [[ $nofscks == "yes" ]] && return
#   55|   
#   56|       if [[ $fscks == "${fscks#*[^ ]*}" ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def435]
/usr/lib/dracut/modules.d/70fs-lib/module-setup.sh:56:11: warning[SC2154]: fscks is referenced but not assigned.
#   54|       [[ $nofscks == "yes" ]] && return
#   55|   
#   56|->     if [[ $fscks == "${fscks#*[^ ]*}" ]]; then
#   57|           _helpers=(
#   58|               /sbin/fsck* /usr/sbin/fsck*

Error: SHELLCHECK_WARNING: [#def436]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:10:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    8|   det_archive() {
#    9|       # NOTE: internal echo -e works in ash and bash, but not dash
#   10|->     local bz xz gz zs
#   11|       local headerblock
#   12|       bz="BZh"

Error: SHELLCHECK_WARNING: [#def437]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:11:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    9|       # NOTE: internal echo -e works in ash and bash, but not dash
#   10|       local bz xz gz zs
#   11|->     local headerblock
#   12|       bz="BZh"
#   13|       xz="$(printf '\xfd7zXZ')"

Error: SHELLCHECK_WARNING: [#def438]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:29:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   27|   # determine filesystem type for a filesystem image
#   28|   det_fs_img() {
#   29|->     local dev
#   30|       dev=$(losetup --find --show "$1") rv=""
#   31|       det_fs "$dev"

Error: SHELLCHECK_WARNING: [#def439]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:40:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   38|   # unpack a (possibly compressed) cpio/tar archive
#   39|   unpack_archive() {
#   40|->     local img="$1" outdir="$2" archiver="" decompr=""
#   41|       local ft
#   42|       ft="$(det_archive "$img")"

Error: SHELLCHECK_WARNING: [#def440]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:41:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   39|   unpack_archive() {
#   40|       local img="$1" outdir="$2" archiver="" decompr=""
#   41|->     local ft
#   42|       ft="$(det_archive "$img")"
#   43|       case "$ft" in

Error: SHELLCHECK_WARNING: [#def441]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:64:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   62|   # unpack a filesystem image
#   63|   unpack_fs() {
#   64|->     local img="$1" outdir="$2"
#   65|       local mnt
#   66|       mnt="$(mkuniqdir /tmp unpack_fs.)"

Error: SHELLCHECK_WARNING: [#def442]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:65:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   63|   unpack_fs() {
#   64|       local img="$1" outdir="$2"
#   65|->     local mnt
#   66|       mnt="$(mkuniqdir /tmp unpack_fs.)"
#   67|       mount -o loop "$img" "$mnt" || {

Error: SHELLCHECK_WARNING: [#def443]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:84:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   82|   # unpack_img IMAGEFILE OUTDIR
#   83|   unpack_img() {
#   84|->     local img="$1" outdir="$2"
#   85|       [ -r "$img" ] || {
#   86|           warn "can't read img!"

Error: SHELLCHECK_WARNING: [#def444]
/usr/lib/dracut/modules.d/70img-lib/img-lib.sh:111:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  109|   # Increase /run tmpfs size, if needed.
#  110|   check_live_ram() {
#  111|->     local minmem imgsize memsize runsize runavail
#  112|       minmem=$(getarg rd.minmem)
#  113|       imgsize=$1

Error: SHELLCHECK_WARNING (CWE-457): [#def445]
/usr/lib/dracut/modules.d/70img-lib/module-setup.sh:15:18: warning[SC2154]: moddir is referenced but not assigned.
#   13|       # TODO: make this conditional on a cmdline flag / config option
#   14|       inst_multiple -o cpio xz bzip2 zstd tar gzip rmdir
#   15|->     inst_simple "$moddir/img-lib.sh" "/lib/img-lib.sh"
#   16|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def446]
/usr/lib/dracut/modules.d/70kernel-modules-extra/module-setup.sh:103:31: warning[SC2154]: kernel is referenced but not assigned.
#  101|   
#  102|                       if [[ '*' == "$kverpat" ]] \
#  103|->                         || [[ $kernel =~ $kverpat ]]; then
#  104|                           overrides+=("${path}/${mod}")
#  105|   

Error: SHELLCHECK_WARNING (CWE-457): [#def447]
/usr/lib/dracut/modules.d/70kernel-modules/module-setup.sh:108:37: warning[SC2154]: srcmods is referenced but not assigned.
#  106|           fi
#  107|   
#  108|->         awk -F: '/^\// {print $1}' "$srcmods/modules.dep" 2> /dev/null | instmods
#  109|   
#  110|           # if not on strict hostonly mode, or there are hostonly block device

Error: SHELLCHECK_WARNING (CWE-457): [#def448]
/usr/lib/dracut/modules.d/70kernel-modules/module-setup.sh:112:15: warning[SC2154]: hostonly_mode is referenced but not assigned.
#  110|           # if not on strict hostonly mode, or there are hostonly block device
#  111|           # install block drivers
#  112|->         if [[ $hostonly_mode != "strict" ]] \
#  113|               || for_each_host_dev_and_slaves_all record_block_dev_drv; then
#  114|               hostonly='' instmods sg sr_mod sd_mod scsi_dh ata_piix

Error: SHELLCHECK_WARNING (CWE-457): [#def449]
/usr/lib/dracut/modules.d/70kernel-modules/module-setup.sh:145:23: warning[SC2154]: depmodd is referenced but not assigned.
#  143|       fi
#  144|   
#  145|->     inst_multiple -o "$depmodd/*.conf"
#  146|       if [[ ${hostonly-} ]]; then
#  147|           inst_multiple -H -o "$depmodconfdir/*.conf"

Error: SHELLCHECK_WARNING (CWE-457): [#def450]
/usr/lib/dracut/modules.d/70kernel-modules/module-setup.sh:147:30: warning[SC2154]: depmodconfdir is referenced but not assigned.
#  145|       inst_multiple -o "$depmodd/*.conf"
#  146|       if [[ ${hostonly-} ]]; then
#  147|->         inst_multiple -H -o "$depmodconfdir/*.conf"
#  148|       fi
#  149|       :

Error: SHELLCHECK_WARNING (CWE-457): [#def451]
/usr/lib/dracut/modules.d/70kernel-network-modules/module-setup.sh:20:11: warning[SC2154]: hostonly_mode is referenced but not assigned.
#   18|       fi
#   19|   
#   20|->     if [[ $hostonly_mode == 'strict' ]] && [[ -n ${hostonly_nics+x} ]]; then
#   21|           for _nic in $hostonly_nics; do
#   22|               mapfile -t _net_drivers < <(get_dev_module /sys/class/net/"$_nic")

Error: SHELLCHECK_WARNING (CWE-457): [#def452]
/usr/lib/dracut/modules.d/70livenet/module-setup.sh:17:27: warning[SC2154]: moddir is referenced but not assigned.
#   15|   # called by dracut
#   16|   install() {
#   17|->     inst_hook cmdline 29 "$moddir/parse-livenet.sh"
#   18|       inst_hook initqueue/online 95 "$moddir/fetch-liveupdate.sh"
#   19|       inst_script "$moddir/livenetroot.sh" "/sbin/livenetroot"

Error: SHELLCHECK_WARNING (CWE-457): [#def453]
/usr/lib/dracut/modules.d/70livenet/module-setup.sh:21:53: warning[SC2154]: systemdutildir is referenced but not assigned.
#   19|       inst_script "$moddir/livenetroot.sh" "/sbin/livenetroot"
#   20|       if dracut_module_included "systemd"; then
#   21|->         inst_script "$moddir/livenet-generator.sh" "$systemdutildir"/system-generators/dracut-livenet-generator
#   22|       fi
#   23|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def454]
/usr/lib/dracut/modules.d/70livenet/parse-livenet.sh:17:44: warning[SC2154]: hookdir is referenced but not assigned.
#   15|       fi
#   16|       echo "$updates" > /tmp/liveupdates.info
#   17|->     echo '[ -e /tmp/liveupdates.done ]' > "$hookdir"/initqueue/finished/liveupdates.sh
#   18|   fi
#   19|   

Error: SHELLCHECK_WARNING (CWE-277): [#def455]
/usr/lib/dracut/modules.d/70lvm/lvm_scan.sh:13:26: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   11|   # shellcheck disable=SC2174
#   12|   [ -d /etc/lvm ] || mkdir -m 0755 -p /etc/lvm
#   13|-> [ -d /run/lvm ] || mkdir -m 0755 -p /run/lvm
#   14|   # build a list of devices to scan
#   15|   lvmdevs=$(

Error: SHELLCHECK_WARNING (CWE-457): [#def456]
/usr/lib/dracut/modules.d/70lvm/module-setup.sh:9:20: warning[SC2154]: host_fs_types is referenced but not assigned.
#    7|   
#    8|       [[ $hostonly ]] || [[ $mount_needs ]] && {
#    9|->         for fs in "${host_fs_types[@]}"; do
#   10|               [[ $fs == LVM*_member ]] && return 0
#   11|           done

Error: SHELLCHECK_WARNING (CWE-457): [#def457]
/usr/lib/dracut/modules.d/70lvm/module-setup.sh:53:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#   51|       inst_multiple lvm grep
#   52|   
#   53|->     if [[ $hostonly_cmdline == "yes" ]]; then
#   54|           local _lvmconf
#   55|           _lvmconf=$(cmdline)

Error: SHELLCHECK_WARNING (CWE-457): [#def458]
/usr/lib/dracut/modules.d/70lvm/module-setup.sh:56:58: warning[SC2154]: initdir is referenced but not assigned.
#   54|           local _lvmconf
#   55|           _lvmconf=$(cmdline)
#   56|->         [[ $_lvmconf ]] && printf "%s\n" "$_lvmconf" >> "${initdir}/etc/cmdline.d/90lvm.conf"
#   57|       fi
#   58|   

Error: SHELLCHECK_WARNING (CWE-457): [#def459]
/usr/lib/dracut/modules.d/70lvm/module-setup.sh:59:17: warning[SC2154]: moddir is referenced but not assigned.
#   57|       fi
#   58|   
#   59|->     inst_rules "$moddir/64-lvm.rules"
#   60|   
#   61|       if [[ ${hostonly-} ]] || [[ $lvmconf == "yes" ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def460]
/usr/lib/dracut/modules.d/70lvm/module-setup.sh:61:33: warning[SC2154]: lvmconf is referenced but not assigned (did you mean '_lvmconf'?).
#   59|       inst_rules "$moddir/64-lvm.rules"
#   60|   
#   61|->     if [[ ${hostonly-} ]] || [[ $lvmconf == "yes" ]]; then
#   62|           if [[ -f "${dracutsysrootdir-}/etc/lvm/lvm.conf" ]]; then
#   63|               inst_simple -H /etc/lvm/lvm.conf

Error: SHELLCHECK_WARNING (CWE-457): [#def461]
/usr/lib/dracut/modules.d/70lvm/module-setup.sh:72:15: warning[SC2154]: system_id_source is referenced but not assigned.
#   70|           fi
#   71|           eval "$(lvm dumpconfig global/system_id_source &> /dev/null)"
#   72|->         if [ "$system_id_source" == "file" ]; then
#   73|               eval "$(lvm dumpconfig global/system_id_file)"
#   74|               if [ -f "$system_id_file" ]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def462]
/usr/lib/dracut/modules.d/70lvm/module-setup.sh:74:22: warning[SC2154]: system_id_file is referenced but not assigned.
#   72|           if [ "$system_id_source" == "file" ]; then
#   73|               eval "$(lvm dumpconfig global/system_id_file)"
#   74|->             if [ -f "$system_id_file" ]; then
#   75|                   inst_simple -H "$system_id_file"
#   76|               fi

Error: SHELLCHECK_WARNING: [#def463]
/usr/lib/dracut/modules.d/70mdraid/md-shutdown.sh:4:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    2|   
#    3|   _do_md_shutdown() {
#    4|->     local ret
#    5|       local final="$1"
#    6|       info "Waiting for mdraid devices to be clean."

Error: SHELLCHECK_WARNING: [#def464]
/usr/lib/dracut/modules.d/70mdraid/md-shutdown.sh:5:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    3|   _do_md_shutdown() {
#    4|       local ret
#    5|->     local final="$1"
#    6|       info "Waiting for mdraid devices to be clean."
#    7|       mdadm -vv --wait-clean --scan | vinfo

Error: SHELLCHECK_WARNING: [#def465]
/usr/lib/dracut/modules.d/70mdraid/mdmon-pre-shutdown.sh:4:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    2|   
#    3|   _do_mdmon_takeover() {
#    4|->     local ret
#    5|       mdmon --takeover --all
#    6|       ret=$?

Error: SHELLCHECK_WARNING (CWE-277): [#def466]
/usr/lib/dracut/modules.d/70mdraid/mdmon-pre-udev.sh:3:28: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#    1|   #!/usr/bin/sh
#    2|   # save state dir for mdmon/mdadm for the real root
#    3|-> [ -d /run/mdadm ] || mkdir -m 0755 -p /run/mdadm
#    4|   # backward compat link

Error: SHELLCHECK_WARNING: [#def467]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:6:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    4|   
#    5|   _md_start() {
#    6|->     local _udevinfo
#    7|       local _path_s
#    8|       local _path_d

Error: SHELLCHECK_WARNING: [#def468]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|   _md_start() {
#    6|       local _udevinfo
#    7|->     local _path_s
#    8|       local _path_d
#    9|       local _md="$1"

Error: SHELLCHECK_WARNING: [#def469]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:8:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    6|       local _udevinfo
#    7|       local _path_s
#    8|->     local _path_d
#    9|       local _md="$1"
#   10|   

Error: SHELLCHECK_WARNING: [#def470]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:9:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    7|       local _path_s
#    8|       local _path_d
#    9|->     local _md="$1"
#   10|   
#   11|       _udevinfo="$(udevadm info --query=property --name="${_md}")"

Error: SHELLCHECK_WARNING (CWE-457): [#def471]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:28:10: warning[SC2154]: hookdir is referenced but not assigned.
#   26|       _path_d="${_path_s%/*}/degraded"
#   27|       [ ! -r "$_path_d" ] && return 0
#   28|->     : > "$hookdir"/initqueue/work
#   29|   }
#   30|   

Error: SHELLCHECK_WARNING: [#def472]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:32:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   30|   
#   31|   _md_force_run() {
#   32|->     local _md
#   33|       local _UUID
#   34|       local _MD_UUID

Error: SHELLCHECK_WARNING: [#def473]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:33:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   31|   _md_force_run() {
#   32|       local _md
#   33|->     local _UUID
#   34|       local _MD_UUID
#   35|       local _LEFT_UUID

Error: SHELLCHECK_WARNING: [#def474]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:34:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   32|       local _md
#   33|       local _UUID
#   34|->     local _MD_UUID
#   35|       local _LEFT_UUID
#   36|       local _uuid

Error: SHELLCHECK_WARNING: [#def475]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:35:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   33|       local _UUID
#   34|       local _MD_UUID
#   35|->     local _LEFT_UUID
#   36|       local _uuid
#   37|   

Error: SHELLCHECK_WARNING: [#def476]
/usr/lib/dracut/modules.d/70mdraid/mdraid_start.sh:36:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   34|       local _MD_UUID
#   35|       local _LEFT_UUID
#   36|->     local _uuid
#   37|   
#   38|       _MD_UUID=$(getargs rd.md.uuid -d rd_MD_UUID=)

Error: SHELLCHECK_WARNING (CWE-457): [#def477]
/usr/lib/dracut/modules.d/70mdraid/module-setup.sh:11:21: warning[SC2154]: host_fs_types is referenced but not assigned.
#    9|   
#   10|       [[ $hostonly ]] || [[ $mount_needs ]] && {
#   11|->         for dev in "${!host_fs_types[@]}"; do
#   12|               [[ ${host_fs_types[$dev]} != *_raid_member ]] && continue
#   13|   

Error: SHELLCHECK_WARNING (CWE-457): [#def478]
/usr/lib/dracut/modules.d/70mdraid/module-setup.sh:73:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#   71|       inst mdadm /sbin/mdadm
#   72|   
#   73|->     if [[ $hostonly_cmdline == "yes" ]]; then
#   74|           local _raidconf
#   75|           _raidconf=$(cmdline)

Error: SHELLCHECK_WARNING (CWE-457): [#def479]
/usr/lib/dracut/modules.d/70mdraid/module-setup.sh:76:60: warning[SC2154]: initdir is referenced but not assigned.
#   74|           local _raidconf
#   75|           _raidconf=$(cmdline)
#   76|->         [[ $_raidconf ]] && printf "%s\n" "$_raidconf" >> "${initdir}/etc/cmdline.d/90mdraid.conf"
#   77|       fi
#   78|   

Error: SHELLCHECK_WARNING (CWE-457): [#def480]
/usr/lib/dracut/modules.d/70mdraid/module-setup.sh:85:24: warning[SC2154]: udevdir is referenced but not assigned.
#   83|       # assembled
#   84|       # shellcheck disable=SC2016
#   85|->     if [ -f "${initdir}${udevdir}/rules.d/64-md-raid-assembly.rules" ]; then
#   86|           sed -i -r -e '/(RUN|IMPORT\{program\})\+?="[[:alpha:]/]*mdadm[[:blank:]]+(--incremental|-I)[[:blank:]]+(--export )?(\$env\{DEVNAME\}|\$devnode)/d' \
#   87|               "${initdir}${udevdir}/rules.d/64-md-raid-assembly.rules"

Error: SHELLCHECK_WARNING (CWE-457): [#def481]
/usr/lib/dracut/modules.d/70mdraid/module-setup.sh:90:17: warning[SC2154]: moddir is referenced but not assigned.
#   88|       fi
#   89|   
#   90|->     inst_rules "$moddir/65-md-incremental-imsm.rules"
#   91|   
#   92|       inst_rules "$moddir/59-persistent-storage-md.rules"

Error: SHELLCHECK_WARNING (CWE-457): [#def482]
/usr/lib/dracut/modules.d/70mdraid/module-setup.sh:94:33: warning[SC2154]: mdadmconf is referenced but not assigned.
#   92|       inst_rules "$moddir/59-persistent-storage-md.rules"
#   93|   
#   94|->     if [[ ${hostonly-} ]] || [[ $mdadmconf == "yes" ]]; then
#   95|           if [[ -f "${dracutsysrootdir-}/etc/mdadm.conf" ]]; then
#   96|               inst -H /etc/mdadm.conf

Error: SHELLCHECK_WARNING (CWE-457): [#def483]
/usr/lib/dracut/modules.d/70mdraid/module-setup.sh:118:39: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#  116|       inst_script "$moddir/mdraid_start.sh" /sbin/mdraid_start
#  117|       if dracut_module_included "systemd"; then
#  118|->         if [[ -e "${dracutsysrootdir-}$systemdsystemunitdir/mdmon@.service" ]]; then
#  119|               inst_simple "$systemdsystemunitdir"/mdmon@.service
#  120|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def484]
/usr/lib/dracut/modules.d/70mdraid/parse-md.sh:45:15: warning[SC2154]: hookdir is referenced but not assigned.
#   43|   if [ -e /etc/mdadm.conf ] && getargbool 1 rd.md.conf -d -n rd_NO_MDADMCONF; then
#   44|       udevproperty rd_MDADMCONF=1
#   45|->     rm -f -- "$hookdir"/pre-pivot/*mdraid-cleanup.sh
#   46|   fi
#   47|   

Error: SHELLCHECK_WARNING (CWE-457): [#def485]
/usr/lib/dracut/modules.d/70multipath/module-setup.sh:94:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   92|   
#   93|       inst_multiple \
#   94|->         "$systemdsystemunitdir"/multipathd.service \
#   95|           pkill \
#   96|           kpartx \

Error: SHELLCHECK_WARNING (CWE-457): [#def486]
/usr/lib/dracut/modules.d/70multipath/module-setup.sh:111:10: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#  109|           /etc/multipath/* \
#  110|           "$config_dir"/* \
#  111|->         "$tmpfilesdir/multipath.conf"
#  112|   
#  113|       mpathconf_installed \

Error: SHELLCHECK_WARNING (CWE-457): [#def487]
/usr/lib/dracut/modules.d/70multipath/module-setup.sh:114:37: warning[SC2154]: hostonly_mode is referenced but not assigned.
#  112|   
#  113|       mpathconf_installed \
#  114|->         && [[ ${hostonly-} ]] && [[ $hostonly_mode == "strict" ]] && {
#  115|           for_each_host_dev_and_slaves_all add_hostonly_mpath_conf
#  116|           if ((${#_allow[@]} > 0)); then

Error: SHELLCHECK_WARNING (CWE-457): [#def488]
/usr/lib/dracut/modules.d/70multipath/module-setup.sh:122:48: warning[SC2154]: initdir is referenced but not assigned.
#  120|                   _args+=("--allow" "$_dev")
#  121|               done
#  122|->             mpathconf "${_args[@]}" --outfile "${initdir}"/etc/multipath.conf
#  123|           fi
#  124|       }

Error: SHELLCHECK_WARNING (CWE-457): [#def489]
/usr/lib/dracut/modules.d/70multipath/module-setup.sh:144:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#  142|       inst_libdir_file 'libgcc_s.so*'
#  143|   
#  144|->     if [[ $hostonly_cmdline == "yes" ]]; then
#  145|           local _conf
#  146|           _conf=$(cmdline)

Error: SHELLCHECK_WARNING (CWE-457): [#def490]
/usr/lib/dracut/modules.d/70multipath/module-setup.sh:152:26: warning[SC2154]: moddir is referenced but not assigned.
#  150|       if dracut_module_included "systemd"; then
#  151|           if mpathconf_installed; then
#  152|->             inst_simple "${moddir}/multipathd-configure.service" "${systemdsystemunitdir}/multipathd-configure.service"
#  153|               $SYSTEMCTL -q --root "$initdir" enable multipathd-configure.service
#  154|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def491]
/usr/lib/dracut/modules.d/70numlock/module-setup.sh:28:37: warning[SC2154]: moddir is referenced but not assigned.
#   26|           setleds
#   27|   
#   28|->     inst_hook initqueue/settled 90 "$moddir/numlock.sh"
#   29|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def492]
/usr/lib/dracut/modules.d/70overlayfs/module-setup.sh:17:29: warning[SC2154]: moddir is referenced but not assigned.
#   15|   
#   16|   install() {
#   17|->     inst_hook pre-mount 01 "$moddir/prepare-overlayfs.sh"
#   18|       inst_hook mount 01 "$moddir/mount-overlayfs.sh"     # overlay on top of block device
#   19|       inst_hook pre-pivot 10 "$moddir/mount-overlayfs.sh" # overlay on top of network device (e.g. nfs)

Error: SHELLCHECK_WARNING (CWE-277): [#def493]
/usr/lib/dracut/modules.d/70overlayfs/prepare-overlayfs.sh:10:15: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#    8|   if [ -n "$overlayfs" ]; then
#    9|       if ! [ -e /run/rootfsbase ]; then
#   10|->         mkdir -m 0755 -p /run/rootfsbase
#   11|           mount --bind "$NEWROOT" /run/rootfsbase
#   12|       fi

Error: SHELLCHECK_WARNING (CWE-277): [#def494]
/usr/lib/dracut/modules.d/70overlayfs/prepare-overlayfs.sh:14:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   12|       fi
#   13|   
#   14|->     mkdir -m 0755 -p /run/overlayfs
#   15|       mkdir -m 0755 -p /run/ovlwork
#   16|       if [ -n "$reset_overlay" ] && [ -h /run/overlayfs ]; then

Error: SHELLCHECK_WARNING (CWE-277): [#def495]
/usr/lib/dracut/modules.d/70overlayfs/prepare-overlayfs.sh:15:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   13|   
#   14|       mkdir -m 0755 -p /run/overlayfs
#   15|->     mkdir -m 0755 -p /run/ovlwork
#   16|       if [ -n "$reset_overlay" ] && [ -h /run/overlayfs ]; then
#   17|           ovlfsdir=$(readlink /run/overlayfs)

Error: SHELLCHECK_WARNING (CWE-457): [#def496]
/usr/lib/dracut/modules.d/70pcmcia/module-setup.sh:25:10: warning[SC2154]: udevdir is referenced but not assigned.
#   23|   
#   24|       inst_multiple -o \
#   25|->         "${udevdir}"/pcmcia-socket-startup \
#   26|           "${udevdir}"/pcmcia-check-broken-cis
#   27|   

Error: SHELLCHECK_WARNING: [#def497]
/usr/lib/dracut/modules.d/70ppcmac/load-thermal.sh:9:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    7|   
#    8|   load_windfarm() {
#    9|->     local pm_model
#   10|       pm_model="$(sed -n '/model/p' /proc/cpuinfo)"
#   11|       pm_model="${pm_model##*: }"

Error: SHELLCHECK_WARNING (CWE-457): [#def498]
/usr/lib/dracut/modules.d/70ppcmac/module-setup.sh:36:15: warning[SC2154]: hostonly_mode is referenced but not assigned.
#   34|       # only PowerMac3,6 has a module, special case
#   35|       if [[ ${DRACUT_ARCH:-$(uname -m)} != ppc64* ]]; then
#   36|->         if [[ $hostonly_mode != "strict" ]] || [[ ${hostonly-} && "$(pmac_model)" == "PowerMac3,6" ]]; then
#   37|               hostonly=$(optional_hostonly) instmods therm_windtunnel
#   38|           fi

Error: SHELLCHECK_WARNING (CWE-457): [#def499]
/usr/lib/dracut/modules.d/70ppcmac/module-setup.sh:77:28: warning[SC2154]: moddir is referenced but not assigned.
#   75|   install() {
#   76|       # this will attempt to load the appropriate modules
#   77|->     inst_hook pre-udev 99 "$moddir/load-thermal.sh"
#   78|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def500]
/usr/lib/dracut/modules.d/70uefi-lib/module-setup.sh:16:18: warning[SC2154]: moddir is referenced but not assigned.
#   14|   # called by dracut
#   15|   install() {
#   16|->     inst_simple "$moddir/uefi-lib.sh" "/lib/uefi-lib.sh"
#   17|   }

Error: SHELLCHECK_WARNING: [#def501]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:14:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   12|   # device - device to be opened by cryptsetup; only to display in prompt
#   13|   gpg_decrypt() {
#   14|->     local mntp="$1"
#   15|       local keypath="$2"
#   16|       local keydev="$3"

Error: SHELLCHECK_WARNING: [#def502]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:15:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   13|   gpg_decrypt() {
#   14|       local mntp="$1"
#   15|->     local keypath="$2"
#   16|       local keydev="$3"
#   17|       local device="$4"

Error: SHELLCHECK_WARNING: [#def503]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:16:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   14|       local mntp="$1"
#   15|       local keypath="$2"
#   16|->     local keydev="$3"
#   17|       local device="$4"
#   18|   

Error: SHELLCHECK_WARNING: [#def504]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:17:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   15|       local keypath="$2"
#   16|       local keydev="$3"
#   17|->     local device="$4"
#   18|   
#   19|       local gpghome=/tmp/gnupg

Error: SHELLCHECK_WARNING: [#def505]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:19:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   17|       local device="$4"
#   18|   
#   19|->     local gpghome=/tmp/gnupg
#   20|       local opts="--homedir $gpghome --no-mdc-warning --skip-verify --quiet"
#   21|       opts="$opts --logger-file /dev/null --batch --no-tty --passphrase-fd 0"

Error: SHELLCHECK_WARNING: [#def506]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:20:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   18|   
#   19|       local gpghome=/tmp/gnupg
#   20|->     local opts="--homedir $gpghome --no-mdc-warning --skip-verify --quiet"
#   21|       opts="$opts --logger-file /dev/null --batch --no-tty --passphrase-fd 0"
#   22|   

Error: SHELLCHECK_WARNING (CWE-277): [#def507]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:23:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   21|       opts="$opts --logger-file /dev/null --batch --no-tty --passphrase-fd 0"
#   22|   
#   23|->     mkdir -m 0700 -p "$gpghome"
#   24|   
#   25|       # Setup GnuPG home and gpg-agent for usage of OpenPGP smartcard.

Error: SHELLCHECK_WARNING: [#def508]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:31:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   29|       # program needed with GnuPG < 2.1), making for uncomplicated
#   30|       # integration with the existing codebase.
#   31|->     local useSmartcard="0"
#   32|       local gpgMajorVersion
#   33|       local gpgMinorVersion

Error: SHELLCHECK_WARNING: [#def509]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:32:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   30|       # integration with the existing codebase.
#   31|       local useSmartcard="0"
#   32|->     local gpgMajorVersion
#   33|       local gpgMinorVersion
#   34|       local cmd

Error: SHELLCHECK_WARNING: [#def510]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:33:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   31|       local useSmartcard="0"
#   32|       local gpgMajorVersion
#   33|->     local gpgMinorVersion
#   34|       local cmd
#   35|       gpgMajorVersion="$(gpg --version | sed -n 1p | sed -n -r -e 's|.* ([0-9]*).*|\1|p')"

Error: SHELLCHECK_WARNING: [#def511]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:34:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   32|       local gpgMajorVersion
#   33|       local gpgMinorVersion
#   34|->     local cmd
#   35|       gpgMajorVersion="$(gpg --version | sed -n 1p | sed -n -r -e 's|.* ([0-9]*).*|\1|p')"
#   36|       gpgMinorVersion="$(gpg --version | sed -n 1p | sed -n -r -e 's|.* [0-9]*\.([0-9]*).*|\1|p')"

Error: SHELLCHECK_WARNING: [#def512]
/usr/lib/dracut/modules.d/73crypt-gpg/crypt-gpg-lib.sh:47:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   45|           done
#   46|           GNUPGHOME="$gpghome" gpg-connect-agent 1> /dev/null learn /bye
#   47|->         local smartcardSerialNumber
#   48|           smartcardSerialNumber="$(GNUPGHOME=$gpghome gpg --no-tty --card-status \
#   49|               | sed -n -r -e 's|Serial number.*: ([0-9]*)|\1|p' | tr -d '\n')"

Error: SHELLCHECK_WARNING (CWE-457): [#def513]
/usr/lib/dracut/modules.d/73crypt-gpg/module-setup.sh:27:11: warning[SC2154]: moddir is referenced but not assigned.
#   25|   install() {
#   26|       inst_multiple gpg tr
#   27|->     inst "$moddir/crypt-gpg-lib.sh" "/lib/dracut-crypt-gpg-lib.sh"
#   28|   
#   29|       if sc_requested; then

Error: SHELLCHECK_WARNING (CWE-457): [#def514]
/usr/lib/dracut/modules.d/73crypt-gpg/module-setup.sh:35:44: warning[SC2154]: initdir is referenced but not assigned.
#   33|   
#   34|           while IFS= read -r -d '' key; do
#   35|->             cp "${dracutsysrootdir-}$key" "${initdir}/root/"
#   36|           done < <(sc_public_key)
#   37|       fi

Error: SHELLCHECK_WARNING: [#def515]
/usr/lib/dracut/modules.d/73crypt-loop/crypt-loop-lib.sh:14:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   12|   # device - device to be opened by cryptsetup; only to display in prompt
#   13|   loop_decrypt() {
#   14|->     local mntp="$1"
#   15|       local keypath="$2"
#   16|       local keydev="$3"

Error: SHELLCHECK_WARNING: [#def516]
/usr/lib/dracut/modules.d/73crypt-loop/crypt-loop-lib.sh:15:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   13|   loop_decrypt() {
#   14|       local mntp="$1"
#   15|->     local keypath="$2"
#   16|       local keydev="$3"
#   17|       local device="$4"

Error: SHELLCHECK_WARNING: [#def517]
/usr/lib/dracut/modules.d/73crypt-loop/crypt-loop-lib.sh:16:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   14|       local mntp="$1"
#   15|       local keypath="$2"
#   16|->     local keydev="$3"
#   17|       local device="$4"
#   18|       local key

Error: SHELLCHECK_WARNING: [#def518]
/usr/lib/dracut/modules.d/73crypt-loop/crypt-loop-lib.sh:17:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   15|       local keypath="$2"
#   16|       local keydev="$3"
#   17|->     local device="$4"
#   18|       local key
#   19|   

Error: SHELLCHECK_WARNING: [#def519]
/usr/lib/dracut/modules.d/73crypt-loop/crypt-loop-lib.sh:18:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   16|       local keydev="$3"
#   17|       local device="$4"
#   18|->     local key
#   19|   
#   20|       key="/dev/mapper/$(str_replace "loop-$keydev-$mntp-$keypath" '/' '-')"

Error: SHELLCHECK_WARNING: [#def520]
/usr/lib/dracut/modules.d/73crypt-loop/crypt-loop-lib.sh:23:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   21|   
#   22|       if [ ! -b "$key" ]; then
#   23|->         local loopdev
#   24|           local opts
#   25|           loopdev=$(losetup -f "${mntp}/${keypath}" --show)

Error: SHELLCHECK_WARNING: [#def521]
/usr/lib/dracut/modules.d/73crypt-loop/crypt-loop-lib.sh:24:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   22|       if [ ! -b "$key" ]; then
#   23|           local loopdev
#   24|->         local opts
#   25|           loopdev=$(losetup -f "${mntp}/${keypath}" --show)
#   26|           opts="-d - luksOpen $loopdev ${key##*/}"

Error: SHELLCHECK_WARNING (CWE-457): [#def522]
/usr/lib/dracut/modules.d/73crypt-loop/crypt-loop-lib.sh:35:58: warning[SC2154]: hookdir is referenced but not assigned.
#   33|           [ -b "$key" ] || die "Failed to unlock $keypath on $keydev for $device."
#   34|   
#   35|->         printf "%s\n" "cryptsetup luksClose \"$key\"" > "${hookdir}/cleanup/crypt-loop-cleanup-10-${key##*/}.sh"
#   36|           printf "%s\n" "losetup -d \"$loopdev\"" > "${hookdir}/cleanup/crypt-loop-cleanup-20-${loopdev##*/}.sh"
#   37|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def523]
/usr/lib/dracut/modules.d/73crypt-loop/module-setup.sh:23:11: warning[SC2154]: moddir is referenced but not assigned.
#   21|   install() {
#   22|       inst_multiple losetup
#   23|->     inst "$moddir/crypt-loop-lib.sh" "/lib/dracut-crypt-loop-lib.sh"
#   24|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def524]
/usr/lib/dracut/modules.d/73pcsc/module-setup.sh:28:18: warning[SC2154]: moddir is referenced but not assigned.
#   26|   # Install the required file(s) and directories for the module in the initramfs.
#   27|   install() {
#   28|->     inst_simple "$moddir/pcscd.service" "${systemdsystemunitdir}"/pcscd.service
#   29|       inst_simple "$moddir/pcscd.socket" "${systemdsystemunitdir}"/pcscd.socket
#   30|   

Error: SHELLCHECK_WARNING (CWE-457): [#def525]
/usr/lib/dracut/modules.d/73pcsc/module-setup.sh:28:42: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   26|   # Install the required file(s) and directories for the module in the initramfs.
#   27|   install() {
#   28|->     inst_simple "$moddir/pcscd.service" "${systemdsystemunitdir}"/pcscd.service
#   29|       inst_simple "$moddir/pcscd.socket" "${systemdsystemunitdir}"/pcscd.socket
#   30|   

Error: SHELLCHECK_WARNING (CWE-457): [#def526]
/usr/lib/dracut/modules.d/73pcsc/module-setup.sh:39:31: warning[SC2154]: initdir is referenced but not assigned.
#   37|           pcscd.service \
#   38|           pcscd.socket; do
#   39|->         $SYSTEMCTL -q --root "$initdir" enable "$i"
#   40|       done
#   41|   

Error: SHELLCHECK_WARNING (CWE-457): [#def527]
/usr/lib/dracut/modules.d/73tpm2-tss/module-setup.sh:36:10: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   34|   
#   35|       inst_multiple -o \
#   36|->         "$tmpfilesdir"/tpm2-tss-fapi.conf \
#   37|           "$udevrulesdir"/60-tpm-udev.rules \
#   38|           "$systemdutildir"/system-generators/systemd-tpm2-generator \

Error: SHELLCHECK_WARNING (CWE-457): [#def528]
/usr/lib/dracut/modules.d/73tpm2-tss/module-setup.sh:37:10: warning[SC2154]: udevrulesdir is referenced but not assigned.
#   35|       inst_multiple -o \
#   36|           "$tmpfilesdir"/tpm2-tss-fapi.conf \
#   37|->         "$udevrulesdir"/60-tpm-udev.rules \
#   38|           "$systemdutildir"/system-generators/systemd-tpm2-generator \
#   39|           "$systemdsystemunitdir/tpm2.target" \

Error: SHELLCHECK_WARNING (CWE-457): [#def529]
/usr/lib/dracut/modules.d/73tpm2-tss/module-setup.sh:38:10: warning[SC2154]: systemdutildir is referenced but not assigned.
#   36|           "$tmpfilesdir"/tpm2-tss-fapi.conf \
#   37|           "$udevrulesdir"/60-tpm-udev.rules \
#   38|->         "$systemdutildir"/system-generators/systemd-tpm2-generator \
#   39|           "$systemdsystemunitdir/tpm2.target" \
#   40|           tpm2_pcrread tpm2_pcrextend tpm2_createprimary tpm2_createpolicy \

Error: SHELLCHECK_WARNING (CWE-457): [#def530]
/usr/lib/dracut/modules.d/73tpm2-tss/module-setup.sh:39:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   37|           "$udevrulesdir"/60-tpm-udev.rules \
#   38|           "$systemdutildir"/system-generators/systemd-tpm2-generator \
#   39|->         "$systemdsystemunitdir/tpm2.target" \
#   40|           tpm2_pcrread tpm2_pcrextend tpm2_createprimary tpm2_createpolicy \
#   41|           tpm2_create tpm2_load tpm2_unseal tpm2

Error: SHELLCHECK_WARNING: [#def531]
/usr/lib/dracut/modules.d/74cifs/cifs-lib.sh:11:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    9|   
#   10|   cifs_to_var() {
#   11|->     local cifsuser
#   12|       local cifspass
#   13|       # Check required arguments

Error: SHELLCHECK_WARNING: [#def532]
/usr/lib/dracut/modules.d/74cifs/cifs-lib.sh:12:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   10|   cifs_to_var() {
#   11|       local cifsuser
#   12|->     local cifspass
#   13|       # Check required arguments
#   14|       server=${1##cifs://}

Error: SHELLCHECK_WARNING (CWE-457): [#def533]
/usr/lib/dracut/modules.d/74cifs/cifsroot.sh:16:15: warning[SC2154]: server is referenced but not assigned.
#   14|   cifs_to_var "$root"
#   15|   
#   16|-> mount.cifs "//$server/$path" "$NEWROOT" -o "$options" && { [ -e /dev/root ] || ln -s null /dev/root; }
#   17|   
#   18|   # inject new exit_if_exists

Error: SHELLCHECK_WARNING (CWE-457): [#def534]
/usr/lib/dracut/modules.d/74cifs/cifsroot.sh:16:23: warning[SC2154]: path is referenced but not assigned.
#   14|   cifs_to_var "$root"
#   15|   
#   16|-> mount.cifs "//$server/$path" "$NEWROOT" -o "$options" && { [ -e /dev/root ] || ln -s null /dev/root; }
#   17|   
#   18|   # inject new exit_if_exists

Error: SHELLCHECK_WARNING (CWE-457): [#def535]
/usr/lib/dracut/modules.d/74cifs/cifsroot.sh:16:45: warning[SC2154]: options is referenced but not assigned.
#   14|   cifs_to_var "$root"
#   15|   
#   16|-> mount.cifs "//$server/$path" "$NEWROOT" -o "$options" && { [ -e /dev/root ] || ln -s null /dev/root; }
#   17|   
#   18|   # inject new exit_if_exists

Error: SHELLCHECK_WARNING (CWE-457): [#def536]
/usr/lib/dracut/modules.d/74cifs/cifsroot.sh:20:79: warning[SC2154]: hookdir is referenced but not assigned.
#   18|   # inject new exit_if_exists
#   19|   # shellcheck disable=SC2016
#   20|-> echo 'settle_exit_if_exists="--exit-if-exists=/dev/root"; rm -f -- "$job"' > "$hookdir"/initqueue/cifs.sh
#   21|   # force udevsettle to break
#   22|   : > "$hookdir"/initqueue/work

Error: SHELLCHECK_WARNING (CWE-457): [#def537]
/usr/lib/dracut/modules.d/74cifs/module-setup.sh:9:20: warning[SC2154]: host_fs_types is referenced but not assigned.
#    7|   
#    8|       [[ $hostonly ]] || [[ $mount_needs ]] && {
#    9|->         for fs in "${host_fs_types[@]}"; do
#   10|               [[ $fs == "cifs" ]] && return 0
#   11|           done

Error: SHELLCHECK_WARNING (CWE-457): [#def538]
/usr/lib/dracut/modules.d/74cifs/module-setup.sh:54:27: warning[SC2154]: moddir is referenced but not assigned.
#   52|       inst_libdir_file -n "$_nsslibs" 'libnss_*.so*'
#   53|   
#   54|->     inst_hook cmdline 90 "$moddir/parse-cifsroot.sh"
#   55|       inst "$moddir/cifsroot.sh" "/sbin/cifsroot"
#   56|       inst "$moddir/cifs-lib.sh" "/lib/cifs-lib.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def539]
/usr/lib/dracut/modules.d/74cifs/parse-cifsroot.sh:51:32: warning[SC2154]: hookdir is referenced but not assigned.
#   49|   
#   50|   # shellcheck disable=SC2016
#   51|-> echo '[ -e $NEWROOT/proc ]' > "$hookdir"/initqueue/finished/cifsroot.sh

Error: SHELLCHECK_WARNING (CWE-457): [#def540]
/usr/lib/dracut/modules.d/74debug/module-setup.sh:50:73: warning[SC2154]: initdir is referenced but not assigned.
#   48|           vi
#   49|   
#   50|->     grep '^tcpdump:' "${dracutsysrootdir-}"/etc/passwd 2> /dev/null >> "$initdir/etc/passwd"
#   51|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def541]
/usr/lib/dracut/modules.d/74fcoe-uefi/module-setup.sh:27:27: warning[SC2154]: moddir is referenced but not assigned.
#   25|   # called by dracut
#   26|   install() {
#   27|->     inst_hook cmdline 20 "$moddir/parse-uefifcoe.sh"
#   28|   }

Error: SHELLCHECK_WARNING: [#def542]
/usr/lib/dracut/modules.d/74fcoe/fcoe-edd.sh:8:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    6|   
#    7|   check_edd() {
#    8|->     local cnt=0
#    9|   
#   10|       [ -d /sys/firmware/edd ] && return 0

Error: SHELLCHECK_WARNING (CWE-277): [#def543]
/usr/lib/dracut/modules.d/74fcoe/module-setup.sh:106:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  104|       fi
#  105|   
#  106|->     mkdir -m 0755 -p "$initdir/var/lib/lldpad"
#  107|       mkdir -m 0755 -p "$initdir/etc/fcoe"
#  108|   

Error: SHELLCHECK_WARNING (CWE-457): [#def544]
/usr/lib/dracut/modules.d/74fcoe/module-setup.sh:106:23: warning[SC2154]: initdir is referenced but not assigned.
#  104|       fi
#  105|   
#  106|->     mkdir -m 0755 -p "$initdir/var/lib/lldpad"
#  107|       mkdir -m 0755 -p "$initdir/etc/fcoe"
#  108|   

Error: SHELLCHECK_WARNING (CWE-277): [#def545]
/usr/lib/dracut/modules.d/74fcoe/module-setup.sh:107:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  105|   
#  106|       mkdir -m 0755 -p "$initdir/var/lib/lldpad"
#  107|->     mkdir -m 0755 -p "$initdir/etc/fcoe"
#  108|   
#  109|       if [[ $hostonly_cmdline == "yes" ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def546]
/usr/lib/dracut/modules.d/74fcoe/module-setup.sh:109:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#  107|       mkdir -m 0755 -p "$initdir/etc/fcoe"
#  108|   
#  109|->     if [[ $hostonly_cmdline == "yes" ]]; then
#  110|           local _fcoeconf
#  111|           _fcoeconf=$(cmdline)

Error: SHELLCHECK_WARNING (CWE-457): [#def547]
/usr/lib/dracut/modules.d/74fcoe/module-setup.sh:116:11: warning[SC2154]: moddir is referenced but not assigned.
#  114|       inst_multiple "/etc/fcoe/cfg-*"
#  115|   
#  116|->     inst "$moddir/fcoe-up.sh" "/sbin/fcoe-up"
#  117|       inst "$moddir/fcoe-edd.sh" "/sbin/fcoe-edd"
#  118|       inst_hook pre-trigger 03 "$moddir/lldpad.sh"

Error: SHELLCHECK_WARNING: [#def548]
/usr/lib/dracut/modules.d/74fcoe/parse-fcoe.sh:33:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   31|   
#   32|   parse_fcoe_opts() {
#   33|->     local fcoe_interface
#   34|       local fcoe_dcb
#   35|       local fcoe_mode

Error: SHELLCHECK_WARNING: [#def549]
/usr/lib/dracut/modules.d/74fcoe/parse-fcoe.sh:34:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   32|   parse_fcoe_opts() {
#   33|       local fcoe_interface
#   34|->     local fcoe_dcb
#   35|       local fcoe_mode
#   36|       local fcoe_mac

Error: SHELLCHECK_WARNING: [#def550]
/usr/lib/dracut/modules.d/74fcoe/parse-fcoe.sh:35:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   33|       local fcoe_interface
#   34|       local fcoe_dcb
#   35|->     local fcoe_mode
#   36|       local fcoe_mac
#   37|       local OLDIFS="$IFS"

Error: SHELLCHECK_WARNING: [#def551]
/usr/lib/dracut/modules.d/74fcoe/parse-fcoe.sh:36:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   34|       local fcoe_dcb
#   35|       local fcoe_mode
#   36|->     local fcoe_mac
#   37|       local OLDIFS="$IFS"
#   38|       local IFS=:

Error: SHELLCHECK_WARNING: [#def552]
/usr/lib/dracut/modules.d/74fcoe/parse-fcoe.sh:37:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   35|       local fcoe_mode
#   36|       local fcoe_mac
#   37|->     local OLDIFS="$IFS"
#   38|       local IFS=:
#   39|       # shellcheck disable=SC2086

Error: SHELLCHECK_WARNING: [#def553]
/usr/lib/dracut/modules.d/74fcoe/parse-fcoe.sh:38:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   36|       local fcoe_mac
#   37|       local OLDIFS="$IFS"
#   38|->     local IFS=:
#   39|       # shellcheck disable=SC2086
#   40|       # shellcheck disable=SC2048

Error: SHELLCHECK_WARNING (CWE-457): [#def554]
/usr/lib/dracut/modules.d/74fstab-sys/module-setup.sh:16:29: warning[SC2154]: moddir is referenced but not assigned.
#   14|   install() {
#   15|       [[ -f "${dracutsysrootdir-}/etc/fstab.sys" ]] && inst_simple /etc/fstab.sys
#   16|->     inst_hook pre-pivot 00 "$moddir/mount-sys.sh"
#   17|   }

Error: SHELLCHECK_WARNING: [#def555]
/usr/lib/dracut/modules.d/74fstab-sys/mount-sys.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|   
#    6|   fstab_mount() {
#    7|->     local _dev _mp _fs _opts _pass
#    8|       test -e "$1" || return 1
#    9|       info "Mounting from $1"

Error: SHELLCHECK_WARNING (CWE-457): [#def556]
/usr/lib/dracut/modules.d/74hwdb/module-setup.sh:16:10: warning[SC2154]: udevdir is referenced but not assigned.
#   14|   install() {
#   15|       inst_multiple -o \
#   16|->         "${udevdir}"/hwdb.bin
#   17|   
#   18|       # Install the hosts local user configurations if enabled.

Error: SHELLCHECK_WARNING (CWE-457): [#def557]
/usr/lib/dracut/modules.d/74hwdb/module-setup.sh:21:14: warning[SC2154]: udevconfdir is referenced but not assigned.
#   19|       if [[ ${hostonly-} ]]; then
#   20|           inst_multiple -H -o \
#   21|->             "$udevconfdir"/hwdb.bin
#   22|       fi
#   23|   }

Error: SHELLCHECK_WARNING: [#def558]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:48:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   46|   
#   47|   handle_firmware() {
#   48|->     local ifaces retry _res
#   49|   
#   50|       # Depending on the 'ql4xdisablesysfsboot' qla4xxx

Error: SHELLCHECK_WARNING: [#def559]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:95:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   93|   
#   94|   handle_netroot() {
#   95|->     local iscsi_initiator iscsi_target_name iscsi_target_ip iscsi_target_port
#   96|       local iscsi_target_group iscsirw iscsi_lun
#   97|       local iscsi_username iscsi_password

Error: SHELLCHECK_WARNING: [#def560]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:96:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   94|   handle_netroot() {
#   95|       local iscsi_initiator iscsi_target_name iscsi_target_ip iscsi_target_port
#   96|->     local iscsi_target_group iscsirw iscsi_lun
#   97|       local iscsi_username iscsi_password
#   98|       local iscsi_in_username iscsi_in_password

Error: SHELLCHECK_WARNING: [#def561]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:97:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   95|       local iscsi_initiator iscsi_target_name iscsi_target_ip iscsi_target_port
#   96|       local iscsi_target_group iscsirw iscsi_lun
#   97|->     local iscsi_username iscsi_password
#   98|       local iscsi_in_username iscsi_in_password
#   99|       local iscsi_iface_name iscsi_netdev_name

Error: SHELLCHECK_WARNING: [#def562]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:98:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   96|       local iscsi_target_group iscsirw iscsi_lun
#   97|       local iscsi_username iscsi_password
#   98|->     local iscsi_in_username iscsi_in_password
#   99|       local iscsi_iface_name iscsi_netdev_name
#  100|       local iscsi_param param

Error: SHELLCHECK_WARNING: [#def563]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:99:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   97|       local iscsi_username iscsi_password
#   98|       local iscsi_in_username iscsi_in_password
#   99|->     local iscsi_iface_name iscsi_netdev_name
#  100|       local iscsi_param param
#  101|       local p found

Error: SHELLCHECK_WARNING: [#def564]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:100:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   98|       local iscsi_in_username iscsi_in_password
#   99|       local iscsi_iface_name iscsi_netdev_name
#  100|->     local iscsi_param param
#  101|       local p found
#  102|       local login_retry_max_seen=

Error: SHELLCHECK_WARNING: [#def565]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:101:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   99|       local iscsi_iface_name iscsi_netdev_name
#  100|       local iscsi_param param
#  101|->     local p found
#  102|       local login_retry_max_seen=
#  103|   

Error: SHELLCHECK_WARNING: [#def566]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:102:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  100|       local iscsi_param param
#  101|       local p found
#  102|->     local login_retry_max_seen=
#  103|   
#  104|       # override conf settings by command line options

Error: SHELLCHECK_WARNING (CWE-457): [#def567]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:163:25: warning[SC2154]: InitiatorName is referenced but not assigned.
#  161|           [ -f /etc/initiatorname.iscsi ] && . /etc/initiatorname.iscsi
#  162|           [ -f /etc/iscsi/initiatorname.iscsi ] && . /etc/iscsi/initiatorname.iscsi
#  163|->         iscsi_initiator=$InitiatorName
#  164|       fi
#  165|   

Error: SHELLCHECK_WARNING (CWE-457): [#def568]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:211:11: warning[SC2154]: root is referenced but not assigned (did you mean 'iroot'?).
#  209|       # FIXME $iscsi_protocol??
#  210|   
#  211|->     if [ "$root" = "dhcp" ] || [ "$netroot" = "dhcp" ]; then
#  212|           # if root is not specified try to mount the whole iSCSI LUN
#  213|           printf 'SYMLINK=="disk/by-path/*-iscsi-*-%s", SYMLINK+="root"\n' "$iscsi_lun" >> /etc/udev/rules.d/99-iscsi-root.rules

Error: SHELLCHECK_WARNING (CWE-457): [#def569]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:211:35: warning[SC2154]: netroot is referenced but not assigned.
#  209|       # FIXME $iscsi_protocol??
#  210|   
#  211|->     if [ "$root" = "dhcp" ] || [ "$netroot" = "dhcp" ]; then
#  212|           # if root is not specified try to mount the whole iSCSI LUN
#  213|           printf 'SYMLINK=="disk/by-path/*-iscsi-*-%s", SYMLINK+="root"\n' "$iscsi_lun" >> /etc/udev/rules.d/99-iscsi-root.rules

Error: SHELLCHECK_WARNING (CWE-457): [#def570]
/usr/lib/dracut/modules.d/74iscsi/iscsiroot.sh:220:68: warning[SC2154]: hookdir is referenced but not assigned.
#  218|           # install mount script
#  219|           [ -z "${DRACUT_SYSTEMD-}" ] \
#  220|->             && echo "iscsi_lun=$iscsi_lun . /bin/mount-lun.sh " > "$hookdir"/mount/01-$$-iscsi.sh
#  221|       fi
#  222|   

Error: SHELLCHECK_WARNING (CWE-457): [#def571]
/usr/lib/dracut/modules.d/74iscsi/module-setup.sh:201:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#  199|   
#  200|       # Detect iBFT and perform mandatory steps
#  201|->     if [[ $hostonly_cmdline == "yes" ]]; then
#  202|           local _iscsiconf
#  203|           _iscsiconf=$(cmdline)

Error: SHELLCHECK_WARNING (CWE-457): [#def572]
/usr/lib/dracut/modules.d/74iscsi/module-setup.sh:204:62: warning[SC2154]: initdir is referenced but not assigned.
#  202|           local _iscsiconf
#  203|           _iscsiconf=$(cmdline)
#  204|->         [[ $_iscsiconf ]] && printf "%s\n" "$_iscsiconf" >> "${initdir}/etc/cmdline.d/95iscsi.conf"
#  205|       fi
#  206|   

Error: SHELLCHECK_WARNING (CWE-457): [#def573]
/usr/lib/dracut/modules.d/74iscsi/module-setup.sh:207:27: warning[SC2154]: moddir is referenced but not assigned.
#  205|       fi
#  206|   
#  207|->     inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"
#  208|       inst_hook cleanup 90 "$moddir/cleanup-iscsi.sh"
#  209|       inst "$moddir/iscsiroot.sh" "/sbin/iscsiroot"

Error: SHELLCHECK_WARNING (CWE-457): [#def574]
/usr/lib/dracut/modules.d/74iscsi/module-setup.sh:215:14: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#  213|       else
#  214|           inst_multiple -o \
#  215|->             "$systemdsystemunitdir"/iscsi.service \
#  216|               "$systemdsystemunitdir"/iscsi-init.service \
#  217|               "$systemdsystemunitdir"/iscsid.service \

Error: SHELLCHECK_WARNING (CWE-457): [#def575]
/usr/lib/dracut/modules.d/74iscsi/mount-lun.sh:8:39: warning[SC2154]: rflags is referenced but not assigned.
#    6|   
#    7|   for disk in /dev/disk/by-path/*-iscsi-*-"$iscsi_lun"; do
#    8|->     if mount -t "${fstype:-auto}" -o "$rflags" "$disk" "$NEWROOT"; then
#    9|           if [ ! -d "$NEWROOT"/proc ]; then
#   10|               umount "$disk"

Error: SHELLCHECK_WARNING (CWE-457): [#def576]
/usr/lib/dracut/modules.d/74iscsi/parse-iscsiroot.sh:89:118: warning[SC2154]: hookdir is referenced but not assigned.
#   87|       modprobe -b -q iscsi_ibft
#   88|       # if no ip= is given, but firmware
#   89|->     echo "${DRACUT_SYSTEMD+systemctl is-active initrd-root-device.target || }[ -f '/tmp/iscsistarted-firmware' ]" > "$hookdir"/initqueue/finished/iscsi_started.sh
#   90|       /sbin/initqueue --unique --online /sbin/iscsiroot online "iscsi:" "$NEWROOT"
#   91|       /sbin/initqueue --unique --onetime --timeout /sbin/iscsiroot timeout "iscsi:" "$NEWROOT"

Error: SHELLCHECK_WARNING (CWE-457): [#def577]
/usr/lib/dracut/modules.d/74lunmask/module-setup.sh:59:18: warning[SC2154]: moddir is referenced but not assigned.
#   57|   # called by dracut
#   58|   install() {
#   59|->     inst_script "$moddir/fc_transport_scan_lun.sh" /usr/lib/udev/fc_transport_scan_lun.sh
#   60|       inst_script "$moddir/sas_transport_scan_lun.sh" /usr/lib/udev/sas_transport_scan_lun.sh
#   61|       inst_hook cmdline 30 "$moddir/parse-lunmask.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def578]
/usr/lib/dracut/modules.d/74lunmask/module-setup.sh:62:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#   60|       inst_script "$moddir/sas_transport_scan_lun.sh" /usr/lib/udev/sas_transport_scan_lun.sh
#   61|       inst_hook cmdline 30 "$moddir/parse-lunmask.sh"
#   62|->     if [[ $hostonly_cmdline == "yes" ]]; then
#   63|           local _lunmask
#   64|   

Error: SHELLCHECK_WARNING (CWE-457): [#def579]
/usr/lib/dracut/modules.d/74lunmask/module-setup.sh:66:43: warning[SC2154]: initdir is referenced but not assigned.
#   64|   
#   65|           for _lunmask in $(cmdline); do
#   66|->             printf "%s\n" "$_lunmask" >> "${initdir}/etc/cmdline.d/95lunmask.conf"
#   67|           done
#   68|       fi

Error: SHELLCHECK_WARNING: [#def580]
/usr/lib/dracut/modules.d/74lunmask/parse-lunmask.sh:6:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    4|   
#    5|   create_udev_rule() {
#    6|->     local transport="$1"
#    7|       local tgtid="$2"
#    8|       local lun="$3"

Error: SHELLCHECK_WARNING: [#def581]
/usr/lib/dracut/modules.d/74lunmask/parse-lunmask.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|   create_udev_rule() {
#    6|       local transport="$1"
#    7|->     local tgtid="$2"
#    8|       local lun="$3"
#    9|       local _rule=/etc/udev/rules.d/51-"${transport}"-lunmask-"${tgtid}".rules

Error: SHELLCHECK_WARNING: [#def582]
/usr/lib/dracut/modules.d/74lunmask/parse-lunmask.sh:8:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    6|       local transport="$1"
#    7|       local tgtid="$2"
#    8|->     local lun="$3"
#    9|       local _rule=/etc/udev/rules.d/51-"${transport}"-lunmask-"${tgtid}".rules
#   10|   

Error: SHELLCHECK_WARNING: [#def583]
/usr/lib/dracut/modules.d/74lunmask/parse-lunmask.sh:9:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    7|       local tgtid="$2"
#    8|       local lun="$3"
#    9|->     local _rule=/etc/udev/rules.d/51-"${transport}"-lunmask-"${tgtid}".rules
#   10|   
#   11|       [ -e "${_rule}" ] && return 0

Error: SHELLCHECK_WARNING: [#def584]
/usr/lib/dracut/modules.d/74lunmask/parse-lunmask.sh:28:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   26|   for lunmask_arg in $(getargs rd.lunmask); do
#   27|       (
#   28|->         local OLDIFS="$IFS"
#   29|           local IFS=","
#   30|           # shellcheck disable=SC2086

Error: SHELLCHECK_WARNING: [#def585]
/usr/lib/dracut/modules.d/74lunmask/parse-lunmask.sh:29:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   27|       (
#   28|           local OLDIFS="$IFS"
#   29|->         local IFS=","
#   30|           # shellcheck disable=SC2086
#   31|           set $lunmask_arg

Error: SHELLCHECK_WARNING (CWE-457): [#def586]
/usr/lib/dracut/modules.d/74nbd/module-setup.sh:33:27: warning[SC2154]: moddir is referenced but not assigned.
#   31|   install() {
#   32|       inst nbd-client
#   33|->     inst_hook cmdline 90 "$moddir/parse-nbdroot.sh"
#   34|       inst_script "$moddir/nbdroot.sh" "/sbin/nbdroot"
#   35|       if dracut_module_included "systemd"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def587]
/usr/lib/dracut/modules.d/74nbd/module-setup.sh:36:49: warning[SC2154]: systemdutildir is referenced but not assigned.
#   34|       inst_script "$moddir/nbdroot.sh" "/sbin/nbdroot"
#   35|       if dracut_module_included "systemd"; then
#   36|->         inst_script "$moddir/nbd-generator.sh" "$systemdutildir"/system-generators/dracut-nbd-generator
#   37|       fi
#   38|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def588]
/usr/lib/dracut/modules.d/74nbd/nbdroot.sh:99:7: warning[SC2154]: root is referenced but not assigned (did you mean 'nroot'?).
#   97|   # If we didn't get a root= on the command line, then we need to
#   98|   # add the udev rules for mounting the nbd0 device
#   99|-> if [ "$root" = "block:/dev/root" ] || [ "$root" = "dhcp" ]; then
#  100|       printf 'KERNEL=="nbd0", ENV{DEVTYPE}!="partition", ENV{ID_FS_TYPE}=="?*", SYMLINK+="root"\n' > /etc/udev/rules.d/99-nbd-root.rules
#  101|       udevadm control --reload

Error: SHELLCHECK_WARNING (CWE-457): [#def589]
/usr/lib/dracut/modules.d/74nbd/nbdroot.sh:111:16: warning[SC2154]: hookdir is referenced but not assigned.
#  109|           printf '/bin/mount %s\n' \
#  110|               "$NEWROOT" \
#  111|->             > "$hookdir"/mount/01-$$-nbd.sh
#  112|       else
#  113|           mkdir -p /run/systemd/system/sysroot.mount.d

Error: SHELLCHECK_WARNING (CWE-457): [#def590]
/usr/lib/dracut/modules.d/74nbd/parse-nbdroot.sh:64:56: warning[SC2154]: hookdir is referenced but not assigned.
#   62|   fi
#   63|   
#   64|-> echo 'nbd-client -check /dev/nbd0 > /dev/null 2>&1' > "$hookdir"/initqueue/finished/nbdroot.sh

Error: SHELLCHECK_WARNING (CWE-457): [#def591]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:10:16: warning[SC2154]: host_fs_types is referenced but not assigned.
#    8|       local _nfs _nfs4
#    9|   
#   10|->     for fs in "${host_fs_types[@]}"; do
#   11|           [[ $fs == "nfs" ]] && _nfs=1
#   12|           [[ $fs == "nfs3" ]] && _nfs=1

Error: SHELLCHECK_WARNING (CWE-457): [#def592]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:79:93: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   77|   install() {
#   78|       local _nsslibs
#   79|->     inst_multiple -o rpc.idmapd mount.nfs mount.nfs4 umount sed /etc/netconfig chmod chown "$tmpfilesdir/rpcbind.conf"
#   80|       inst_multiple -o /etc/idmapd.conf
#   81|       inst_multiple -o /etc/services /etc/nsswitch.conf /etc/rpc /etc/protocols

Error: SHELLCHECK_WARNING (CWE-457): [#def593]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:84:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#   82|       inst_multiple -o /usr/etc/services /usr/etc/nsswitch.conf /usr/etc/rpc /usr/etc/protocols
#   83|   
#   84|->     if [[ $hostonly_cmdline == "yes" ]]; then
#   85|           local _netconf
#   86|           _netconf="$(cmdline)"

Error: SHELLCHECK_WARNING (CWE-457): [#def594]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:87:58: warning[SC2154]: initdir is referenced but not assigned.
#   85|           local _netconf
#   86|           _netconf="$(cmdline)"
#   87|->         [[ $_netconf ]] && printf "%s\n" "$_netconf" >> "${initdir}/etc/cmdline.d/95nfs.conf"
#   88|       fi
#   89|   

Error: SHELLCHECK_WARNING (CWE-457): [#def595]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:107:27: warning[SC2154]: moddir is referenced but not assigned.
#  105|       inst_libdir_file -n "$_nsslibs" 'libnss_*.so*'
#  106|   
#  107|->     inst_hook cmdline 90 "$moddir/parse-nfsroot.sh"
#  108|       inst_hook pre-udev 99 "$moddir/nfs-start-rpc.sh"
#  109|       inst_hook cleanup 99 "$moddir/nfsroot-cleanup.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def596]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:113:11: warning[SC2154]: hostonly_mode is referenced but not assigned.
#  111|   
#  112|       # For strict hostonly, only install rpcbind for NFS < 4
#  113|->     if [[ $hostonly_mode != "strict" ]] || [[ "$(get_nfs_type)" != "nfs4" ]]; then
#  114|           inst_multiple -o portmap rpcbind rpc.statd
#  115|       fi

Error: SHELLCHECK_WARNING (CWE-277): [#def597]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:118:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  116|   
#  117|       inst "$moddir/nfs-lib.sh" "/lib/nfs-lib.sh"
#  118|->     mkdir -m 0755 -p "$initdir/var/lib/nfs"
#  119|       mkdir -m 0755 -p "$initdir/var/lib/nfs/rpc_pipefs"
#  120|       mkdir -m 0770 -p "$initdir/var/lib/rpcbind"

Error: SHELLCHECK_WARNING (CWE-277): [#def598]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:119:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  117|       inst "$moddir/nfs-lib.sh" "/lib/nfs-lib.sh"
#  118|       mkdir -m 0755 -p "$initdir/var/lib/nfs"
#  119|->     mkdir -m 0755 -p "$initdir/var/lib/nfs/rpc_pipefs"
#  120|       mkdir -m 0770 -p "$initdir/var/lib/rpcbind"
#  121|   

Error: SHELLCHECK_WARNING (CWE-277): [#def599]
/usr/lib/dracut/modules.d/74nfs/module-setup.sh:120:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  118|       mkdir -m 0755 -p "$initdir/var/lib/nfs"
#  119|       mkdir -m 0755 -p "$initdir/var/lib/nfs/rpc_pipefs"
#  120|->     mkdir -m 0770 -p "$initdir/var/lib/rpcbind"
#  121|   
#  122|       # use the same directory permissions as the host

Error: SHELLCHECK_WARNING: [#def600]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:26:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   24|       # if there's a "%s" in the path, replace it with the hostname/IP
#   25|       if strstr "$path" "%s"; then
#   26|->         local node=""
#   27|           read -r node < /proc/sys/kernel/hostname
#   28|           [ "$node" = "(none)" ] && node=$(get_ip "$2")

Error: SHELLCHECK_WARNING: [#def601]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:37:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   35|   nfsroot_to_var() {
#   36|       # strip nfs[4]:
#   37|->     local arg="$*:"
#   38|       nfs="${arg%%:*}"
#   39|       arg="${arg##"$nfs":}"

Error: SHELLCHECK_WARNING: [#def602]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:73:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   71|       server="${server%%/*}"
#   72|       server="${server%%:}" # anaconda compat (nfs://<server>:/<path>)
#   73|->     local port="${server##*:}"
#   74|       [ "$port" != "$server" ] && options="port=$port"
#   75|   }

Error: SHELLCHECK_WARNING: [#def603]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:108:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  106|   # fill in missing server/path from DHCP options.
#  107|   nfsroot_from_dhcp() {
#  108|->     local f
#  109|       for f in /tmp/net.$1.override /tmp/dhclient.$1.dhcpopts; do
#  110|           # shellcheck disable=SC1090

Error: SHELLCHECK_WARNING (CWE-457): [#def604]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:115:32: warning[SC2154]: srv is referenced but not assigned.
#  113|       [ -n "$new_root_path" ] && nfsroot_to_var "$nfs:$new_root_path"
#  114|       [ -z "$path" ] && [ "$(getarg root=)" = "/dev/nfs" ] && path=/tftpboot/%s
#  115|->     [ -z "$server" ] && server=$srv
#  116|       [ -z "$server" ] && server=$new_next_server
#  117|       [ -z "$server" ] && server=$new_dhcp_server_identifier

Error: SHELLCHECK_WARNING (CWE-457): [#def605]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:116:32: warning[SC2154]: new_next_server is referenced but not assigned.
#  114|       [ -z "$path" ] && [ "$(getarg root=)" = "/dev/nfs" ] && path=/tftpboot/%s
#  115|       [ -z "$server" ] && server=$srv
#  116|->     [ -z "$server" ] && server=$new_next_server
#  117|       [ -z "$server" ] && server=$new_dhcp_server_identifier
#  118|       [ -z "$server" ] && server=${new_root_path%%:*}

Error: SHELLCHECK_WARNING (CWE-457): [#def606]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:117:32: warning[SC2154]: new_dhcp_server_identifier is referenced but not assigned.
#  115|       [ -z "$server" ] && server=$srv
#  116|       [ -z "$server" ] && server=$new_next_server
#  117|->     [ -z "$server" ] && server=$new_dhcp_server_identifier
#  118|       [ -z "$server" ] && server=${new_root_path%%:*}
#  119|   }

Error: SHELLCHECK_WARNING: [#def607]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:123:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  121|   # Look through $options, fix "rw"/"ro", move "lock"/"nolock" to $nfslock
#  122|   munge_nfs_options() {
#  123|->     local f="" flags="" nfsrw="ro" OLDIFS="$IFS"
#  124|       IFS=,
#  125|       for f in $options; do

Error: SHELLCHECK_WARNING: [#def608]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:143:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  141|   # mount_nfs NFSROOT MNTDIR [NETIF]
#  142|   mount_nfs() {
#  143|->     local nfsroot="$1" mntdir="$2" netif="$3"
#  144|       local nfs="" server="" path="" options=""
#  145|       nfs_to_var "$nfsroot" "$netif"

Error: SHELLCHECK_WARNING: [#def609]
/usr/lib/dracut/modules.d/74nfs/nfs-lib.sh:144:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  142|   mount_nfs() {
#  143|       local nfsroot="$1" mntdir="$2" netif="$3"
#  144|->     local nfs="" server="" path="" options=""
#  145|       nfs_to_var "$nfsroot" "$netif"
#  146|       munge_nfs_options

Error: SHELLCHECK_WARNING (CWE-277): [#def610]
/usr/lib/dracut/modules.d/74nfs/nfsroot-cleanup.sh:20:18: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   18|       # try to create the destination directory
#   19|       [ -d "$NEWROOT/$rpcpipefspath" ] \
#   20|->         || mkdir -m 0755 -p "$NEWROOT/$rpcpipefspath" 2> /dev/null
#   21|   
#   22|       if [ -d "$NEWROOT/$rpcpipefspath" ]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def611]
/usr/lib/dracut/modules.d/74nfs/nfsroot.sh:26:76: warning[SC2154]: hookdir is referenced but not assigned.
#   24|   # inject new exit_if_exists
#   25|   # shellcheck disable=SC2016
#   26|-> echo 'settle_exit_if_exists="--exit-if-exists=/dev/root"; rm -- "$job"' > "$hookdir"/initqueue/nfs.sh
#   27|   # force udevsettle to break
#   28|   : > "$hookdir"/initqueue/work

Error: SHELLCHECK_WARNING (CWE-457): [#def612]
/usr/lib/dracut/modules.d/74nfs/parse-nfsroot.sh:101:4: warning[SC2154]: path is referenced but not assigned.
#   99|   
#  100|   nfsroot_to_var "$netroot"
#  101|-> [ "$path" = "error" ] && die "Argument nfsroot must contain a valid path!"
#  102|   
#  103|   # Set fstype, might help somewhere

Error: SHELLCHECK_WARNING (CWE-457): [#def613]
/usr/lib/dracut/modules.d/74nfs/parse-nfsroot.sh:104:8: warning[SC2154]: nfs is referenced but not assigned.
#  102|   
#  103|   # Set fstype, might help somewhere
#  104|-> fstype=${nfs#/dev/}
#  105|   
#  106|   # Rewrite root so we don't have to parse this ugliness later on again

Error: SHELLCHECK_WARNING (CWE-457): [#def614]
/usr/lib/dracut/modules.d/74nfs/parse-nfsroot.sh:107:32: warning[SC2154]: options is referenced but not assigned.
#  105|   
#  106|   # Rewrite root so we don't have to parse this ugliness later on again
#  107|-> netroot="$fstype:$server:$path:$options"
#  108|   
#  109|   # If we don't have a server, we need dhcp

Error: SHELLCHECK_WARNING (CWE-457): [#def615]
/usr/lib/dracut/modules.d/74nfs/parse-nfsroot.sh:124:32: warning[SC2154]: hookdir is referenced but not assigned.
#  122|   
#  123|   # shellcheck disable=SC2016
#  124|-> echo '[ -e $NEWROOT/proc ]' > "$hookdir"/initqueue/finished/nfsroot.sh
#  125|   
#  126|   # rpc user needs to be able to write to this directory to save the warmstart

Error: SHELLCHECK_WARNING (CWE-457): [#def616]
/usr/lib/dracut/modules.d/74nvmf/module-setup.sh:140:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#  138|   # called by dracut
#  139|   install() {
#  140|->     if [[ $hostonly_cmdline == "yes" ]]; then
#  141|           local _nvmf_args
#  142|           _nvmf_args=$(cmdline)

Error: SHELLCHECK_WARNING (CWE-457): [#def617]
/usr/lib/dracut/modules.d/74nvmf/module-setup.sh:143:62: warning[SC2154]: initdir is referenced but not assigned.
#  141|           local _nvmf_args
#  142|           _nvmf_args=$(cmdline)
#  143|->         [[ "$_nvmf_args" ]] && printf "%s" "$_nvmf_args" >> "${initdir}/etc/cmdline.d/95nvmf-args.conf"
#  144|       fi
#  145|       inst_simple -H "/etc/nvme/hostnqn"

Error: SHELLCHECK_WARNING (CWE-457): [#def618]
/usr/lib/dracut/modules.d/74nvmf/module-setup.sh:150:18: warning[SC2154]: moddir is referenced but not assigned.
#  148|       inst_multiple ip sed
#  149|   
#  150|->     inst_script "${moddir}/nvmf-autoconnect.sh" /sbin/nvmf-autoconnect.sh
#  151|       inst_script "${moddir}/nbftroot.sh" /sbin/nbftroot
#  152|   

Error: SHELLCHECK_WARNING: [#def619]
/usr/lib/dracut/modules.d/74nvmf/parse-nvmf-boot-connections.sh:84:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   82|   
#   83|   nbft_run_jq() {
#   84|->     local st
#   85|       local opts="-e"
#   86|   

Error: SHELLCHECK_WARNING: [#def620]
/usr/lib/dracut/modules.d/74nvmf/parse-nvmf-boot-connections.sh:85:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   83|   nbft_run_jq() {
#   84|       local st
#   85|->     local opts="-e"
#   86|   
#   87|       while [ $# -gt 0 ]; do

Error: SHELLCHECK_WARNING: [#def621]
/usr/lib/dracut/modules.d/74nvmf/parse-nvmf-boot-connections.sh:126:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  124|       # false positive of shellcheck - no expansion in variable assignments
#  125|       # shellcheck disable=2086
#  126|->     local hfi_json=$1
#  127|       local mac iface ipaddr prefix vlan gateway dns1 dns2 hostname adrfam dhcp
#  128|   

Error: SHELLCHECK_WARNING: [#def622]
/usr/lib/dracut/modules.d/74nvmf/parse-nvmf-boot-connections.sh:127:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  125|       # shellcheck disable=2086
#  126|       local hfi_json=$1
#  127|->     local mac iface ipaddr prefix vlan gateway dns1 dns2 hostname adrfam dhcp
#  128|   
#  129|       mac=$(nbft_run_jq -r .mac_addr "$hfi_json") || return 1

Error: SHELLCHECK_WARNING: [#def623]
/usr/lib/dracut/modules.d/74nvmf/parse-nvmf-boot-connections.sh:201:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  199|   
#  200|   nbft_parse() {
#  201|->     local nbft_json n_nbft all_hfi_json n_hfi
#  202|       local j=0 i
#  203|   

Error: SHELLCHECK_WARNING: [#def624]
/usr/lib/dracut/modules.d/74nvmf/parse-nvmf-boot-connections.sh:202:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  200|   nbft_parse() {
#  201|       local nbft_json n_nbft all_hfi_json n_hfi
#  202|->     local j=0 i
#  203|   
#  204|       nbft_json=$(nvme nbft show -H -o json) || return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def625]
/usr/lib/dracut/modules.d/74resume/module-setup.sh:7:22: warning[SC2154]: swap_devs is referenced but not assigned.
#    5|       swap_on_netdevice() {
#    6|           local _dev
#    7|->         for _dev in "${swap_devs[@]}"; do
#    8|               block_is_netdevice "$(get_maj_min "$_dev")" && return 0
#    9|           done

Error: SHELLCHECK_WARNING (CWE-457): [#def626]
/usr/lib/dracut/modules.d/74resume/module-setup.sh:52:17: warning[SC2154]: host_fs_types is referenced but not assigned.
#   50|       local _resume
#   51|   
#   52|->     for dev in "${!host_fs_types[@]}"; do
#   53|           [[ ${host_fs_types[$dev]} =~ ^(swap|swsuspend|swsupend)$ ]] || continue
#   54|           _resume=$(shorten_persistent_dev "$(get_persistent_dev "$dev")")

Error: SHELLCHECK_WARNING (CWE-457): [#def627]
/usr/lib/dracut/modules.d/74resume/module-setup.sh:64:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#   62|       local _resumeconf
#   63|   
#   64|->     if [[ $hostonly_cmdline == "yes" ]]; then
#   65|           _resumeconf=$(cmdline)
#   66|           [[ $_resumeconf ]] && printf "%s\n" "$_resumeconf" >> "${initdir}/etc/cmdline.d/95resume.conf"

Error: SHELLCHECK_WARNING (CWE-457): [#def628]
/usr/lib/dracut/modules.d/74resume/module-setup.sh:66:64: warning[SC2154]: initdir is referenced but not assigned.
#   64|       if [[ $hostonly_cmdline == "yes" ]]; then
#   65|           _resumeconf=$(cmdline)
#   66|->         [[ $_resumeconf ]] && printf "%s\n" "$_resumeconf" >> "${initdir}/etc/cmdline.d/95resume.conf"
#   67|       fi
#   68|   

Error: SHELLCHECK_WARNING (CWE-457): [#def629]
/usr/lib/dracut/modules.d/74resume/module-setup.sh:70:71: warning[SC2154]: systemdutildir is referenced but not assigned.
#   68|   
#   69|       # if systemd is included and has the hibernate-resume tool, use it and nothing else
#   70|->     if dracut_module_included "systemd" && [[ -x "${dracutsysrootdir-}$systemdutildir/systemd-hibernate-resume" ]]; then
#   71|           inst_multiple -o \
#   72|               "$systemdutildir"/system-generators/systemd-hibernate-resume-generator \

Error: SHELLCHECK_WARNING (CWE-457): [#def630]
/usr/lib/dracut/modules.d/74resume/module-setup.sh:73:14: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   71|           inst_multiple -o \
#   72|               "$systemdutildir"/system-generators/systemd-hibernate-resume-generator \
#   73|->             "$systemdsystemunitdir"/systemd-hibernate-resume.service \
#   74|               "$systemdsystemunitdir"/systemd-hibernate-resume@.service \
#   75|               "$systemdutildir"/systemd-hibernate-resume

Error: SHELLCHECK_WARNING (CWE-457): [#def631]
/usr/lib/dracut/modules.d/74resume/module-setup.sh:89:31: warning[SC2154]: moddir is referenced but not assigned.
#   87|   
#   88|       if ! dracut_module_included "systemd"; then
#   89|->         inst_hook cmdline 10 "$moddir/parse-resume.sh"
#   90|       else
#   91|           inst_script "$moddir/parse-resume.sh" /lib/dracut/parse-resume.sh

Error: SHELLCHECK_WARNING (CWE-457): [#def632]
/usr/lib/dracut/modules.d/74resume/parse-resume.sh:61:48: warning[SC2154]: hookdir is referenced but not assigned.
#   59|           # shellcheck disable=SC2016
#   60|           printf '[ -e "%s" ] && { ln -fs "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
#   61|->             "$resume" "$resume" "$hookdir" >> "$hookdir"/initqueue/settled/resume.sh
#   62|   
#   63|           {

Error: SHELLCHECK_WARNING (CWE-457): [#def633]
/usr/lib/dracut/modules.d/74resume/resume.sh:5:26: warning[SC2154]: resume is referenced but not assigned.
#    3|   PATH=/usr/sbin:/usr/bin:/sbin:/bin
#    4|   
#    5|-> [ -s /.resume ] && [ -b "$resume" ] && {
#    6|       # First try user level resume; it offers splash etc
#    7|       case "$splash" in

Error: SHELLCHECK_WARNING (CWE-457): [#def634]
/usr/lib/dracut/modules.d/74resume/resume.sh:7:11: warning[SC2154]: splash is referenced but not assigned (did you mean 'a_splash'?).
#    5|   [ -s /.resume ] && [ -b "$resume" ] && {
#    6|       # First try user level resume; it offers splash etc
#    7|->     case "$splash" in
#    8|           quiet)
#    9|               a_splash="-P splash=y"

Error: SHELLCHECK_WARNING (CWE-457): [#def635]
/usr/lib/dracut/modules.d/74rootfs-block-fallback/module-setup.sh:14:37: warning[SC2154]: moddir is referenced but not assigned.
#   12|   # called by dracut
#   13|   install() {
#   14|->     inst_hook initqueue/timeout 99 "$moddir/rootfallback.sh"
#   15|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def636]
/usr/lib/dracut/modules.d/74rootfs-block-fallback/rootfallback.sh:22:7: warning[SC2154]: job is referenced but not assigned.
#   20|   done
#   21|   
#   22|-> [ -e "$job" ] && rm -f "$job"

Error: SHELLCHECK_WARNING (CWE-457): [#def637]
/usr/lib/dracut/modules.d/74rootfs-block/block-genrules.sh:3:7: warning[SC2154]: root is referenced but not assigned.
#    1|   #!/usr/bin/sh
#    2|   
#    3|-> if [ "${root%%:*}" = "block" ]; then
#    4|       {
#    5|           printf 'KERNEL=="%s", SYMLINK+="root"\n' \

Error: SHELLCHECK_WARNING (CWE-457): [#def638]
/usr/lib/dracut/modules.d/74rootfs-block/block-genrules.sh:13:46: warning[SC2154]: hookdir is referenced but not assigned.
#   11|       # shellcheck disable=SC2016
#   12|       printf '[ -e "%s" ] && { ln -s "%s" /dev/root 2>/dev/null; rm "$job"; }\n' \
#   13|->         "${root#block:}" "${root#block:}" > "$hookdir"/initqueue/settled/blocksymlink.sh
#   14|   
#   15|       wait_for_dev "${root#block:}"

Error: SHELLCHECK_WARNING (CWE-457): [#def639]
/usr/lib/dracut/modules.d/74rootfs-block/module-setup.sh:10:21: warning[SC2154]: host_fs_types is referenced but not assigned.
#    8|   cmdline_journal() {
#    9|       if [[ ${hostonly-} ]]; then
#   10|->         for dev in "${!host_fs_types[@]}"; do
#   11|               [[ ${host_fs_types[$dev]} == "xfs" ]] || continue
#   12|               rootopts=$(find_dev_fsopts "$dev")

Error: SHELLCHECK_WARNING (CWE-457): [#def640]
/usr/lib/dracut/modules.d/74rootfs-block/module-setup.sh:32:11: warning[SC2154]: root_devs is referenced but not assigned.
#   30|   
#   31|       # "--no-hostonly-default-device" can result in empty root_devs
#   32|->     if [ "${#root_devs[@]}" -eq 0 ]; then
#   33|           return
#   34|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def641]
/usr/lib/dracut/modules.d/74rootfs-block/module-setup.sh:49:11: warning[SC2154]: use_fstab is referenced but not assigned.
#   47|           printf " rootfstype=%s" "$_fstype"
#   48|       fi
#   49|->     if [[ $use_fstab != yes ]] && [[ $_fstype == btrfs ]]; then
#   50|           _subvol=$(findmnt -e -v -n -o FSROOT --target /) \
#   51|               && _subvol=${_subvol#/}

Error: SHELLCHECK_WARNING (CWE-457): [#def642]
/usr/lib/dracut/modules.d/74rootfs-block/module-setup.sh:67:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#   65|   # called by dracut
#   66|   install() {
#   67|->     if [[ $hostonly_cmdline == "yes" ]]; then
#   68|           local _journaldev
#   69|           _journaldev=$(cmdline_journal)

Error: SHELLCHECK_WARNING (CWE-457): [#def643]
/usr/lib/dracut/modules.d/74rootfs-block/module-setup.sh:70:64: warning[SC2154]: initdir is referenced but not assigned.
#   68|           local _journaldev
#   69|           _journaldev=$(cmdline_journal)
#   70|->         [[ $_journaldev ]] && printf "%s\n" "$_journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf"
#   71|           local _rootdev
#   72|           _rootdev=$(cmdline_rootfs)

Error: SHELLCHECK_WARNING (CWE-457): [#def644]
/usr/lib/dracut/modules.d/74rootfs-block/module-setup.sh:79:31: warning[SC2154]: moddir is referenced but not assigned.
#   77|       inst_multiple tr
#   78|       if ! dracut_module_included "systemd"; then
#   79|->         inst_hook cmdline 95 "$moddir/parse-block.sh"
#   80|           inst_hook pre-udev 30 "$moddir/block-genrules.sh"
#   81|           inst_hook mount 99 "$moddir/mount-root.sh"

Error: SHELLCHECK_WARNING: [#def645]
/usr/lib/dracut/modules.d/74rootfs-block/mount-root.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|   
#    6|   mount_root() {
#    7|->     local _rflags_ro
#    8|       # sanity - determine/fix fstype
#    9|       rootfs=$(det_fs "${root#block:}" "$fstype")

Error: SHELLCHECK_WARNING (CWE-457): [#def646]
/usr/lib/dracut/modules.d/74rootfs-block/mount-root.sh:9:39: warning[SC2154]: fstype is referenced but not assigned.
#    7|       local _rflags_ro
#    8|       # sanity - determine/fix fstype
#    9|->     rootfs=$(det_fs "${root#block:}" "$fstype")
#   10|   
#   11|       journaldev=$(getarg "root.journaldev=")

Error: SHELLCHECK_WARNING (CWE-457): [#def647]
/usr/lib/dracut/modules.d/74squash-erofs/module-setup.sh:20:17: warning[SC2154]: squashdir is referenced but not assigned.
#   18|   
#   19|   erofs_installpost() {
#   20|->     local _img="$squashdir/erofs-root.img"
#   21|       local -a _erofs_args
#   22|   

Error: SHELLCHECK_WARNING (CWE-457): [#def648]
/usr/lib/dracut/modules.d/74squash-squashfs/module-setup.sh:20:17: warning[SC2154]: squashdir is referenced but not assigned.
#   18|   
#   19|   squashfs_installpost() {
#   20|->     local _img="$squashdir/squashfs-root.img"
#   21|       local _comp
#   22|   

Error: SHELLCHECK_WARNING (CWE-457): [#def649]
/usr/lib/dracut/modules.d/74squash-squashfs/module-setup.sh:33:22: warning[SC2154]: initdir is referenced but not assigned.
#   31|   
#   32|       # shellcheck disable=SC2086
#   33|->     if ! mksquashfs "$initdir" "$_img" \
#   34|           -no-xattrs -no-exports -noappend -no-recovery -always-use-fragments \
#   35|           -no-progress ${_comp:+-comp $_comp} \

Error: SHELLCHECK_WARNING (CWE-457): [#def650]
/usr/lib/dracut/modules.d/74ssh-client/module-setup.sh:31:20: warning[SC2154]: initdir is referenced but not assigned.
#   29|       if [[ -d "${dracutsysrootdir-}/root/.ssh" ]]; then
#   30|           inst_dir /root/.ssh
#   31|->         chmod 700 "${initdir}"/root/.ssh
#   32|       fi
#   33|   

Error: SHELLCHECK_WARNING (CWE-457): [#def651]
/usr/lib/dracut/modules.d/74terminfo/module-setup.sh:14:31: warning[SC2154]: initdir is referenced but not assigned.
#   12|           for i in "l/linux" "v/vt100" "v/vt102" "v/vt220"; do
#   13|               inst_dir "$_terminfodir/${i%/*}"
#   14|->             $DRACUT_CP -L -t "${initdir}/${_terminfodir}/${i%/*}" "${dracutsysrootdir-}$_terminfodir/$i"
#   15|           done
#   16|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def652]
/usr/lib/dracut/modules.d/74udev-rules/module-setup.sh:12:11: warning[SC2154]: initdir is referenced but not assigned.
#   10|       inst_multiple udevadm cat uname blkid
#   11|   
#   12|->     [[ -d ${initdir}/$systemdutildir ]] || mkdir -p "${initdir}/$systemdutildir"
#   13|       for _i in "${systemdutildir}"/systemd-udevd "${udevdir}"/udevd /sbin/udevd; do
#   14|           [[ -x "${dracutsysrootdir-}$_i" ]] || continue

Error: SHELLCHECK_WARNING (CWE-457): [#def653]
/usr/lib/dracut/modules.d/74udev-rules/module-setup.sh:12:22: warning[SC2154]: systemdutildir is referenced but not assigned.
#   10|       inst_multiple udevadm cat uname blkid
#   11|   
#   12|->     [[ -d ${initdir}/$systemdutildir ]] || mkdir -p "${initdir}/$systemdutildir"
#   13|       for _i in "${systemdutildir}"/systemd-udevd "${udevdir}"/udevd /sbin/udevd; do
#   14|           [[ -x "${dracutsysrootdir-}$_i" ]] || continue

Error: SHELLCHECK_WARNING (CWE-457): [#def654]
/usr/lib/dracut/modules.d/74udev-rules/module-setup.sh:13:50: warning[SC2154]: udevdir is referenced but not assigned.
#   11|   
#   12|       [[ -d ${initdir}/$systemdutildir ]] || mkdir -p "${initdir}/$systemdutildir"
#   13|->     for _i in "${systemdutildir}"/systemd-udevd "${udevdir}"/udevd /sbin/udevd; do
#   14|           [[ -x "${dracutsysrootdir-}$_i" ]] || continue
#   15|           inst "$_i"

Error: SHELLCHECK_WARNING (CWE-457): [#def655]
/usr/lib/dracut/modules.d/74udev-rules/module-setup.sh:104:19: warning[SC2154]: udevconfdir is referenced but not assigned.
#  102|       # Install the hosts local user configurations if enabled.
#  103|       if [[ ${hostonly-} ]]; then
#  104|->         inst_dir "$udevconfdir"
#  105|           inst_multiple -H -o \
#  106|               "$udevconfdir"/udev.conf \

Error: SHELLCHECK_WARNING (CWE-457): [#def656]
/usr/lib/dracut/modules.d/74udev-rules/module-setup.sh:108:14: warning[SC2154]: udevrulesconfdir is referenced but not assigned.
#  106|               "$udevconfdir"/udev.conf \
#  107|               "$udevconfdir/udev.conf.d/*.conf" \
#  108|->             "$udevrulesconfdir/*.rules"
#  109|       fi
#  110|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def657]
/usr/lib/dracut/modules.d/74virtfs/module-setup.sh:6:20: warning[SC2154]: host_fs_types is referenced but not assigned.
#    4|   check() {
#    5|       [[ ${hostonly-} ]] || [[ $mount_needs ]] && {
#    6|->         for fs in "${host_fs_types[@]}"; do
#    7|               [[ $fs == "9p" ]] && return 0
#    8|           done

Error: SHELLCHECK_WARNING (CWE-457): [#def658]
/usr/lib/dracut/modules.d/74virtfs/module-setup.sh:24:27: warning[SC2154]: moddir is referenced but not assigned.
#   22|   # called by dracut
#   23|   install() {
#   24|->     inst_hook cmdline 95 "$moddir/parse-virtfs.sh"
#   25|       inst_hook mount 99 "$moddir/mount-virtfs.sh"
#   26|   }

Error: SHELLCHECK_WARNING: [#def659]
/usr/lib/dracut/modules.d/74virtfs/mount-virtfs.sh:8:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    6|       rootopts=$1
#    7|       # strip ro and rw options
#    8|->     local OLDIFS="$IFS"
#    9|       IFS=,
#   10|       # shellcheck disable=SC2086

Error: SHELLCHECK_WARNING: [#def660]
/usr/lib/dracut/modules.d/74virtfs/mount-virtfs.sh:13:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   11|       set -- $rootopts
#   12|       IFS="$OLDIFS"
#   13|->     local v
#   14|       while [ $# -gt 0 ]; do
#   15|           case $1 in

Error: SHELLCHECK_WARNING (CWE-457): [#def661]
/usr/lib/dracut/modules.d/74virtfs/parse-virtfs.sh:3:7: warning[SC2154]: root is referenced but not assigned.
#    1|   #!/usr/bin/sh
#    2|   
#    3|-> if [ "${root%%:*}" = "virtfs" ]; then
#    4|       modprobe 9pnet_virtio
#    5|   

Error: SHELLCHECK_WARNING (CWE-457): [#def662]
/usr/lib/dracut/modules.d/74virtiofs/module-setup.sh:8:20: warning[SC2154]: host_fs_types is referenced but not assigned.
#    6|           is_qemu_virtualized && return 0
#    7|   
#    8|->         for fs in "${host_fs_types[@]}"; do
#    9|               [[ $fs == "virtiofs" ]] && return 0
#   10|           done

Error: SHELLCHECK_WARNING (CWE-457): [#def663]
/usr/lib/dracut/modules.d/74virtiofs/module-setup.sh:29:27: warning[SC2154]: moddir is referenced but not assigned.
#   27|   # called by dracut
#   28|   install() {
#   29|->     inst_hook cmdline 95 "$moddir/parse-virtiofs.sh"
#   30|       inst_hook pre-mount 99 "$moddir/mount-virtiofs.sh"
#   31|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def664]
/usr/lib/dracut/modules.d/74virtiofs/mount-virtiofs.sh:5:7: warning[SC2154]: fstype is referenced but not assigned.
#    3|   command -v ismounted > /dev/null || . /lib/dracut-lib.sh
#    4|   
#    5|-> if [ "${fstype}" = "virtiofs" ] || [ "${root%%:*}" = "virtiofs" ]; then
#    6|       if ! load_fstype virtiofs; then
#    7|           die "virtiofs is required but not available."

Error: SHELLCHECK_WARNING (CWE-457): [#def665]
/usr/lib/dracut/modules.d/74virtiofs/mount-virtiofs.sh:5:39: warning[SC2154]: root is referenced but not assigned.
#    3|   command -v ismounted > /dev/null || . /lib/dracut-lib.sh
#    4|   
#    5|-> if [ "${fstype}" = "virtiofs" ] || [ "${root%%:*}" = "virtiofs" ]; then
#    6|       if ! load_fstype virtiofs; then
#    7|           die "virtiofs is required but not available."

Error: SHELLCHECK_WARNING (CWE-457): [#def666]
/usr/lib/dracut/modules.d/74virtiofs/mount-virtiofs.sh:10:27: warning[SC2154]: rflags is referenced but not assigned.
#    8|       fi
#    9|   
#   10|->     mount -t virtiofs -o "$rflags" "${root#virtiofs:}" "$NEWROOT" 2>&1 | vinfo
#   11|       if ! ismounted "$NEWROOT"; then
#   12|           die "virtiofs: failed to mount root fs"

Error: SHELLCHECK_WARNING (CWE-457): [#def667]
/usr/lib/dracut/modules.d/74virtiofs/parse-virtiofs.sh:6:7: warning[SC2154]: fstype is referenced but not assigned.
#    4|   # 	root=virtiofs:<tag>
#    5|   
#    6|-> if [ "${fstype}" = "virtiofs" ] || [ "${root%%:*}" = "virtiofs" ]; then
#    7|       # shellcheck disable=SC2034
#    8|       rootok=1

Error: SHELLCHECK_WARNING (CWE-457): [#def668]
/usr/lib/dracut/modules.d/74virtiofs/parse-virtiofs.sh:6:39: warning[SC2154]: root is referenced but not assigned.
#    4|   # 	root=virtiofs:<tag>
#    5|   
#    6|-> if [ "${fstype}" = "virtiofs" ] || [ "${root%%:*}" = "virtiofs" ]; then
#    7|       # shellcheck disable=SC2034
#    8|       rootok=1

Error: SHELLCHECK_WARNING (CWE-457): [#def669]
/usr/lib/dracut/modules.d/75securityfs/module-setup.sh:10:27: warning[SC2154]: moddir is referenced but not assigned.
#    8|   # called by dracut
#    9|   install() {
#   10|->     inst_hook cmdline 60 "$moddir/securityfs.sh"
#   11|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def670]
/usr/lib/dracut/modules.d/76masterkey/module-setup.sh:20:29: warning[SC2154]: moddir is referenced but not assigned.
#   18|   install() {
#   19|       inst_multiple keyctl uname
#   20|->     inst_hook pre-pivot 60 "$moddir/masterkey.sh"
#   21|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def671]
/usr/lib/dracut/modules.d/76systemd-emergency/module-setup.sh:6:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#    4|   
#    5|   check() {
#    6|->     require_binaries "$systemdutildir"/systemd-sulogin-shell || return 1
#    7|   
#    8|       return 255

Error: SHELLCHECK_WARNING (CWE-457): [#def672]
/usr/lib/dracut/modules.d/76systemd-emergency/module-setup.sh:17:10: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   15|   install() {
#   16|       inst_multiple -o \
#   17|->         "$systemdsystemunitdir"/emergency.target \
#   18|           "$systemdsystemunitdir"/emergency.service \
#   19|           "$systemdsystemunitdir"/rescue.target \

Error: SHELLCHECK_WARNING (CWE-457): [#def673]
/usr/lib/dracut/modules.d/77dracut-systemd/dracut-emergency.sh:34:34: warning[SC2154]: _name is referenced but not assigned.
#   32|       done < /proc/consoles
#   33|       [ -f /etc/profile ] && . /etc/profile
#   34|->     [ -z "$PS1" ] && export PS1="$_name:\${PWD}# "
#   35|   
#   36|       if getargbool 0 SYSTEMD_SULOGIN_FORCE; then

Error: SHELLCHECK_WARNING (CWE-457): [#def674]
/usr/lib/dracut/modules.d/77dracut-systemd/dracut-mount.sh:21:15: warning[SC2154]: hookdir is referenced but not assigned.
#   19|           umount "$NEWROOT"
#   20|       fi
#   21|->     for f in "$hookdir"/mount/*.sh; do
#   22|           # shellcheck disable=SC1090
#   23|           [ -f "$f" ] && . "$f"

Error: SHELLCHECK_WARNING (CWE-457): [#def675]
/usr/lib/dracut/modules.d/77dracut-systemd/module-setup.sh:8:23: warning[SC2154]: systemdutildir is referenced but not assigned.
#    6|   
#    7|       # If the binary(s) requirements are not fulfilled the module can't be installed
#    8|->     require_binaries "$systemdutildir"/systemd || return 1
#    9|   
#   10|       return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def676]
/usr/lib/dracut/modules.d/77dracut-systemd/module-setup.sh:36:18: warning[SC2154]: moddir is referenced but not assigned.
#   34|   # called by dracut
#   35|   install() {
#   36|->     inst_script "$moddir/dracut-emergency.sh" /usr/bin/dracut-emergency
#   37|       inst_simple "$moddir/emergency.service" "${systemdsystemunitdir}"/emergency.service
#   38|       inst_simple "$moddir/dracut-emergency.service" "${systemdsystemunitdir}"/dracut-emergency.service

Error: SHELLCHECK_WARNING (CWE-457): [#def677]
/usr/lib/dracut/modules.d/77dracut-systemd/module-setup.sh:37:46: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   35|   install() {
#   36|       inst_script "$moddir/dracut-emergency.sh" /usr/bin/dracut-emergency
#   37|->     inst_simple "$moddir/emergency.service" "${systemdsystemunitdir}"/emergency.service
#   38|       inst_simple "$moddir/dracut-emergency.service" "${systemdsystemunitdir}"/dracut-emergency.service
#   39|       inst_simple "$moddir/emergency.service" "${systemdsystemunitdir}"/rescue.service

Error: SHELLCHECK_WARNING (CWE-457): [#def678]
/usr/lib/dracut/modules.d/77dracut-systemd/module-setup.sh:64:31: warning[SC2154]: initdir is referenced but not assigned.
#   62|           dracut-pre-udev.service; do
#   63|           inst_simple "$moddir/${i}" "$systemdsystemunitdir/${i}"
#   64|->         $SYSTEMCTL -q --root "$initdir" add-wants initrd.target "$i"
#   65|       done
#   66|   

Error: SHELLCHECK_WARNING (CWE-457): [#def679]
/usr/lib/dracut/modules.d/77dracut-systemd/module-setup.sh:67:49: warning[SC2154]: tmpfilesdir is referenced but not assigned.
#   65|       done
#   66|   
#   67|->     inst_simple "$moddir/dracut-tmpfiles.conf" "$tmpfilesdir/dracut-tmpfiles.conf"
#   68|   
#   69|       inst_multiple sulogin

Error: SHELLCHECK_WARNING (CWE-277): [#def680]
/usr/lib/dracut/modules.d/77dracut-systemd/module-setup.sh:71:42: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   69|       inst_multiple sulogin
#   70|   
#   71|->     [ -e "${initdir}/usr/lib" ] || mkdir -m 0755 -p "${initdir}"/usr/lib
#   72|   
#   73|       local VERSION=""

Error: SHELLCHECK_WARNING (CWE-457): [#def681]
/usr/lib/dracut/modules.d/77dracut-systemd/parse-root.sh:22:16: warning[SC2154]: hookdir is referenced but not assigned.
#   20|       root_dev="${root#block:}"
#   21|       root_name="$(str_replace "$root_dev" '/' '\x2f')"
#   22|->     if ! [ -e "$hookdir/initqueue/finished/devexists-${root_name}.sh" ]; then
#   23|   
#   24|           # If a LUKS device needs unlocking via systemd in the initrd, assume

Error: SHELLCHECK_WARNING: [#def682]
/usr/lib/dracut/modules.d/77dracut-systemd/rootfs-generator.sh:6:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    4|   
#    5|   generator_wait_for_dev() {
#    6|->     local _name
#    7|       local _timeout
#    8|   

Error: SHELLCHECK_WARNING: [#def683]
/usr/lib/dracut/modules.d/77dracut-systemd/rootfs-generator.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|   generator_wait_for_dev() {
#    6|       local _name
#    7|->     local _timeout
#    8|   
#    9|       _name=$(dev_unit_name "$1")

Error: SHELLCHECK_WARNING: [#def684]
/usr/lib/dracut/modules.d/77dracut-systemd/rootfs-generator.sh:29:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   27|   
#   28|   generator_mount_rootfs() {
#   29|->     local _type="$2"
#   30|       local _flags="$3"
#   31|       local _name

Error: SHELLCHECK_WARNING: [#def685]
/usr/lib/dracut/modules.d/77dracut-systemd/rootfs-generator.sh:30:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   28|   generator_mount_rootfs() {
#   29|       local _type="$2"
#   30|->     local _flags="$3"
#   31|       local _name
#   32|   

Error: SHELLCHECK_WARNING: [#def686]
/usr/lib/dracut/modules.d/77dracut-systemd/rootfs-generator.sh:31:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   29|       local _type="$2"
#   30|       local _flags="$3"
#   31|->     local _name
#   32|   
#   33|       [ -z "$1" ] && return 0

Error: SHELLCHECK_WARNING: [#def687]
/usr/lib/dracut/modules.d/77dracut-systemd/rootfs-generator.sh:56:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   54|   
#   55|   generator_fsck_after_pre_mount() {
#   56|->     local _name
#   57|   
#   58|       [ -z "$1" ] && return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def688]
/usr/lib/dracut/modules.d/77ecryptfs/module-setup.sh:21:29: warning[SC2154]: moddir is referenced but not assigned.
#   19|   # called by dracut
#   20|   install() {
#   21|->     inst_hook pre-pivot 63 "$moddir/ecryptfs-mount.sh"
#   22|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def689]
/usr/lib/dracut/modules.d/77initqueue/dracut-initqueue.sh:26:38: warning[SC2154]: hookdir is referenced but not assigned.
#   24|       check_finished && break
#   25|   
#   26|->     udevadm settle --exit-if-exists="$hookdir"/initqueue/work
#   27|   
#   28|       check_finished && break

Error: SHELLCHECK_WARNING (CWE-457): [#def690]
/usr/lib/dracut/modules.d/77initqueue/initqueue.sh:70:28: warning[SC2154]: hookdir is referenced but not assigned.
#   68|   } > "/tmp/$$-${job}.sh"
#   69|   
#   70|-> mv -f "/tmp/$$-${job}.sh" "$hookdir/initqueue${qname}/${job}.sh"
#   71|   [ -z "$qname" ] && : >> "$hookdir"/initqueue/work
#   72|   exit 0

Error: SHELLCHECK_WARNING (CWE-457): [#def691]
/usr/lib/dracut/modules.d/77initqueue/module-setup.sh:12:18: warning[SC2154]: moddir is referenced but not assigned.
#   10|   # called by dracut
#   11|   install() {
#   12|->     inst_script "$moddir/initqueue.sh" "/sbin/initqueue"
#   13|   
#   14|       if dracut_module_included "systemd"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def692]
/usr/lib/dracut/modules.d/77initqueue/module-setup.sh:16:57: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   14|       if dracut_module_included "systemd"; then
#   15|           inst_script "$moddir/dracut-initqueue.sh" /usr/bin/dracut-initqueue
#   16|->         inst_simple "$moddir/dracut-initqueue.service" "$systemdsystemunitdir/dracut-initqueue.service"
#   17|           $SYSTEMCTL -q --root "$initdir" add-wants initrd.target dracut-initqueue.service
#   18|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def693]
/usr/lib/dracut/modules.d/77initqueue/module-setup.sh:17:31: warning[SC2154]: initdir is referenced but not assigned.
#   15|           inst_script "$moddir/dracut-initqueue.sh" /usr/bin/dracut-initqueue
#   16|           inst_simple "$moddir/dracut-initqueue.service" "$systemdsystemunitdir/dracut-initqueue.service"
#   17|->         $SYSTEMCTL -q --root "$initdir" add-wants initrd.target dracut-initqueue.service
#   18|       fi
#   19|   

Error: SHELLCHECK_WARNING: [#def694]
/usr/lib/dracut/modules.d/77integrity/evm-enable.sh:84:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   82|       fi
#   83|   
#   84|->     local evm_pubid line
#   85|       if line=$(keyctl describe %keyring:.evm); then
#   86|           # the kernel already setup a trusted .evm keyring so use that one

Error: SHELLCHECK_WARNING: [#def695]
/usr/lib/dracut/modules.d/77integrity/evm-enable.sh:102:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  100|       # load the default EVM public key onto the EVM keyring along
#  101|       # with all the other ones in $EVMKEYSDIR
#  102|->     local key_imported=1
#  103|       for PUBKEY in ${EVMX509PATH} "${NEWROOT}${EVMKEYSDIR}"/*; do
#  104|           if [ ! -f "${PUBKEY}" ]; then

Error: SHELLCHECK_WARNING: [#def696]
/usr/lib/dracut/modules.d/77integrity/evm-enable.sh:143:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  141|       fi
#  142|   
#  143|->     local evm_configured=0
#  144|       local EVM_INIT_HMAC=1 EVM_INIT_X509=2
#  145|   

Error: SHELLCHECK_WARNING: [#def697]
/usr/lib/dracut/modules.d/77integrity/evm-enable.sh:144:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  142|   
#  143|       local evm_configured=0
#  144|->     local EVM_INIT_HMAC=1 EVM_INIT_X509=2
#  145|   
#  146|       # try to load the EVM encrypted key

Error: SHELLCHECK_WARNING (CWE-457): [#def698]
/usr/lib/dracut/modules.d/77integrity/module-setup.sh:17:29: warning[SC2154]: moddir is referenced but not assigned.
#   15|   install() {
#   16|       dracut_install evmctl keyctl
#   17|->     inst_hook pre-pivot 61 "$moddir/evm-enable.sh"
#   18|       inst_hook pre-pivot 61 "$moddir/ima-keys-load.sh"
#   19|       inst_hook pre-pivot 62 "$moddir/ima-policy-load.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def699]
/usr/lib/dracut/modules.d/77pollcdrom/module-setup.sh:16:37: warning[SC2154]: moddir is referenced but not assigned.
#   14|   # called by dracut
#   15|   install() {
#   16|->     inst_hook initqueue/settled 99 "$moddir/pollcdrom.sh"
#   17|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def700]
/usr/lib/dracut/modules.d/77selinux/module-setup.sh:10:29: warning[SC2154]: moddir is referenced but not assigned.
#    8|   # called by dracut
#    9|   install() {
#   10|->     inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
#   11|       inst_multiple setenforce chroot
#   12|   }

Error: SHELLCHECK_WARNING: [#def701]
/usr/lib/dracut/modules.d/77selinux/selinux-loadpolicy.sh:22:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   20|       # Attempt to load SELinux Policy
#   21|       if [ -x "$NEWROOT/usr/sbin/load_policy" ] || [ -x "$NEWROOT/sbin/load_policy" ]; then
#   22|->         local ret=0
#   23|           local out
#   24|           info "Loading SELinux policy"

Error: SHELLCHECK_WARNING: [#def702]
/usr/lib/dracut/modules.d/77selinux/selinux-loadpolicy.sh:23:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   21|       if [ -x "$NEWROOT/usr/sbin/load_policy" ] || [ -x "$NEWROOT/sbin/load_policy" ]; then
#   22|           local ret=0
#   23|->         local out
#   24|           info "Loading SELinux policy"
#   25|           mount -o bind /sys "$NEWROOT"/sys

Error: SHELLCHECK_WARNING (CWE-457): [#def703]
/usr/lib/dracut/modules.d/77syslog/module-setup.sh:31:31: warning[SC2154]: moddir is referenced but not assigned.
#   29|       if [ -n "$_installs" ]; then
#   30|           inst_multiple cat $_installs
#   31|->         inst_hook cmdline 90 "$moddir/parse-syslog-opts.sh"
#   32|           inst_hook cleanup 99 "$moddir/syslog-cleanup.sh"
#   33|           inst_hook initqueue/online 70 "$moddir/rsyslogd-start.sh"

Error: SHELLCHECK_WARNING (CWE-277): [#def704]
/usr/lib/dracut/modules.d/77syslog/module-setup.sh:35:15: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   33|           inst_hook initqueue/online 70 "$moddir/rsyslogd-start.sh"
#   34|           inst_simple "$moddir/rsyslogd-stop.sh" /sbin/rsyslogd-stop
#   35|->         mkdir -m 0755 -p "${initdir}"/etc/templates
#   36|           inst_simple "${moddir}/rsyslog.conf" /etc/templates/rsyslog.conf
#   37|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def705]
/usr/lib/dracut/modules.d/77syslog/module-setup.sh:35:27: warning[SC2154]: initdir is referenced but not assigned.
#   33|           inst_hook initqueue/online 70 "$moddir/rsyslogd-start.sh"
#   34|           inst_simple "$moddir/rsyslogd-stop.sh" /sbin/rsyslogd-stop
#   35|->         mkdir -m 0755 -p "${initdir}"/etc/templates
#   36|           inst_simple "${moddir}/rsyslog.conf" /etc/templates/rsyslog.conf
#   37|       fi

Error: SHELLCHECK_WARNING: [#def706]
/usr/lib/dracut/modules.d/77syslog/rsyslogd-start.sh:14:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   12|   
#   13|   rsyslog_config() {
#   14|->     local server="$1"
#   15|       shift
#   16|       local syslog_template="$1"

Error: SHELLCHECK_WARNING: [#def707]
/usr/lib/dracut/modules.d/77syslog/rsyslogd-start.sh:16:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   14|       local server="$1"
#   15|       shift
#   16|->     local syslog_template="$1"
#   17|       shift
#   18|       local filters="$*"

Error: SHELLCHECK_WARNING: [#def708]
/usr/lib/dracut/modules.d/77syslog/rsyslogd-start.sh:18:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   16|       local syslog_template="$1"
#   17|       shift
#   18|->     local filters="$*"
#   19|       local filter=
#   20|   

Error: SHELLCHECK_WARNING: [#def709]
/usr/lib/dracut/modules.d/77syslog/rsyslogd-start.sh:19:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   17|       shift
#   18|       local filters="$*"
#   19|->     local filter=
#   20|   
#   21|       cat "$syslog_template"

Error: SHELLCHECK_WARNING (CWE-457): [#def710]
/usr/lib/dracut/modules.d/77usrmount/module-setup.sh:17:33: warning[SC2154]: moddir is referenced but not assigned.
#   15|   install() {
#   16|       if ! dracut_module_included "systemd"; then
#   17|->         inst_hook pre-pivot 50 "$moddir/mount-usr.sh"
#   18|       fi
#   19|       :

Error: SHELLCHECK_WARNING: [#def711]
/usr/lib/dracut/modules.d/77usrmount/mount-usr.sh:7:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    5|   
#    6|   filtersubvol() {
#    7|->     local _oldifs
#    8|       _oldifs="$IFS"
#    9|       local IFS=","

Error: SHELLCHECK_WARNING: [#def712]
/usr/lib/dracut/modules.d/77usrmount/mount-usr.sh:9:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    7|       local _oldifs
#    8|       _oldifs="$IFS"
#    9|->     local IFS=","
#   10|       # shellcheck disable=SC2086
#   11|       set -- $1

Error: SHELLCHECK_WARNING: [#def713]
/usr/lib/dracut/modules.d/77usrmount/mount-usr.sh:23:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   21|   
#   22|   fsck_usr() {
#   23|->     local _dev="$1"
#   24|       local _fs="$2"
#   25|       local _fsopts="$3"

Error: SHELLCHECK_WARNING: [#def714]
/usr/lib/dracut/modules.d/77usrmount/mount-usr.sh:24:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   22|   fsck_usr() {
#   23|       local _dev="$1"
#   24|->     local _fs="$2"
#   25|       local _fsopts="$3"
#   26|       local _fsckoptions

Error: SHELLCHECK_WARNING: [#def715]
/usr/lib/dracut/modules.d/77usrmount/mount-usr.sh:25:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   23|       local _dev="$1"
#   24|       local _fs="$2"
#   25|->     local _fsopts="$3"
#   26|       local _fsckoptions
#   27|   

Error: SHELLCHECK_WARNING: [#def716]
/usr/lib/dracut/modules.d/77usrmount/mount-usr.sh:26:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   24|       local _fs="$2"
#   25|       local _fsopts="$3"
#   26|->     local _fsckoptions
#   27|   
#   28|       if [ -f "$NEWROOT"/fsckoptions ]; then

Error: SHELLCHECK_WARNING: [#def717]
/usr/lib/dracut/modules.d/77usrmount/mount-usr.sh:53:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   51|   
#   52|   mount_usr() {
#   53|->     local _dev _mp _fs _opts _ _usr_found _ _freq _passno
#   54|       # check, if we have to mount the /usr filesystem
#   55|       while read -r _dev _mp _fs _opts _freq _passno || [ -n "$_dev" ]; do

Error: SHELLCHECK_WARNING (CWE-457): [#def718]
/usr/lib/dracut/modules.d/77usrmount/mount-usr.sh:66:23: warning[SC2154]: root is referenced but not assigned.
#   64|   
#   65|               if strstr "$_opts" "subvol=" \
#   66|->                 && [ "${root#block:}" -ef "$_dev" ] \
#   67|                   && [ -n "$rflags" ]; then
#   68|                   # for btrfs subvolumes we have to mount /usr with the same rflags

Error: SHELLCHECK_WARNING: [#def719]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:10:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    8|   # str_replace '  one two  three  ' ' ' '_'
#    9|   str_replace() {
#   10|->     local in="$1"
#   11|       local s="$2"
#   12|       local r="$3"

Error: SHELLCHECK_WARNING: [#def720]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:11:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#    9|   str_replace() {
#   10|       local in="$1"
#   11|->     local s="$2"
#   12|       local r="$3"
#   13|       local out=''

Error: SHELLCHECK_WARNING: [#def721]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:12:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   10|       local in="$1"
#   11|       local s="$2"
#   12|->     local r="$3"
#   13|       local out=''
#   14|   

Error: SHELLCHECK_WARNING: [#def722]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:13:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   11|       local s="$2"
#   12|       local r="$3"
#   13|->     local out=''
#   14|   
#   15|       while [ "${in##*"$s"*}" != "$in" ]; do

Error: SHELLCHECK_WARNING: [#def723]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:26:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   24|   # (mimics unit_name_from_path_instance())
#   25|   dev_unit_name() {
#   26|->     local dev="$1"
#   27|   
#   28|       if command -v systemd-escape > /dev/null; then

Error: SHELLCHECK_WARNING: [#def724]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:54:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   52|   # Set 'rd.timeout' as the systemd timeout for <dev>
#   53|   set_systemd_timeout_for_dev() {
#   54|->     local _name
#   55|       local _needreload
#   56|       local _noreload

Error: SHELLCHECK_WARNING: [#def725]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:55:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   53|   set_systemd_timeout_for_dev() {
#   54|       local _name
#   55|->     local _needreload
#   56|       local _noreload
#   57|       local _timeout

Error: SHELLCHECK_WARNING: [#def726]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:56:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   54|       local _name
#   55|       local _needreload
#   56|->     local _noreload
#   57|       local _timeout
#   58|   

Error: SHELLCHECK_WARNING: [#def727]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:57:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   55|       local _needreload
#   56|       local _noreload
#   57|->     local _timeout
#   58|   
#   59|       [ -z "${DRACUT_SYSTEMD-}" ] && return 0

Error: SHELLCHECK_WARNING: [#def728]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:104:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  102|   # if the device <dev> is recognized by the system.
#  103|   wait_for_dev() {
#  104|->     local _name
#  105|       local _noreload
#  106|   

Error: SHELLCHECK_WARNING: [#def729]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:105:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  103|   wait_for_dev() {
#  104|       local _name
#  105|->     local _noreload
#  106|   
#  107|       if [ "$1" = "-n" ]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def730]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:114:59: warning[SC2154]: hookdir is referenced but not assigned.
#  112|       _name="$(str_replace "$1" '/' '\x2f')"
#  113|   
#  114|->     type mark_hostonly > /dev/null 2>&1 && mark_hostonly "$hookdir/initqueue/finished/devexists-${_name}.sh"
#  115|   
#  116|       [ -e "${PREFIX-}$hookdir/initqueue/finished/devexists-${_name}.sh" ] && return 0

Error: SHELLCHECK_WARNING: [#def731]
/usr/lib/dracut/modules.d/80base/dracut-dev-lib.sh:129:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  127|   
#  128|   cancel_wait_for_dev() {
#  129|->     local _name
#  130|       _name="$(str_replace "$1" '/' '\x2f')"
#  131|       rm -f -- "$hookdir/initqueue/finished/devexists-${_name}.sh"

Error: SHELLCHECK_WARNING (CWE-277): [#def732]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:8:35: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#    6|   export NEWROOT
#    7|   if [ -n "$NEWROOT" ]; then
#    8|->     [ -d "$NEWROOT" ] || mkdir -p -m 0755 "$NEWROOT"
#    9|   fi
#   10|   

Error: SHELLCHECK_WARNING (CWE-277): [#def733]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:13:18: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   11|   if [ -z "${PREFIX-}" ]; then
#   12|       if ! [ -d /run/initramfs ]; then
#   13|->         mkdir -p -m 0755 /run/initramfs/log
#   14|           ln -sfn /run/initramfs/log /var/log
#   15|       fi

Error: SHELLCHECK_WARNING (CWE-277): [#def734]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:17:34: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   15|       fi
#   16|   
#   17|->     [ -d /run/lock ] || mkdir -p -m 0755 /run/lock
#   18|       [ -d /run/log ] || mkdir -p -m 0755 /run/log
#   19|   fi

Error: SHELLCHECK_WARNING (CWE-277): [#def735]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:18:33: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   16|   
#   17|       [ -d /run/lock ] || mkdir -p -m 0755 /run/lock
#   18|->     [ -d /run/log ] || mkdir -p -m 0755 /run/log
#   19|   fi
#   20|   

Error: SHELLCHECK_WARNING: [#def736]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:61:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   59|   
#   60|   trim() {
#   61|->     local var="$*"
#   62|       var="${var#"${var%%[![:space:]]*}"}" # remove leading whitespace characters
#   63|       var="${var%"${var##*[![:space:]]}"}" # remove trailing whitespace characters

Error: SHELLCHECK_WARNING: [#def737]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:108:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  106|   
#  107|   killall_proc_mountpoint() {
#  108|->     local _pid
#  109|       local _killed=0
#  110|       for _pid in /proc/*; do

Error: SHELLCHECK_WARNING: [#def738]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:109:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  107|   killall_proc_mountpoint() {
#  108|       local _pid
#  109|->     local _killed=0
#  110|       for _pid in /proc/*; do
#  111|           _pid=${_pid##/proc/}

Error: SHELLCHECK_WARNING: [#def739]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:126:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  124|   
#  125|   getcmdline() {
#  126|->     local _line
#  127|       local _i
#  128|       local CMDLINE_ETC_D=''

Error: SHELLCHECK_WARNING: [#def740]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:127:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  125|   getcmdline() {
#  126|       local _line
#  127|->     local _i
#  128|       local CMDLINE_ETC_D=''
#  129|       local CMDLINE_ETC=''

Error: SHELLCHECK_WARNING: [#def741]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:128:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  126|       local _line
#  127|       local _i
#  128|->     local CMDLINE_ETC_D=''
#  129|       local CMDLINE_ETC=''
#  130|       local CMDLINE_PROC=''

Error: SHELLCHECK_WARNING: [#def742]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:129:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  127|       local _i
#  128|       local CMDLINE_ETC_D=''
#  129|->     local CMDLINE_ETC=''
#  130|       local CMDLINE_PROC=''
#  131|       unset _line

Error: SHELLCHECK_WARNING: [#def743]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:130:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  128|       local CMDLINE_ETC_D=''
#  129|       local CMDLINE_ETC=''
#  130|->     local CMDLINE_PROC=''
#  131|       unset _line
#  132|   

Error: SHELLCHECK_WARNING: [#def744]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:155:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  153|   getarg() {
#  154|       debug_off
#  155|->     local _deprecated='' _newoption=''
#  156|       CMDLINE=$(getcmdline)
#  157|       export CMDLINE

Error: SHELLCHECK_WARNING: [#def745]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:228:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  226|   #   false: rd.info=0, rd.info=off, rd.info not present (default val is 0)
#  227|   getargbool() {
#  228|->     local _b
#  229|       unset _b
#  230|       local _default

Error: SHELLCHECK_WARNING: [#def746]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:230:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  228|       local _b
#  229|       unset _b
#  230|->     local _default
#  231|       _default="$1"
#  232|       shift

Error: SHELLCHECK_WARNING: [#def747]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:256:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  254|   # <defaultval> should be with [minval -maxval].
#  255|   getargnum() {
#  256|->     local _b
#  257|       unset _b
#  258|       local _default _min _max

Error: SHELLCHECK_WARNING: [#def748]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:258:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  256|       local _b
#  257|       unset _b
#  258|->     local _default _min _max
#  259|       _default="$1"
#  260|       shift

Error: SHELLCHECK_WARNING: [#def749]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:277:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  275|       CMDLINE=$(getcmdline)
#  276|       export CMDLINE
#  277|->     local _val _i _gfound="" _deprecated=""
#  278|       unset _val
#  279|       _newoption="$1"

Error: SHELLCHECK_WARNING: [#def750]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:324:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  322|   splitsep() {
#  323|       debug_off
#  324|->     local sep="$1"
#  325|       local str="$2"
#  326|       shift 2

Error: SHELLCHECK_WARNING: [#def751]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:325:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  323|       debug_off
#  324|       local sep="$1"
#  325|->     local str="$2"
#  326|       shift 2
#  327|       local tmp

Error: SHELLCHECK_WARNING: [#def752]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:327:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  325|       local str="$2"
#  326|       shift 2
#  327|->     local tmp
#  328|   
#  329|       while [ -n "$str" ] && [ "$#" -gt 1 ]; do

Error: SHELLCHECK_WARNING: [#def753]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:360:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  358|   
#  359|   source_all() {
#  360|->     local f
#  361|       local _dir
#  362|       _dir=$1

Error: SHELLCHECK_WARNING: [#def754]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:361:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  359|   source_all() {
#  360|       local f
#  361|->     local _dir
#  362|       _dir=$1
#  363|       shift

Error: SHELLCHECK_WARNING: [#def755]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:378:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  376|   
#  377|   source_hook() {
#  378|->     local _dir
#  379|       _dir=$1
#  380|       shift

Error: SHELLCHECK_WARNING: [#def756]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:385:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  383|   
#  384|   check_finished() {
#  385|->     local f rc=0
#  386|       for f in "$hookdir"/initqueue/finished/*.sh; do
#  387|           [ "$f" = "$hookdir/initqueue/finished/*.sh" ] && return 0

Error: SHELLCHECK_WARNING: [#def757]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:399:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  397|   
#  398|   source_conf() {
#  399|->     local f
#  400|       [ "$1" ] && [ -d "/$1" ] || return
#  401|       # shellcheck disable=SC1090

Error: SHELLCHECK_WARNING: [#def758]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:446:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  444|   incol2() {
#  445|       debug_off
#  446|->     local check
#  447|       local file="$1"
#  448|       local str="$2"

Error: SHELLCHECK_WARNING: [#def759]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:447:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  445|       debug_off
#  446|       local check
#  447|->     local file="$1"
#  448|       local str="$2"
#  449|   

Error: SHELLCHECK_WARNING: [#def760]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:448:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  446|       local check
#  447|       local file="$1"
#  448|->     local str="$2"
#  449|   
#  450|       [ -z "$file" ] && return 1

Error: SHELLCHECK_WARNING (CWE-457): [#def761]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:465:61: warning[SC2154]: settle_exit_if_exists is referenced but not assigned.
#  463|   udevsettle() {
#  464|       # shellcheck disable=SC2086
#  465|->     udevadm settle --exit-if-exists=$hookdir/initqueue/work $settle_exit_if_exists
#  466|   }
#  467|   

Error: SHELLCHECK_WARNING: [#def762]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:475:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  473|   
#  474|   find_mount() {
#  475|->     local dev wanted_dev
#  476|       wanted_dev="$(readlink -e -q "$1")"
#  477|       while read -r dev _ || [ -n "$dev" ]; do

Error: SHELLCHECK_WARNING: [#def763]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:529:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  527|   
#  528|   label_uuid_to_dev() {
#  529|->     local _dev
#  530|       _dev="${1#block:}"
#  531|       case "$_dev" in

Error: SHELLCHECK_WARNING: [#def764]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:563:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  561|   # /mnt/cdrom2
#  562|   funiq() {
#  563|->     local dir="$1"
#  564|       local prefix="$2"
#  565|       local i=0

Error: SHELLCHECK_WARNING: [#def765]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:564:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  562|   funiq() {
#  563|       local dir="$1"
#  564|->     local prefix="$2"
#  565|       local i=0
#  566|   

Error: SHELLCHECK_WARNING: [#def766]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:565:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  563|       local dir="$1"
#  564|       local prefix="$2"
#  565|->     local i=0
#  566|   
#  567|       [ -d "${dir}" ] || return 1

Error: SHELLCHECK_WARNING: [#def767]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:581:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  579|   # mkuniqdir subdir new_dir_name
#  580|   mkuniqdir() {
#  581|->     local dir="$1"
#  582|       local prefix="$2"
#  583|       local retdir

Error: SHELLCHECK_WARNING: [#def768]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:582:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  580|   mkuniqdir() {
#  581|       local dir="$1"
#  582|->     local prefix="$2"
#  583|       local retdir
#  584|       local retdir_new

Error: SHELLCHECK_WARNING: [#def769]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:583:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  581|       local dir="$1"
#  582|       local prefix="$2"
#  583|->     local retdir
#  584|       local retdir_new
#  585|   

Error: SHELLCHECK_WARNING: [#def770]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:584:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  582|       local prefix="$2"
#  583|       local retdir
#  584|->     local retdir_new
#  585|   
#  586|       [ -d "${dir}" ] || mkdir -m 0755 -p "${dir}" || return 1

Error: SHELLCHECK_WARNING (CWE-277): [#def771]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:586:30: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  584|       local retdir_new
#  585|   
#  586|->     [ -d "${dir}" ] || mkdir -m 0755 -p "${dir}" || return 1
#  587|   
#  588|       retdir=$(funiq "${dir}" "${prefix}") || return 1

Error: SHELLCHECK_WARNING: [#def772]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:604:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  602|   # copytree SRC DEST
#  603|   copytree() {
#  604|->     local src="$1" dest="$2"
#  605|       [ -d "$src" ] || return 1
#  606|       mkdir -p "$dest" || return 1

Error: SHELLCHECK_WARNING: [#def773]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:635:22: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  633|       cd /dev/disk/by-uuid || return 1
#  634|   
#  635|->     [ "$1" = -p ] && local prefix="$2" && shift 2
#  636|       local cmd="$1"
#  637|       shift

Error: SHELLCHECK_WARNING: [#def774]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:636:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  634|   
#  635|       [ "$1" = -p ] && local prefix="$2" && shift 2
#  636|->     local cmd="$1"
#  637|       shift
#  638|       local uuids_list="$*"

Error: SHELLCHECK_WARNING: [#def775]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:638:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  636|       local cmd="$1"
#  637|       shift
#  638|->     local uuids_list="$*"
#  639|       local uuid
#  640|       local full_uuid

Error: SHELLCHECK_WARNING: [#def776]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:639:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  637|       shift
#  638|       local uuids_list="$*"
#  639|->     local uuid
#  640|       local full_uuid
#  641|       local ___

Error: SHELLCHECK_WARNING: [#def777]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:640:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  638|       local uuids_list="$*"
#  639|       local uuid
#  640|->     local full_uuid
#  641|       local ___
#  642|   

Error: SHELLCHECK_WARNING: [#def778]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:641:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  639|       local uuid
#  640|       local full_uuid
#  641|->     local ___
#  642|   
#  643|       [ -n "${cmd}" ] || return 1

Error: SHELLCHECK_WARNING: [#def779]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:672:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  670|   #   /dev/sdf3
#  671|   devnames() {
#  672|->     local dev="$1"
#  673|       local d
#  674|       local names

Error: SHELLCHECK_WARNING: [#def780]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:673:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  671|   devnames() {
#  672|       local dev="$1"
#  673|->     local d
#  674|       local names
#  675|   

Error: SHELLCHECK_WARNING: [#def781]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:674:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  672|       local dev="$1"
#  673|       local d
#  674|->     local names
#  675|   
#  676|       case "$dev" in

Error: SHELLCHECK_WARNING: [#def782]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:698:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  696|   
#  697|   usable_root() {
#  698|->     local _i
#  699|   
#  700|       [ -d "$1" ] || return 1

Error: SHELLCHECK_WARNING: [#def783]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:710:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  708|   
#  709|   inst_hook() {
#  710|->     local _hookname _unique _name _job _exe
#  711|       while [ $# -gt 0 ]; do
#  712|           case "$1" in

Error: SHELLCHECK_WARNING: [#def784]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:758:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  756|   killproc() {
#  757|       debug_off
#  758|->     local _exe
#  759|       _exe="$(command -v "$1")"
#  760|       local _sig="$2"

Error: SHELLCHECK_WARNING: [#def785]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:760:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  758|       local _exe
#  759|       _exe="$(command -v "$1")"
#  760|->     local _sig="$2"
#  761|       local _i
#  762|       [ -x "$_exe" ] || return 1

Error: SHELLCHECK_WARNING: [#def786]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:761:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  759|       _exe="$(command -v "$1")"
#  760|       local _sig="$2"
#  761|->     local _i
#  762|       [ -x "$_exe" ] || return 1
#  763|       for _i in /proc/[0-9]*; do

Error: SHELLCHECK_WARNING: [#def787]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:807:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  805|       pidof() {
#  806|           debug_off
#  807|->         local _cmd
#  808|           local _exe
#  809|           local _rl

Error: SHELLCHECK_WARNING: [#def788]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:808:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  806|           debug_off
#  807|           local _cmd
#  808|->         local _exe
#  809|           local _rl
#  810|           local _ret=1

Error: SHELLCHECK_WARNING: [#def789]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:809:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  807|           local _cmd
#  808|           local _exe
#  809|->         local _rl
#  810|           local _ret=1
#  811|           local i

Error: SHELLCHECK_WARNING: [#def790]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:810:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  808|           local _exe
#  809|           local _rl
#  810|->         local _ret=1
#  811|           local i
#  812|           _cmd="$1"

Error: SHELLCHECK_WARNING: [#def791]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:811:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  809|           local _rl
#  810|           local _ret=1
#  811|->         local i
#  812|           _cmd="$1"
#  813|           if [ -z "$_cmd" ]; then

Error: SHELLCHECK_WARNING: [#def792]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:836:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  834|   
#  835|   _emergency_shell() {
#  836|->     local _name="$1"
#  837|       if [ -n "${DRACUT_SYSTEMD-}" ]; then
#  838|           : > /.console_lock

Error: SHELLCHECK_WARNING: [#def793]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:877:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  875|   
#  876|   emergency_shell() {
#  877|->     local _ctty
#  878|       set +e
#  879|       local _rdshell_name="dracut" action="Boot" hook="emergency"

Error: SHELLCHECK_WARNING: [#def794]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:879:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  877|       local _ctty
#  878|       set +e
#  879|->     local _rdshell_name="dracut" action="Boot" hook="emergency"
#  880|       local _emergency_action
#  881|   

Error: SHELLCHECK_WARNING: [#def795]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:880:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  878|       set +e
#  879|       local _rdshell_name="dracut" action="Boot" hook="emergency"
#  880|->     local _emergency_action
#  881|   
#  882|       if [ "$1" = "-n" ]; then

Error: SHELLCHECK_WARNING: [#def796]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:926:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  924|   # This is a POSIX-compliant equivalent of bash's "export -n"
#  925|   export_n() {
#  926|->     local var
#  927|       local val
#  928|       for var in "$@"; do

Error: SHELLCHECK_WARNING: [#def797]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:927:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  925|   export_n() {
#  926|       local var
#  927|->     local val
#  928|       for var in "$@"; do
#  929|           eval "val=\$$var"

Error: SHELLCHECK_WARNING: [#def798]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:943:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  941|   # $4 = ignore values, separated by $1
#  942|   listlist() {
#  943|->     local _sep="$1"
#  944|       local _list="${_sep}${2}${_sep}"
#  945|       local _sublist="$3"

Error: SHELLCHECK_WARNING: [#def799]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:944:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  942|   listlist() {
#  943|       local _sep="$1"
#  944|->     local _list="${_sep}${2}${_sep}"
#  945|       local _sublist="$3"
#  946|       [ -n "$4" ] && local _iglist="${_sep}${4}${_sep}"

Error: SHELLCHECK_WARNING: [#def800]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:945:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  943|       local _sep="$1"
#  944|       local _list="${_sep}${2}${_sep}"
#  945|->     local _sublist="$3"
#  946|       [ -n "$4" ] && local _iglist="${_sep}${4}${_sep}"
#  947|       local IFS="$_sep"

Error: SHELLCHECK_WARNING: [#def801]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:946:20: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  944|       local _list="${_sep}${2}${_sep}"
#  945|       local _sublist="$3"
#  946|->     [ -n "$4" ] && local _iglist="${_sep}${4}${_sep}"
#  947|       local IFS="$_sep"
#  948|       local _v

Error: SHELLCHECK_WARNING: [#def802]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:947:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  945|       local _sublist="$3"
#  946|       [ -n "$4" ] && local _iglist="${_sep}${4}${_sep}"
#  947|->     local IFS="$_sep"
#  948|       local _v
#  949|   

Error: SHELLCHECK_WARNING: [#def803]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:948:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  946|       [ -n "$4" ] && local _iglist="${_sep}${4}${_sep}"
#  947|       local IFS="$_sep"
#  948|->     local _v
#  949|   
#  950|       [ "$_list" = "$_sublist" ] && return 0

Error: SHELLCHECK_WARNING: [#def804]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:983:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  981|   # parameters: func log_level prefix msg [trace_level:trace]...
#  982|   make_trace_mem() {
#  983|->     local log_level prefix msg msg_printed
#  984|       local trace trace_level trace_in_higher_levels insert_trace
#  985|   

Error: SHELLCHECK_WARNING: [#def805]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:984:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  982|   make_trace_mem() {
#  983|       local log_level prefix msg msg_printed
#  984|->     local trace trace_level trace_in_higher_levels insert_trace
#  985|   
#  986|       msg=$1

Error: SHELLCHECK_WARNING: [#def806]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:1057:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
# 1055|   # echo the field value, if present.
# 1056|   check_meminfo() {
# 1057|->     local - m sz
# 1058|       set +x
# 1059|       while read -r m sz _ || [ "$m" ]; do

Error: SHELLCHECK_WARNING: [#def807]
/usr/lib/dracut/modules.d/80base/dracut-lib.sh:1079:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
# 1077|   # modprobe fails if /lib/modules is not available (--no-kernel use case)
# 1078|   load_fstype() {
# 1079|->     local - fs _fs="${2:-$1}"
# 1080|       set +x
# 1081|       while read -r d fs || [ "$d" ]; do

Error: SHELLCHECK_WARNING (CWE-277): [#def808]
/usr/lib/dracut/modules.d/80base/init.sh:12:29: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   10|   
#   11|   NEWROOT="/sysroot"
#   12|-> [ -d $NEWROOT ] || mkdir -p -m 0755 $NEWROOT
#   13|   
#   14|   OLDPATH=$PATH

Error: SHELLCHECK_WARNING (CWE-277): [#def809]
/usr/lib/dracut/modules.d/80base/init.sh:20:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   18|   # mount some important things
#   19|   if [ ! -d /proc/self ]; then
#   20|->     mkdir -m 0755 -p /proc
#   21|       if ! mount -t proc -o nosuid,noexec,nodev proc /proc > /dev/null; then
#   22|           echo "Cannot mount proc on /proc! Compile the kernel with CONFIG_PROC_FS!"

Error: SHELLCHECK_WARNING (CWE-277): [#def810]
/usr/lib/dracut/modules.d/80base/init.sh:28:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   26|   
#   27|   if [ ! -d /sys/kernel ]; then
#   28|->     mkdir -m 0755 -p /sys
#   29|       if ! mount -t sysfs -o nosuid,noexec,nodev sysfs /sys > /dev/null; then
#   30|           echo "Cannot mount sysfs on /sys! Compile the kernel with CONFIG_SYSFS!"

Error: SHELLCHECK_WARNING (CWE-277): [#def811]
/usr/lib/dracut/modules.d/80base/init.sh:41:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   39|   
#   40|   if ! ismounted /dev; then
#   41|->     mkdir -m 0755 -p /dev
#   42|       mount -t devtmpfs -o mode=0755,noexec,nosuid,strictatime devtmpfs /dev > /dev/null
#   43|   fi

Error: SHELLCHECK_WARNING (CWE-277): [#def812]
/usr/lib/dracut/modules.d/80base/init.sh:57:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   55|   
#   56|   if ! ismounted /dev/pts; then
#   57|->     mkdir -m 0755 -p /dev/pts
#   58|       mount -t devpts -o gid=5,mode=600,noexec,nosuid devpts /dev/pts > /dev/null
#   59|   fi

Error: SHELLCHECK_WARNING (CWE-277): [#def813]
/usr/lib/dracut/modules.d/80base/init.sh:62:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   60|   
#   61|   if ! ismounted /dev/shm; then
#   62|->     mkdir -m 0755 -p /dev/shm
#   63|       mount -t tmpfs -o mode=1777,noexec,nosuid,nodev,strictatime tmpfs /dev/shm > /dev/null
#   64|   fi

Error: SHELLCHECK_WARNING (CWE-277): [#def814]
/usr/lib/dracut/modules.d/80base/init.sh:67:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   65|   
#   66|   if ! ismounted /run; then
#   67|->     mkdir -m 0755 -p /newrun
#   68|       if ! str_starts "$(readlink -f /bin/sh)" "/run/"; then
#   69|           mount -t tmpfs -o mode=0755,noexec,nosuid,nodev,strictatime tmpfs /newrun > /dev/null

Error: SHELLCHECK_WARNING (CWE-277): [#def815]
/usr/lib/dracut/modules.d/80base/init.sh:85:27: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   83|               case $type in
#   84|                   d)
#   85|->                     mkdir -m "$mode" -p "$file"
#   86|                       ;;
#   87|                   c)

Error: SHELLCHECK_WARNING (CWE-277): [#def816]
/usr/lib/dracut/modules.d/80base/init.sh:96:30: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   94|   trap "emergency_shell Signal caught!" 0
#   95|   
#   96|-> [ -d /run/udev ] || mkdir -p -m 0755 /run/udev
#   97|   [ -d /run/udev/rules.d ] || mkdir -p -m 0755 /run/udev/rules.d
#   98|   

Error: SHELLCHECK_WARNING (CWE-277): [#def817]
/usr/lib/dracut/modules.d/80base/init.sh:97:38: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   95|   
#   96|   [ -d /run/udev ] || mkdir -p -m 0755 /run/udev
#   97|-> [ -d /run/udev/rules.d ] || mkdir -p -m 0755 /run/udev/rules.d
#   98|   
#   99|   if [ "$RD_DEBUG" = "yes" ]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def818]
/usr/lib/dracut/modules.d/80base/init.sh:150:21: warning[SC2154]: systemdutildir is referenced but not assigned.
#  148|   
#  149|   # start up udev and trigger cold plugs
#  150|-> UDEV_LOG=$UDEV_LOG "$systemdutildir"/systemd-udevd --daemon --resolve-names=never
#  151|   
#  152|   UDEV_QUEUE_EMPTY="udevadm settle --timeout=0"

Error: SHELLCHECK_WARNING (CWE-457): [#def819]
/usr/lib/dracut/modules.d/80base/init.sh:154:23: warning[SC2154]: hookdir is referenced but not assigned.
#  152|   UDEV_QUEUE_EMPTY="udevadm settle --timeout=0"
#  153|   
#  154|-> udevproperty "hookdir=$hookdir"
#  155|   
#  156|   make_trace_mem "hook pre-trigger" '1:shortmem' '2+:mem' '3+:slab'

Error: SHELLCHECK_WARNING (CWE-277): [#def820]
/usr/lib/dracut/modules.d/80base/init.sh:366:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  364|   if ! [ -d "$NEWROOT"/run ]; then
#  365|       NEWRUN=/dev/.initramfs
#  366|->     mkdir -m 0755 -p "$NEWRUN"
#  367|       mount --rbind /run/initramfs "$NEWRUN"
#  368|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def821]
/usr/lib/dracut/modules.d/80base/module-setup.sh:8:11: warning[SC2154]: hostonly_cmdline is referenced but not assigned.
#    6|       deps="udev-rules"
#    7|   
#    8|->     if [[ $hostonly_cmdline == "yes" ]]; then
#    9|           if [[ -n ${host_devs[*]} ]] || [[ -n ${user_devs[*]} ]]; then
#   10|               deps+=" initqueue"

Error: SHELLCHECK_WARNING (CWE-457): [#def822]
/usr/lib/dracut/modules.d/80base/module-setup.sh:58:18: warning[SC2154]: dracutbasedir is referenced but not assigned.
#   56|           sysctl
#   57|   
#   58|->     inst_binary "${dracutbasedir}/dracut-util" "/usr/bin/dracut-util"
#   59|   
#   60|       ln -s dracut-util "${initdir}/usr/bin/dracut-getarg"

Error: SHELLCHECK_WARNING (CWE-457): [#def823]
/usr/lib/dracut/modules.d/80base/module-setup.sh:60:24: warning[SC2154]: initdir is referenced but not assigned.
#   58|       inst_binary "${dracutbasedir}/dracut-util" "/usr/bin/dracut-util"
#   59|   
#   60|->     ln -s dracut-util "${initdir}/usr/bin/dracut-getarg"
#   61|       ln -s dracut-util "${initdir}/usr/bin/dracut-getargs"
#   62|   

Error: SHELLCHECK_WARNING (CWE-457): [#def824]
/usr/lib/dracut/modules.d/80base/module-setup.sh:84:18: warning[SC2154]: moddir is referenced but not assigned.
#   82|   
#   83|       # install our scripts and hooks
#   84|->     inst_script "$moddir/loginit.sh" "/sbin/loginit"
#   85|       inst_script "$moddir/rdsosreport.sh" "/sbin/rdsosreport"
#   86|   

Error: SHELLCHECK_WARNING (CWE-277): [#def825]
/usr/lib/dracut/modules.d/80base/module-setup.sh:87:38: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   85|       inst_script "$moddir/rdsosreport.sh" "/sbin/rdsosreport"
#   86|   
#   87|->     [ -e "${initdir}/lib" ] || mkdir -m 0755 -p "${initdir}"/lib
#   88|       mkdir -m 0755 -p "${initdir}"/lib/dracut
#   89|       mkdir -m 0755 -p "${initdir}"/var/lib/dracut/hooks

Error: SHELLCHECK_WARNING (CWE-277): [#def826]
/usr/lib/dracut/modules.d/80base/module-setup.sh:88:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   86|   
#   87|       [ -e "${initdir}/lib" ] || mkdir -m 0755 -p "${initdir}"/lib
#   88|->     mkdir -m 0755 -p "${initdir}"/lib/dracut
#   89|       mkdir -m 0755 -p "${initdir}"/var/lib/dracut/hooks
#   90|   

Error: SHELLCHECK_WARNING (CWE-277): [#def827]
/usr/lib/dracut/modules.d/80base/module-setup.sh:89:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   87|       [ -e "${initdir}/lib" ] || mkdir -m 0755 -p "${initdir}"/lib
#   88|       mkdir -m 0755 -p "${initdir}"/lib/dracut
#   89|->     mkdir -m 0755 -p "${initdir}"/var/lib/dracut/hooks
#   90|   
#   91|       # symlink to old hooks location for compatibility

Error: SHELLCHECK_WARNING (CWE-457): [#def828]
/usr/lib/dracut/modules.d/80base/module-setup.sh:121:11: warning[SC2154]: ro_mnt is referenced but not assigned.
#  119|   
#  120|       ln -fs /proc/self/mounts "$initdir/etc/mtab"
#  121|->     if [[ $ro_mnt == yes ]]; then
#  122|           echo ro >> "${initdir}/etc/cmdline.d/base.conf"
#  123|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def829]
/usr/lib/dracut/modules.d/80base/module-setup.sh:144:35: warning[SC2154]: root_devs is referenced but not assigned (did you mean 'host_devs'?).
#  142|   
#  143|                   for _dev in "${host_devs[@]}"; do
#  144|->                     for _dev2 in "${root_devs[@]}"; do
#  145|                           [[ $_dev == "$_dev2" ]] && continue 2
#  146|                       done

Error: SHELLCHECK_WARNING (CWE-457): [#def830]
/usr/lib/dracut/modules.d/80base/module-setup.sh:151:35: warning[SC2154]: swap_devs is referenced but not assigned.
#  149|                       # for resume and udev rules generated when parsing resume=
#  150|                       # argument take care of the waiting for us
#  151|->                     for _dev2 in "${swap_devs[@]}"; do
#  152|                           [[ $_dev == "$_dev2" ]] && continue 2
#  153|                       done

Error: SHELLCHECK_WARNING (CWE-457): [#def831]
/usr/lib/dracut/modules.d/84memstrack/module-setup.sh:23:11: warning[SC2154]: moddir is referenced but not assigned.
#   21|       inst "/bin/memstrack" "/bin/memstrack"
#   22|   
#   23|->     inst "$moddir/memstrack-start.sh" "/bin/memstrack-start"
#   24|       inst_hook cleanup 99 "$moddir/memstrack-report.sh"
#   25|   

Error: SHELLCHECK_WARNING (CWE-457): [#def832]
/usr/lib/dracut/modules.d/84memstrack/module-setup.sh:26:39: warning[SC2154]: systemdsystemunitdir is referenced but not assigned.
#   24|       inst_hook cleanup 99 "$moddir/memstrack-report.sh"
#   25|   
#   26|->     inst "$moddir/memstrack.service" "$systemdsystemunitdir/memstrack.service"
#   27|   
#   28|       $SYSTEMCTL -q --root "$initdir" add-wants initrd.target memstrack.service

Error: SHELLCHECK_WARNING (CWE-457): [#def833]
/usr/lib/dracut/modules.d/84memstrack/module-setup.sh:28:27: warning[SC2154]: initdir is referenced but not assigned.
#   26|       inst "$moddir/memstrack.service" "$systemdsystemunitdir/memstrack.service"
#   27|   
#   28|->     $SYSTEMCTL -q --root "$initdir" add-wants initrd.target memstrack.service
#   29|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def834]
/usr/lib/dracut/modules.d/86shutdown/module-setup.sh:14:11: warning[SC2154]: moddir is referenced but not assigned.
#   12|       inst_multiple umount poweroff reboot halt losetup stat sleep timeout
#   13|       inst_multiple -o kexec
#   14|->     inst "$moddir/shutdown.sh" "$prefix/shutdown"
#   15|       mkdir -m 0755 -p "${initdir}"/var/lib/dracut/hooks
#   16|   

Error: SHELLCHECK_WARNING (CWE-457): [#def835]
/usr/lib/dracut/modules.d/86shutdown/module-setup.sh:14:33: warning[SC2154]: prefix is referenced but not assigned.
#   12|       inst_multiple umount poweroff reboot halt losetup stat sleep timeout
#   13|       inst_multiple -o kexec
#   14|->     inst "$moddir/shutdown.sh" "$prefix/shutdown"
#   15|       mkdir -m 0755 -p "${initdir}"/var/lib/dracut/hooks
#   16|   

Error: SHELLCHECK_WARNING (CWE-277): [#def836]
/usr/lib/dracut/modules.d/86shutdown/module-setup.sh:15:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   13|       inst_multiple -o kexec
#   14|       inst "$moddir/shutdown.sh" "$prefix/shutdown"
#   15|->     mkdir -m 0755 -p "${initdir}"/var/lib/dracut/hooks
#   16|   
#   17|       # symlink to old hooks location for compatibility

Error: SHELLCHECK_WARNING (CWE-457): [#def837]
/usr/lib/dracut/modules.d/86shutdown/module-setup.sh:15:23: warning[SC2154]: initdir is referenced but not assigned.
#   13|       inst_multiple -o kexec
#   14|       inst "$moddir/shutdown.sh" "$prefix/shutdown"
#   15|->     mkdir -m 0755 -p "${initdir}"/var/lib/dracut/hooks
#   16|   
#   17|       # symlink to old hooks location for compatibility

Error: SHELLCHECK_WARNING (CWE-457): [#def838]
/usr/lib/dracut/modules.d/86shutdown/module-setup.sh:20:15: warning[SC2154]: hookdirs is referenced but not assigned.
#   18|       ln_r /var/lib/dracut/hooks /lib/dracut/hooks
#   19|   
#   20|->     for _d in $hookdirs shutdown shutdown-emergency; do
#   21|           mkdir -m 0755 -p "${initdir}"/lib/dracut/hooks/"$_d"
#   22|       done

Error: SHELLCHECK_WARNING (CWE-277): [#def839]
/usr/lib/dracut/modules.d/86shutdown/module-setup.sh:21:15: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   19|   
#   20|       for _d in $hookdirs shutdown shutdown-emergency; do
#   21|->         mkdir -m 0755 -p "${initdir}"/lib/dracut/hooks/"$_d"
#   22|       done
#   23|   }

Error: SHELLCHECK_WARNING: [#def840]
/usr/lib/dracut/modules.d/86shutdown/shutdown.sh:56:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   54|   
#   55|   umount_a() {
#   56|->     local _verbose="n"
#   57|       if [ "$1" = "-v" ]; then
#   58|           _verbose="y"

Error: SHELLCHECK_WARNING: [#def841]
/usr/lib/dracut/modules.d/86shutdown/shutdown.sh:65:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   63|       fi
#   64|   
#   65|->     local _did_umount="n"
#   66|       while read -r _ mp _ || [ -n "$mp" ]; do
#   67|           strstr "$mp" oldroot || continue

Error: SHELLCHECK_WARNING: [#def842]
/usr/lib/dracut/modules.d/86shutdown/shutdown.sh:78:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
#   76|               timeout --signal=KILL "$_umount_timeout" umount "$mp"
#   77|           ) 2>&7
#   78|->         local ret=$?
#   79|           if [ $ret -eq 0 ]; then
#   80|               _did_umount="y"

Error: SHELLCHECK_WARNING: [#def843]
/usr/lib/dracut/modules.d/86shutdown/shutdown.sh:131:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  129|   
#  130|   _check_shutdown() {
#  131|->     local __f
#  132|       local __s=0
#  133|       for __f in "$hookdir"/shutdown/*.sh; do

Error: SHELLCHECK_WARNING: [#def844]
/usr/lib/dracut/modules.d/86shutdown/shutdown.sh:132:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
#  130|   _check_shutdown() {
#  131|       local __f
#  132|->     local __s=0
#  133|       for __f in "$hookdir"/shutdown/*.sh; do
#  134|           [ -e "$__f" ] || continue

Error: SHELLCHECK_WARNING (CWE-457): [#def845]
/usr/lib/dracut/modules.d/86shutdown/shutdown.sh:133:17: warning[SC2154]: hookdir is referenced but not assigned.
#  131|       local __f
#  132|       local __s=0
#  133|->     for __f in "$hookdir"/shutdown/*.sh; do
#  134|           [ -e "$__f" ] || continue
#  135|           # shellcheck disable=SC1090 disable=SC2240

Error: SHELLCHECK_WARNING (CWE-457): [#def846]
/usr/lib/dracut/modules.d/88squash-lib/module-setup.sh:45:19: warning[SC2154]: squashdir is referenced but not assigned.
#   43|       mkdir -p "$initdir"/squash
#   44|       for _dir in squash usr/bin usr/sbin usr/lib; do
#   45|->         mkdir -p "$squashdir/$_dir"
#   46|           [[ $_dir == usr/* ]] && ln_r "/$_dir" "${_dir#usr}"
#   47|       done

Error: SHELLCHECK_WARNING (CWE-457): [#def847]
/usr/lib/dracut/modules.d/88squash-lib/module-setup.sh:66:18: warning[SC2154]: moddir is referenced but not assigned.
#   64|   
#   65|       # Install squash image init script.
#   66|->     inst_simple "$moddir"/init-squash.sh /init
#   67|   
#   68|       # make sure that library links are correct and up to date for squash loader

Error: SHELLCHECK_WARNING (CWE-457): [#def848]
/usr/lib/dracut/modules.d/99openssl/module-setup.sh:11:17: warning[SC2154]: dracutbasedir is referenced but not assigned.
#    9|       local ossl_files openssl_cnf initrd_openssl_cnf
#   10|   
#   11|->     ossl_files="${dracutbasedir}/ossl-files"
#   12|   
#   13|       openssl_cnf="$($ossl_files --config)"

Error: SHELLCHECK_WARNING (CWE-457): [#def849]
/usr/lib/dracut/modules.d/99openssl/module-setup.sh:15:25: warning[SC2154]: initdir is referenced but not assigned.
#   13|       openssl_cnf="$($ossl_files --config)"
#   14|   
#   15|->     initrd_openssl_cnf="${initdir}/${openssl_cnf}"
#   16|   
#   17|       if [[ ! -r $openssl_cnf ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def850]
/usr/lib/kernel/install.d/51-dracut-rescue.install:108:15: warning[SC2154]: dracut_rescue_image is referenced but not assigned.
#  106|           done
#  107|   
#  108|->         if [[ $dracut_rescue_image != "yes" ]]; then
#  109|               [[ $KERNEL_INSTALL_VERBOSE == 1 ]] \
#  110|                   && echo "Skipping, 'dracut_rescue_image' not set to 'yes' in any dracut configuration file"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
dracut-ng-108/src/install/strv.c:232:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
dracut-ng-108/src/install/strv.c:210:8: enter_function: entry to ‘strv_merge_concat’
dracut-ng-108/src/install/strv.c:216:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
dracut-ng-108/src/install/strv.c:219:13: call_function: inlined call to ‘strv_length’ from ‘strv_merge_concat’
dracut-ng-108/src/install/strv.c:220:12: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
dracut-ng-108/src/install/strv.c:224:12: branch_false: ...to here
dracut-ng-108/src/install/strv.c:224:12: branch_true: following ‘true’ branch (when ‘a’ is non-NULL)...
 branch_true: ...to here
dracut-ng-108/src/install/strv.c:225:24: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:226:30: branch_true: ...to here
dracut-ng-108/src/install/strv.c:226:30: acquire_memory: allocated here
dracut-ng-108/src/install/strv.c:227:28: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:225:28: branch_false: ...to here
dracut-ng-108/src/install/strv.c:225:24: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/install/strv.c:231:16: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:232:22: branch_true: ...to here
dracut-ng-108/src/install/strv.c:232:22: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  230|   
#  231|           for (; *b; k++, b++) {
#  232|->                 *k = strappend(*b, suffix);
#  233|                   if (!*k)
#  234|                           goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
dracut-ng-108/src/install/strv.c:232:22: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
dracut-ng-108/src/install/strv.c:210:8: enter_function: entry to ‘strv_merge_concat’
dracut-ng-108/src/install/strv.c:216:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
dracut-ng-108/src/install/strv.c:219:13: call_function: inlined call to ‘strv_length’ from ‘strv_merge_concat’
dracut-ng-108/src/install/strv.c:219:13: acquire_memory: allocated here
dracut-ng-108/src/install/strv.c:220:12: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
dracut-ng-108/src/install/strv.c:224:12: branch_false: ...to here
dracut-ng-108/src/install/strv.c:224:12: branch_true: following ‘true’ branch (when ‘a’ is non-NULL)...
 branch_true: ...to here
dracut-ng-108/src/install/strv.c:225:24: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:226:30: branch_true: ...to here
dracut-ng-108/src/install/strv.c:227:28: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:225:28: branch_false: ...to here
dracut-ng-108/src/install/strv.c:225:24: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/install/strv.c:231:16: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:232:22: branch_true: ...to here
dracut-ng-108/src/install/strv.c:232:22: danger: ‘r’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  230|   
#  231|           for (; *b; k++, b++) {
#  232|->                 *k = strappend(*b, suffix);
#  233|                   if (!*k)
#  234|                           goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def853]
dracut-ng-108/src/install/strv.c:266:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
dracut-ng-108/src/install/strv.c:254:9: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:257:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:262:12: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
dracut-ng-108/src/install/strv.c:266:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:266:9: branch_true: following ‘true’ branch (when ‘w’ is non-NULL)...
dracut-ng-108/src/install/strv.c:267:24: branch_true: ...to here
dracut-ng-108/src/install/strv.c:267:24: acquire_memory: allocated here
dracut-ng-108/src/install/strv.c:268:20: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:273:17: branch_false: ...to here
dracut-ng-108/src/install/strv.c:266:9: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  264|   
#  265|           i = 0;
#  266|->         FOREACH_WORD_SEPARATOR(w, l, s, separator, state) {
#  267|                   r[i] = strndup(w, l);
#  268|                   if (!r[i]) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
dracut-ng-108/src/install/strv.c:266:9: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
dracut-ng-108/src/install/strv.c:254:9: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:257:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:261:13: acquire_memory: allocated here
dracut-ng-108/src/install/strv.c:262:12: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
dracut-ng-108/src/install/strv.c:266:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:266:9: danger: ‘r’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  264|   
#  265|           i = 0;
#  266|->         FOREACH_WORD_SEPARATOR(w, l, s, separator, state) {
#  267|                   r[i] = strndup(w, l);
#  268|                   if (!r[i]) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def855]
dracut-ng-108/src/install/strv.c:300:9: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
dracut-ng-108/src/install/strv.c:288:9: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:291:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:295:13: acquire_memory: allocated here
dracut-ng-108/src/install/strv.c:296:12: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
dracut-ng-108/src/install/strv.c:300:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:300:9: danger: ‘r’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  298|   
#  299|           i = 0;
#  300|->         FOREACH_WORD_QUOTED(w, l, s, state) {
#  301|                   r[i] = cunescape_length(w, l);
#  302|                   if (!r[i]) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def856]
dracut-ng-108/src/install/strv.c:301:24: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
dracut-ng-108/src/install/strv.c:288:9: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:291:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:295:13: acquire_memory: allocated here
dracut-ng-108/src/install/strv.c:296:12: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
dracut-ng-108/src/install/strv.c:300:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:300:9: branch_true: following ‘true’ branch (when ‘w’ is non-NULL)...
dracut-ng-108/src/install/strv.c:301:24: branch_true: ...to here
dracut-ng-108/src/install/strv.c:301:24: danger: ‘r’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  299|           i = 0;
#  300|           FOREACH_WORD_QUOTED(w, l, s, state) {
#  301|->                 r[i] = cunescape_length(w, l);
#  302|                   if (!r[i]) {
#  303|                           strv_free(r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def857]
dracut-ng-108/src/install/strv.c:416:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
dracut-ng-108/src/install/strv.c:557:8: enter_function: entry to ‘strv_split_nulstr’
dracut-ng-108/src/install/strv.c:562:9: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:563:21: call_function: inlined call to ‘strv_extend’ from ‘strv_split_nulstr’
dracut-ng-108/src/install/strv.c:563:21: call_function: inlined call to ‘strv_extend’ from ‘strv_split_nulstr’
dracut-ng-108/src/install/strv.c:563:20: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:562:9: branch_false: ...to here
dracut-ng-108/src/install/strv.c:562:9: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:563:21: call_function: inlined call to ‘strv_extend’ from ‘strv_split_nulstr’
#  414|           n = strv_length(*l);
#  415|           c = realloc(*l, sizeof(char *) * (n + 2));
#  416|->         if (!c)
#  417|                   return -ENOMEM;
#  418|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
dracut-ng-108/src/install/strv.c:552:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
dracut-ng-108/src/install/strv.c:516:9: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:518:12: branch_false: ...to here
dracut-ng-108/src/install/strv.c:518:12: branch_false: following ‘false’ branch (when ‘l != 0’)...
 branch_false: ...to here
dracut-ng-108/src/install/strv.c:529:12: branch_false: following ‘false’ branch (when ‘v’ is non-NULL)...
 branch_false: ...to here
dracut-ng-108/src/install/strv.c:533:16: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:536:34: branch_true: ...to here
dracut-ng-108/src/install/strv.c:538:24: acquire_memory: allocated here
dracut-ng-108/src/install/strv.c:539:20: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:544:17: branch_false: ...to here
dracut-ng-108/src/install/strv.c:552:9: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:552:9: branch_true: ...to here
dracut-ng-108/src/install/strv.c:552:9: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  550|           }
#  551|   
#  552|->         assert(i == c);
#  553|   
#  554|           return v;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
dracut-ng-108/src/install/strv.c:552:9: warning[-Wanalyzer-malloc-leak]: leak of ‘v’
dracut-ng-108/src/install/strv.c:516:9: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:518:12: branch_false: ...to here
dracut-ng-108/src/install/strv.c:518:12: branch_false: following ‘false’ branch (when ‘l != 0’)...
 branch_false: ...to here
dracut-ng-108/src/install/strv.c:528:13: acquire_memory: allocated here
dracut-ng-108/src/install/strv.c:529:12: branch_false: following ‘false’ branch (when ‘v’ is non-NULL)...
 branch_false: ...to here
dracut-ng-108/src/install/strv.c:533:16: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:536:34: branch_true: ...to here
dracut-ng-108/src/install/strv.c:539:20: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/strv.c:544:17: branch_false: ...to here
dracut-ng-108/src/install/strv.c:552:9: branch_true: following ‘true’ branch...
dracut-ng-108/src/install/strv.c:552:9: branch_true: ...to here
dracut-ng-108/src/install/strv.c:552:9: danger: ‘v’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  550|           }
#  551|   
#  552|->         assert(i == c);
#  553|   
#  554|           return v;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def860]
dracut-ng-108/src/install/util.c:70:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(name,  mode)’
dracut-ng-108/src/install/util.c:96:5: enter_function: entry to ‘open_terminal’
dracut-ng-108/src/install/util.c:111:27: acquire_resource: opened here
dracut-ng-108/src/install/util.c:127:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
dracut-ng-108/src/install/util.c:132:12: branch_false: ...to here
dracut-ng-108/src/install/util.c:132:12: branch_true: following ‘true’ branch (when ‘r == 0’)...
dracut-ng-108/src/install/util.c:133:17: branch_true: ...to here
dracut-ng-108/src/install/util.c:133:17: call_function: calling ‘close_nointr_nofail’ from ‘open_terminal’
#   68|   int close_nointr(int fd)
#   69|   {
#   70|->         assert(fd >= 0);
#   71|   
#   72|           for (;;) {

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def861]
dracut-ng-108/src/install/util.c:75:21: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
dracut-ng-108/src/install/util.c:70:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/install/util.c:75:21: release_resource: first ‘close’ here
dracut-ng-108/src/install/util.c:76:20: branch_false: following ‘false’ branch...
dracut-ng-108/src/install/util.c:79:21: branch_false: ...to here
dracut-ng-108/src/install/util.c:79:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/install/util.c:75:21: danger: second ‘close’ here; first ‘close’ was at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   73|                   int r;
#   74|   
#   75|->                 r = close(fd);
#   76|                   if (r >= 0)
#   77|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def862]
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_resource: opened here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  100|           }
#  101|   
#  102|->         if (fseek(f, 0, SEEK_SET)) {
#  103|                   pr_err("fseek error on file '%s'\n", fname);
#  104|                   goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def863]
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_memory: allocated here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  100|           }
#  101|   
#  102|->         if (fseek(f, 0, SEEK_SET)) {
#  103|                   pr_err("fseek error on file '%s'\n", fname);
#  104|                   goto end;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def864]
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_resource: opened here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:108:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:108:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:20: branch_true: following ‘true’ branch (when ‘filename_length == 11’)...
dracut-ng-108/src/skipcpio/skipcpio.c:124:24: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:21: branch_true: following ‘true’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  123|                   if (filename_length == (CPIO_ENDLEN + 1)
#  124|                       && strncmp(buf.cpio.filename, CPIO_END, CPIO_ENDLEN) == 0) {
#  125|->                         if (fseek(f, pos, SEEK_SET)) {
#  126|                                   pr_err("fseek\n");
#  127|                                   goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def865]
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_memory: allocated here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:108:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:108:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:20: branch_true: following ‘true’ branch (when ‘filename_length == 11’)...
dracut-ng-108/src/skipcpio/skipcpio.c:124:24: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:21: branch_true: following ‘true’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  123|                   if (filename_length == (CPIO_ENDLEN + 1)
#  124|                       && strncmp(buf.cpio.filename, CPIO_END, CPIO_ENDLEN) == 0) {
#  125|->                         if (fseek(f, pos, SEEK_SET)) {
#  126|                                   pr_err("fseek\n");
#  127|                                   goto end;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def866]
dracut-ng-108/src/skipcpio/skipcpio.c:132:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_resource: opened here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:108:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:108:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:132:21: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  130|                   }
#  131|   
#  132|->                 if (fseek(f, pos, SEEK_SET)) {
#  133|                           pr_err("fseek\n");
#  134|                           goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def867]
dracut-ng-108/src/skipcpio/skipcpio.c:132:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_memory: allocated here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:108:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:108:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:132:21: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  130|                   }
#  131|   
#  132|->                 if (fseek(f, pos, SEEK_SET)) {
#  133|                           pr_err("fseek\n");
#  134|                           goto end;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def868]
dracut-ng-108/src/skipcpio/skipcpio.c:151:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_resource: opened here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:108:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:108:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:20: branch_true: following ‘true’ branch (when ‘filename_length == 11’)...
dracut-ng-108/src/skipcpio/skipcpio.c:124:24: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:21: branch_true: following ‘true’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:125:28: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:149:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:149:12: branch_true: following ‘true’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:151:21: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:151:21: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  149|           if (feof(f)) {
#  150|                   /* CPIO_END not found, just cat the whole file */
#  151|->                 if (fseek(f, 0, SEEK_SET)) {
#  152|                           pr_err("fseek\n");
#  153|                           goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def869]
dracut-ng-108/src/skipcpio/skipcpio.c:151:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_memory: allocated here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:108:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:108:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:20: branch_true: following ‘true’ branch (when ‘filename_length == 11’)...
dracut-ng-108/src/skipcpio/skipcpio.c:124:24: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:21: branch_true: following ‘true’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:125:28: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:149:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:149:12: branch_true: following ‘true’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:151:21: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:151:21: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  149|           if (feof(f)) {
#  150|                   /* CPIO_END not found, just cat the whole file */
#  151|->                 if (fseek(f, 0, SEEK_SET)) {
#  152|                           pr_err("fseek\n");
#  153|                           goto end;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def870]
dracut-ng-108/src/skipcpio/skipcpio.c:171:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_resource: opened here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:108:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:108:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:20: branch_true: following ‘true’ branch (when ‘filename_length == 11’)...
dracut-ng-108/src/skipcpio/skipcpio.c:124:24: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:21: branch_true: following ‘true’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:125:28: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:149:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:149:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:161:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:171:37: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  169|                                   pos += i;
#  170|   
#  171|->                                 if (fseek(f, pos, SEEK_SET)) {
#  172|                                           pr_err("fseek\n");
#  173|                                           goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def871]
dracut-ng-108/src/skipcpio/skipcpio.c:171:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
dracut-ng-108/src/skipcpio/skipcpio.c:84:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
dracut-ng-108/src/skipcpio/skipcpio.c:89:9: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:90:13: acquire_memory: allocated here
dracut-ng-108/src/skipcpio/skipcpio.c:91:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:96:14: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:97:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:96:13: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:102:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:102:12: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:108:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:108:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:20: branch_true: following ‘true’ branch (when ‘filename_length == 11’)...
dracut-ng-108/src/skipcpio/skipcpio.c:124:24: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:123:21: branch_true: following ‘true’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:125:29: branch_true: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:125:28: branch_false: following ‘false’ branch...
dracut-ng-108/src/skipcpio/skipcpio.c:149:13: branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:149:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:161:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
dracut-ng-108/src/skipcpio/skipcpio.c:171:37: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  169|                                   pos += i;
#  170|   
#  171|->                                 if (fseek(f, pos, SEEK_SET)) {
#  172|                                           pr_err("fseek\n");
#  173|                                           goto end;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def872]
dracut-ng-108/src/util/util.c:70:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘args’
dracut-ng-108/src/util/util.c:293:5: enter_function: entry to ‘main’
dracut-ng-108/src/util/util.c:295:17: call_function: calling ‘get_mode’ from ‘main’
dracut-ng-108/src/util/util.c:295:17: return_function: returning to ‘main’ from ‘get_mode’
dracut-ng-108/src/util/util.c:300:24: call_function: calling ‘getarg’ from ‘main’
#   68|           char *next;
#   69|   
#   70|->         if (*args == '"') {
#   71|                   args++;
#   72|                   in_quote = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def873]
dracut-ng-108/src/util/util.c:234:12: warning[-Wanalyzer-malloc-leak]: leak of ‘cmdline’
dracut-ng-108/src/util/util.c:293:5: enter_function: entry to ‘main’
dracut-ng-108/src/util/util.c:295:17: call_function: calling ‘get_mode’ from ‘main’
dracut-ng-108/src/util/util.c:295:17: return_function: returning to ‘main’ from ‘get_mode’
dracut-ng-108/src/util/util.c:300:24: call_function: calling ‘getarg’ from ‘main’
#  232|           }
#  233|   
#  234|->         if (bool_value) {
#  235|                   return EXIT_SUCCESS;
#  236|           }

Error: CLIPPY_WARNING: [#def874]
src/main.rs:134:21: warning: redundant field names in struct initialization
#      |
#  134 |                     dev: dev,
#      |                     ^^^^^^^^ help: replace it with: `dev`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
#      = note: `#[warn(clippy::redundant_field_names)]` on by default

Error: CLIPPY_WARNING: [#def875]
src/main.rs:149:5: warning: this function has too many arguments (10/7)
#      |
#  149 | /     pub fn hardlink_seen<W: Write + Seek>(
#  150 | |         &mut self,
#  151 | |         props: &ArchiveProperties,
#  152 | |         mut writer: W,
#  ...   |
#  159 | |         mapped_nlink: &mut Option<u32>,
#  160 | |     ) -> std::io::Result<bool> {
#      | |______________________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
#      = note: `#[warn(clippy::too_many_arguments)]` on by default

Error: CLIPPY_WARNING: [#def876]
src/main.rs:188:12: warning: deref which would be done by auto-deref
#      |
#  188 |         if (*hl).names.iter().any(|n| n.infile == inpath) {
#      |            ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
#      = note: `#[warn(clippy::explicit_auto_deref)]` on by default

Error: CLIPPY_WARNING: [#def877]
src/main.rs:200:9: warning: deref which would be done by auto-deref
#      |
#  200 |         (*hl).seen += 1;
#      |         ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def878]
src/main.rs:201:12: warning: deref which would be done by auto-deref
#      |
#  201 |         if (*hl).seen > (*hl).nlink {
#      |            ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def879]
src/main.rs:201:25: warning: deref which would be done by auto-deref
#      |
#  201 |         if (*hl).seen > (*hl).nlink {
#      |                         ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def880]
src/main.rs:204:59: warning: deref which would be done by auto-deref
#      |
#  204 |             println!("hardlink seen {} exceeds nlink {}", (*hl).seen, (*hl).nlink);
#      |                                                           ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def881]
src/main.rs:204:71: warning: deref which would be done by auto-deref
#      |
#  204 |             println!("hardlink seen {} exceeds nlink {}", (*hl).seen, (*hl).nlink);
#      |                                                                       ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def882]
src/main.rs:207:12: warning: deref which would be done by auto-deref
#      |
#  207 |         if (*hl).seen < (*hl).nlink {
#      |            ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def883]
src/main.rs:207:25: warning: deref which would be done by auto-deref
#      |
#  207 |         if (*hl).seen < (*hl).nlink {
#      |                         ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def884]
src/main.rs:208:13: warning: deref which would be done by auto-deref
#      |
#  208 |             (*hl).names.push(HardlinkPath {
#      |             ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def885]
src/main.rs:218:21: warning: deref which would be done by auto-deref
#      |
#  218 |         for path in (*hl).names.iter().rev() {
#      |                     ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def886]
src/main.rs:227:23: warning: deref which would be done by auto-deref
#      |
#  227 |                 ino = (*hl).mapped_ino,
#      |                       ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def887]
src/main.rs:238:29: warning: deref which would be done by auto-deref
#      |
#  238 |                     true => (*hl).nlink,
#      |                             ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def888]
src/main.rs:264:28: warning: deref which would be done by auto-deref
#      |
#  264 |         *mapped_ino = Some((*hl).mapped_ino);
#      |                            ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def889]
src/main.rs:268:34: warning: deref which would be done by auto-deref
#      |
#  268 |             *mapped_nlink = Some((*hl).nlink);
#      |                                  ^^^^^ help: try: `hl`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Error: CLIPPY_WARNING: [#def890]
src/main.rs:278:9: warning: unneeded `return` statement
#      |
#  278 |         return Ok(false);
#      |         ^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
#      = note: `#[warn(clippy::needless_return)]` on by default
#  help: remove `return`
#      |
#  278 -         return Ok(false);
#  278 +         Ok(false)
#      |

Error: CLIPPY_WARNING: [#def891]
src/main.rs:300:16: warning: length comparison to zero
#      |
#  300 |             if p.as_os_str().as_bytes().len() == 0 {
#      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `p.as_os_str().as_bytes().is_empty()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
#      = note: `#[warn(clippy::len_zero)]` on by default

Error: CLIPPY_WARNING: [#def892]
src/main.rs:324:28: warning: this can be `std::io::Error::other(_)`
#      |
#  324 |         None => return Err(io::Error::new(io::ErrorKind::Other, "failed to map dev")),
#      |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
#      = note: `#[warn(clippy::io_other_error)]` on by default
#  help: use `std::io::Error::other`
#      |
#  324 -         None => return Err(io::Error::new(io::ErrorKind::Other, "failed to map dev")),
#  324 +         None => return Err(io::Error::other("failed to map dev")),
#      |

Error: CLIPPY_WARNING: [#def893]
src/main.rs:387:17: warning: this expression creates a reference which is immediately dereferenced by the compiler
#      |
#  387 |                 &props,
#      |                 ^^^^^^ help: change this to: `props`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
#      = note: `#[warn(clippy::needless_borrow)]` on by default

Error: CLIPPY_WARNING: [#def894]
src/main.rs:392:17: warning: this expression creates a reference which is immediately dereferenced by the compiler
#      |
#  392 |                 &inpath,
#      |                 ^^^^^^^ help: change this to: `inpath`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Error: CLIPPY_WARNING: [#def895]
src/main.rs:530:19: warning: length comparison to zero
#      |
#  530 |             while hl.names.len() > 0 {
#      |                   ^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!hl.names.is_empty()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero

Error: CLIPPY_WARNING: [#def896]
src/main.rs:541:8: warning: length comparison to zero
#      |
#  541 |     if deferred_inpaths.len() > 0 {
#      |        ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!deferred_inpaths.is_empty()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero

Error: CLIPPY_WARNING: [#def897]
src/main.rs:586:31: warning: casting to the same type is unnecessary (`u64` -> `u64`)
#      |
#  586 |     off += fname_len as u64 + padding_len as u64;
#      |                               ^^^^^^^^^^^^^^^^^^ help: try: `padding_len`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
#      = note: `#[warn(clippy::unnecessary_cast)]` on by default

Error: CLIPPY_WARNING: [#def898]
src/main.rs:596:32: warning: manual implementation of `.is_multiple_of()`
#      |
#  596 |     if props.data_align > 0 && (props.initial_data_off + u64::from(props.data_align)) % 4 != 0 {
#      |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!(props.initial_data_off + u64::from(props.data_align)).is_multiple_of(4)`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of
#      = note: `#[warn(clippy::manual_is_multiple_of)]` on by default

Error: CLIPPY_WARNING: [#def899]
src/main.rs:627:16: warning: length comparison to zero
#      |
#  627 |             if linebuf.len() == 0 {
#      |                ^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `linebuf.is_empty()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-231.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namedracut-108-3.fc44
store-results-to/tmp/tmpdil6pwcf/dracut-108-3.fc44.tar.xz
time-created2025-10-28 17:43:26
time-finished2025-10-28 17:45:22
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpdil6pwcf/dracut-108-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpdil6pwcf/dracut-108-3.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9