Don't fail script if resize2fs fails

This commit is contained in:
Pierre-Hugues Husson 2018-05-19 22:07:12 +02:00
parent 5125a91128
commit a70b26943b

View File

@ -41,12 +41,12 @@ fixSPL() {
} }
if mount -o remount,rw /system;then if mount -o remount,rw /system;then
resize2fs $(grep ' /system ' /proc/mounts |cut -d ' ' -f 1) resize2fs $(grep ' /system ' /proc/mounts |cut -d ' ' -f 1) || true
elif mount -o remount,rw /;then elif mount -o remount,rw /;then
resize2fs /dev/root resize2fs /dev/root || true
fi fi
mount -o remount,ro /system mount -o remount,ro /system || true
mount -o remount,ro / mount -o remount,ro / || true
fixSPL fixSPL