diff --git a/pishrink.sh b/pishrink.sh index 2c05ee8..447c7c4 100755 --- a/pishrink.sh +++ b/pishrink.sh @@ -131,7 +131,7 @@ else fi #Make sure filesystem is ok -e2fsck -f $loopback +e2fsck -p -f $loopback minsize=`resize2fs -P $loopback | cut -d ':' -f 2 | tr -d ' ' | tr -d '\n'` if [[ $currentsize -eq $minsize ]]; then echo ERROR: Image already shrunk to smallest size