]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut.sh): remove unneeded variables
authorHarald Hoyer <harald@redhat.com>
Tue, 16 Feb 2021 13:22:06 +0000 (14:22 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 23 Feb 2021 15:03:44 +0000 (16:03 +0100)
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

index 04581cdbc1baa2e216790461b81143fa6b273a4e..062ed6c1a9accf1ce85648f712dc6c6a1aadb676 100755 (executable)
--- 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[*]} "