Autorepair fsck errors
This commit is contained in:
parent
4af698457e
commit
f83e3f341d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue