projects/WeTek_*: Move userdata wipe to factory_update_param script

This allows updating LibreELEC via recovery without wiping userdata
while keeping toothpick method work when a clean flash is needed.
This commit is contained in:
kszaq 2015-02-09 11:20:48 +01:00
parent cead6d4b5f
commit ec69e4be13
3 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,6 @@
show_progress(0.500000, 3);
set_bootloader_env("upgrade_step", "3");
ui_print("Wiping Userdata");
format("ext4", "EMMC", "/dev/block/data", "0", "/data");
ui_print("Writing kernel image");
assert(package_extract_file("KERNEL", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),

View File

@ -1,9 +1,6 @@
show_progress(0.500000, 3);
set_bootloader_env("upgrade_step", "3");
ui_print("Wiping Userdata");
format("ext4", "EMMC", "/dev/block/data", "0", "/data");
show_progress(0.020000, 0);
ui_print("Wiping System");

View File

@ -407,6 +407,8 @@ fi
echo "Creating Amlogic ZIP auto-install package"
pushd sign > /dev/null
echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml
echo --wipe_data >> factory_update_param.aml
echo --wipe_cache >> factory_update_param.aml
cp $INSTALL_SRC_DIR/files/recovery.img .
if [ -f $INSTALL_SRC_DIR/files/aml_autoscript ]; then
cp $INSTALL_SRC_DIR/files/aml_autoscript .