diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index c89b488..b7a8a7d 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -357,7 +357,7 @@ replace_file() { # patch_fstab patch_fstab() { entry=$(grep "$2" $1 | grep "$3"); - if [ -z "$(echo "$entry" | grep "$6")" ]; then + if [ -z "$(echo "$entry" | grep "$6")" ] || [ -z $6 ]; then case $4 in block) part=$(echo "$entry" | awk '{ print $1 }');; mount) part=$(echo "$entry" | awk '{ print $2 }');;