Don't fail script if resize2fs fails
This commit is contained in:
parent
5125a91128
commit
a70b26943b
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user