Merge pull request #34 from framps/master

Autorepair e2fsck errors
Closes #32
This commit is contained in:
Drew Bonasera 2018-01-16 00:52:54 -05:00 committed by GitHub
commit c40b443072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ else
fi fi
#Make sure filesystem is ok #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'` minsize=`resize2fs -P $loopback | cut -d ':' -f 2 | tr -d ' ' | tr -d '\n'`
if [[ $currentsize -eq $minsize ]]; then if [[ $currentsize -eq $minsize ]]; then
echo ERROR: Image already shrunk to smallest size echo ERROR: Image already shrunk to smallest size