Autorepair fsck errors

This commit is contained in:
framp 2017-12-29 18:03:11 +01:00
parent 4af698457e
commit f83e3f341d
1 changed files with 1 additions and 1 deletions

View File

@ -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