if ((stdloglvl < 6)) && ((kmsgloglvl < 6)) && ((fileloglvl < 6)) && ((sysloglvl < 6)); then
unset dtrace
- # shellcheck disable=SC2317 # exposed via API
+ # shellcheck disable=SC2317,SC2329 # exposed via API
dtrace() { :; }
fi
if ((stdloglvl < 5)) && ((kmsgloglvl < 5)) && ((fileloglvl < 5)) && ((sysloglvl < 5)); then
unset ddebug
- # shellcheck disable=SC2317 # exposed via API
+ # shellcheck disable=SC2317,SC2329 # exposed via API
ddebug() { :; }
fi
if ((stdloglvl < 4)) && ((kmsgloglvl < 4)) && ((fileloglvl < 4)) && ((sysloglvl < 4)); then
unset dinfo
- # shellcheck disable=SC2317 # exposed via API
+ # shellcheck disable=SC2317,SC2329 # exposed via API
dinfo() { :; }
fi
if ((stdloglvl < 3)) && ((kmsgloglvl < 3)) && ((fileloglvl < 3)) && ((sysloglvl < 3)); then
unset dwarn
- # shellcheck disable=SC2317 # exposed via API
+ # shellcheck disable=SC2317,SC2329 # exposed via API
dwarn() { :; }
unset dwarning
- # shellcheck disable=SC2317 # exposed via API
+ # shellcheck disable=SC2317,SC2329 # exposed via API
dwarning() { :; }
fi
if ((stdloglvl < 2)) && ((kmsgloglvl < 2)) && ((fileloglvl < 2)) && ((sysloglvl < 2)); then
unset derror
- # shellcheck disable=SC2317 # exposed via API
+ # shellcheck disable=SC2317,SC2329 # exposed via API
derror() { :; }
fi
if ((stdloglvl < 1)) && ((kmsgloglvl < 1)) && ((fileloglvl < 1)) && ((sysloglvl < 1)); then
unset dfatal
- # shellcheck disable=SC2317 # exposed via API
+ # shellcheck disable=SC2317,SC2329 # exposed via API
dfatal() { :; }
fi
exit 1
}
-# shellcheck disable=SC2317 # assigned to CAT and $CAT called later
+# shellcheck disable=SC2317,SC2329 # assigned to CAT and $CAT called later
skipcpio() {
$SKIP "$@" | $ORIG_CAT
}
if ((${#filenames[@]} > 1)); then
TMPFILE="$TMPDIR/initrd.cpio"
$CAT "$image" 2> /dev/null > "$TMPFILE"
- # shellcheck disable=SC2317 # assigned to CAT and $CAT called later
+ # shellcheck disable=SC2317,SC2329 # assigned to CAT and $CAT called later
pre_decompress() {
cat "$TMPFILE"
}
rm -f -- "$testfile"
# clean up after ourselves no matter how we die.
-# shellcheck disable=SC2317 # called via EXIT trap
+# shellcheck disable=SC2317,SC2329 # called via EXIT trap
cleanup() {
echo "Something failed. Move back to the original state"
for dir in "$ROOT/bin" "$ROOT/sbin" "$ROOT/lib" "$ROOT/lib64" \
local _blockfuncs='ahci_platform_get_resources|ata_scsi_ioctl|scsi_add_host|blk_cleanup_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device|usb_stor_disconnect|mmc_add_host|sdhci_add_host|scsi_add_host_with_dma|blk_alloc_disk|blk_mq_alloc_disk|blk_mq_alloc_request|blk_mq_destroy_queue|blk_cleanup_disk'
local -A _hostonly_drvs
- # shellcheck disable=SC2317 # called later by for_each_host_dev_and_slaves
+ # shellcheck disable=SC2317,SC2329 # called later by for_each_host_dev_and_slaves
record_block_dev_drv() {
for _mod in $(get_dev_module /dev/block/"$1"); do
local -A _allow
local config_dir
- # shellcheck disable=SC2317 # called later by for_each_host_dev_and_slaves
+ # shellcheck disable=SC2317,SC2329 # called later by for_each_host_dev_and_slaves
add_hostonly_mpath_conf() {
if is_mpath "$1"; then
local _dev
# called by dracut
check() {
- # shellcheck disable=SC2317 # called later by for_each_host_dev_and_slaves
+ # shellcheck disable=SC2317,SC2329 # called later by for_each_host_dev_and_slaves
is_fcoe() {
block_is_fcoe "$1" || return 1
}
# called by dracut
check() {
- # shellcheck disable=SC2317 # called later by for_each_host_dev_and_slaves
+ # shellcheck disable=SC2317,SC2329 # called later by for_each_host_dev_and_slaves
is_fcoe() {
block_is_fcoe "$1" || return 1
}
install_softiscsi() {
[ -d /sys/firmware/ibft ] && return 0
- # shellcheck disable=SC2317 # called later by for_each_host_dev_and_slaves
+ # shellcheck disable=SC2317,SC2329 # called later by for_each_host_dev_and_slaves
is_softiscsi() {
local _dev=$1
local iscsi_dev
# called by dracut
cmdline() {
- # shellcheck disable=SC2317 # called later by for_each_host_dev_and_slaves
+ # shellcheck disable=SC2317,SC2329 # called later by for_each_host_dev_and_slaves
get_lunmask() {
local _dev=$1
local _devpath _sdev _lun _rport _end_device _classdev _wwpn _sas_address
require_binaries nvme jq || return 1
require_kernel_modules nvme_fabrics || return 1
- # shellcheck disable=SC2317 # called later by for_each_host_dev_and_slaves
+ # shellcheck disable=SC2317,SC2329 # called later by for_each_host_dev_and_slaves
is_nvmf() {
local _dev=$1
local trtype
local _hostnqn
local _hostid
- # shellcheck disable=SC2317 # called later by for_each_host_dev_and_slaves
+ # shellcheck disable=SC2317,SC2329 # called later by for_each_host_dev_and_slaves
gen_nvmf_cmdline() {
local _dev=$1
local trtype
. dracut-dev-lib.sh
. dracut-lib.sh
- # shellcheck disable=SC2317 # overwrites debug_off from dracut-lib.sh
+ # shellcheck disable=SC2317,SC2329 # overwrites debug_off from dracut-lib.sh
debug_off() {
:
}
- # shellcheck disable=SC2317 # overwrites debug_on from dracut-lib.sh
+ # shellcheck disable=SC2317,SC2329 # overwrites debug_on from dracut-lib.sh
debug_on() {
:
}
- # shellcheck disable=SC2317 # called later by getarg in dracut-lib.sh
+ # shellcheck disable=SC2317,SC2329 # called later by getarg in dracut-lib.sh
getcmdline() {
echo "rd.break=cmdline rd.lvm rd.auto=0 rd.auto rd.retry=10"
}
getargbool 1 rd.lvm || ret=$((ret + 1))
getargbool 0 rd.auto || ret=$((ret + 1))
- # shellcheck disable=SC2317 # called later by getarg in dracut-lib.sh
+ # shellcheck disable=SC2317,SC2329 # called later by getarg in dracut-lib.sh
getcmdline() {
echo "rd.break=cmdlined rd.lvm=0 rd.auto rd.auto=1 rd.auto=0"
}
getargbool 1 rd.lvm && ret=$((ret + 1))
getargbool 0 rd.auto && ret=$((ret + 1))
- # shellcheck disable=SC2317 # called later by getarg in dracut-lib.sh
+ # shellcheck disable=SC2317,SC2329 # called later by getarg in dracut-lib.sh
getcmdline() {
echo "ip=a ip=b ip=dhcp6"
}
[[ ${args[$i]} == "${RESULT[$i]}" ]] || ret=$((ret + 1))
done
- # shellcheck disable=SC2317 # called later by getarg in dracut-lib.sh
+ # shellcheck disable=SC2317,SC2329 # called later by getarg in dracut-lib.sh
getcmdline() {
echo "bridge bridge=val"
}
[[ ${args[$i]} == "${RESULT[$i]}" ]] || ret=$((ret + 1))
done
- # shellcheck disable=SC2317 # called later by getarg in dracut-lib.sh
+ # shellcheck disable=SC2317,SC2329 # called later by getarg in dracut-lib.sh
getcmdline() {
echo "rd.break rd.md.uuid=bf96e457:230c9ad4:1f3e59d6:745cf942 rd.md.uuid=bf96e457:230c9ad4:1f3e59d6:745cf943 rd.shell"
}