diff --git a/src/shared-bootdir-helper-multi-kparam.sh b/src/shared-bootdir-helper-multi-kparam.sh index dc69ac77fb226c9cb551449fb314407e8f81385f..085867c750e2b8edb0f8d07f4457383297046781 100755 --- a/src/shared-bootdir-helper-multi-kparam.sh +++ b/src/shared-bootdir-helper-multi-kparam.sh @@ -22,7 +22,7 @@ inputfile="$1" while IFS= read -r line; do matched=0 - if [[ "$line" == *"\tlinux\t/"* ]]; then + if [[ "$line" == *"$(printf "\tlinux\t/")"* ]]; then for hostname in "${!map_hostname_to_kparam[@]}"; do # Assuming that, the kimg filename contains "vmlinuz-xxx-$hostname ", in lowercase. That's important! [[ "$line" == *"-$hostname "* ]] &&