No unmount at the begining of my script ^^Besides this code change... in your update script, do you unmount the system partition before you try to format it?
For the moment my script is like that :
Code:
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/System", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/printenv");
blablabla
unmount("/system");
Code:
show_progress(0.1, 0);
unmount("/system");
run_program("/sbin/make_ext4fs", "/dev/block/platform/msm_sdcc.1/by-name/System");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/System", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/printenv");
blablabla
unmount("/system");