3
0
replicant-device_samsung_ga.../releasetools/extensions/releasetools.py
Caio Schnepper b0d7d4fa6f releasetools: resize system partition after flashing
resize2fs.static is placed in install/bin, possible to run without /system mounted.
running it will resize /system to the actual system partition size,
supporting custom pits with block-based OTAs

Change-Id: Id2c82add1f697ae3d7e5a1031f6a6d51a4ee53e0
2015-07-05 19:06:21 -03:00

11 lines
399 B
Python

import common
import struct
def FullOTA_PostValidate(info):
# run e2fsck
info.script.AppendExtra('run_program("/sbin/e2fsck", "-fy", "/dev/block/mmcblk0p9");');
# resize2fs: run and delete
info.script.AppendExtra('run_program("/tmp/install/bin/resize2fs_static", "/dev/block/mmcblk0p9");');
# run e2fsck
info.script.AppendExtra('run_program("/sbin/e2fsck", "-fy", "/dev/block/mmcblk0p9");');