diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index fe77722..6b42e87 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -615,7 +615,7 @@ replace_file() { # patch_fstab block|mount|fstype|options|flags patch_fstab() { local entry part newpart newentry; - entry=$(grep "$2" $1 | grep "$3"); + entry=$(grep "$2[[:space:]]" $1 | grep "$3"); if [ ! "$(echo "$entry" | grep "$6")" -o "$6" == " " -o ! "$6" ]; then case $4 in block) part=$(echo "$entry" | awk '{ print $1 }');;