From c8ebb80590be2dbe0cb63c9696903889b51efc75 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 16 Feb 2021 14:22:06 +0100 Subject: [PATCH] fix(dracut.sh): remove unneeded variables There is no `fstab_lines_l` variable used before. The `--include` option was turned into `++include` and therefore the switch option is not reachable anymore. --- dracut.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dracut.sh b/dracut.sh index 04581cdb..062ed6c1 100755 --- a/dracut.sh +++ b/dracut.sh @@ -608,8 +608,6 @@ while :; do persistent_policy_l="$2"; PARMS_TO_STORE+=" '$2'"; shift;; --fstab) use_fstab_l="yes" ;; -h|--help) long_usage; exit 1 ;; - -i|--include) include_src+=("$2"); PARMS_TO_STORE+=" '$2'"; - shift;; --bzip2) compress_l="bzip2";; --lzma) compress_l="lzma";; --xz) compress_l="xz";; @@ -769,8 +767,6 @@ export SYSTEMCTL=${SYSTEMCTL:-systemctl} (( ${#force_add_dracutmodules_l[@]} )) && force_add_dracutmodules+=" ${force_add_dracutmodules_l[*]} " (( ${#fscks_l[@]} )) && fscks+=" ${fscks_l[*]} " (( ${#add_fstab_l[@]} )) && add_fstab+=" ${add_fstab_l[*]} " -# shellcheck disable=SC2154 -(( ${#fstab_lines_l[@]} )) && fstab_lines+=( "${fstab_lines_l[@]}" ) (( ${#install_items_l[@]} )) && install_items+=" ${install_items_l[*]} " (( ${#install_optional_items_l[@]} )) && install_optional_items+=" ${install_optional_items_l[*]} " (( ${#hostonly_nics_l[@]} )) && hostonly_nics+=" ${hostonly_nics_l[*]} "