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.
master
Harald Hoyer 2021-02-16 14:22:06 +01:00 committed by Harald Hoyer
parent d87ae13721
commit c8ebb80590
1 changed files with 0 additions and 4 deletions

View File

@ -608,8 +608,6 @@ while :; do
persistent_policy_l="$2"; PARMS_TO_STORE+=" '$2'"; shift;; persistent_policy_l="$2"; PARMS_TO_STORE+=" '$2'"; shift;;
--fstab) use_fstab_l="yes" ;; --fstab) use_fstab_l="yes" ;;
-h|--help) long_usage; exit 1 ;; -h|--help) long_usage; exit 1 ;;
-i|--include) include_src+=("$2"); PARMS_TO_STORE+=" '$2'";
shift;;
--bzip2) compress_l="bzip2";; --bzip2) compress_l="bzip2";;
--lzma) compress_l="lzma";; --lzma) compress_l="lzma";;
--xz) compress_l="xz";; --xz) compress_l="xz";;
@ -769,8 +767,6 @@ export SYSTEMCTL=${SYSTEMCTL:-systemctl}
(( ${#force_add_dracutmodules_l[@]} )) && force_add_dracutmodules+=" ${force_add_dracutmodules_l[*]} " (( ${#force_add_dracutmodules_l[@]} )) && force_add_dracutmodules+=" ${force_add_dracutmodules_l[*]} "
(( ${#fscks_l[@]} )) && fscks+=" ${fscks_l[*]} " (( ${#fscks_l[@]} )) && fscks+=" ${fscks_l[*]} "
(( ${#add_fstab_l[@]} )) && add_fstab+=" ${add_fstab_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_items_l[@]} )) && install_items+=" ${install_items_l[*]} "
(( ${#install_optional_items_l[@]} )) && install_optional_items+=" ${install_optional_items_l[*]} " (( ${#install_optional_items_l[@]} )) && install_optional_items+=" ${install_optional_items_l[*]} "
(( ${#hostonly_nics_l[@]} )) && hostonly_nics+=" ${hostonly_nics_l[*]} " (( ${#hostonly_nics_l[@]} )) && hostonly_nics+=" ${hostonly_nics_l[*]} "