mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
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:
parent
cead6d4b5f
commit
ec69e4be13
@ -1,9 +1,6 @@
|
|||||||
show_progress(0.500000, 3);
|
show_progress(0.500000, 3);
|
||||||
set_bootloader_env("upgrade_step", "3");
|
set_bootloader_env("upgrade_step", "3");
|
||||||
|
|
||||||
ui_print("Wiping Userdata");
|
|
||||||
format("ext4", "EMMC", "/dev/block/data", "0", "/data");
|
|
||||||
|
|
||||||
ui_print("Writing kernel image");
|
ui_print("Writing kernel image");
|
||||||
assert(package_extract_file("KERNEL", "/tmp/boot.img"),
|
assert(package_extract_file("KERNEL", "/tmp/boot.img"),
|
||||||
write_raw_image("/tmp/boot.img", "boot"),
|
write_raw_image("/tmp/boot.img", "boot"),
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
show_progress(0.500000, 3);
|
show_progress(0.500000, 3);
|
||||||
set_bootloader_env("upgrade_step", "3");
|
set_bootloader_env("upgrade_step", "3");
|
||||||
|
|
||||||
ui_print("Wiping Userdata");
|
|
||||||
format("ext4", "EMMC", "/dev/block/data", "0", "/data");
|
|
||||||
|
|
||||||
show_progress(0.020000, 0);
|
show_progress(0.020000, 0);
|
||||||
|
|
||||||
ui_print("Wiping System");
|
ui_print("Wiping System");
|
||||||
|
@ -407,6 +407,8 @@ fi
|
|||||||
echo "Creating Amlogic ZIP auto-install package"
|
echo "Creating Amlogic ZIP auto-install package"
|
||||||
pushd sign > /dev/null
|
pushd sign > /dev/null
|
||||||
echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml
|
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 .
|
cp $INSTALL_SRC_DIR/files/recovery.img .
|
||||||
if [ -f $INSTALL_SRC_DIR/files/aml_autoscript ]; then
|
if [ -f $INSTALL_SRC_DIR/files/aml_autoscript ]; then
|
||||||
cp $INSTALL_SRC_DIR/files/aml_autoscript .
|
cp $INSTALL_SRC_DIR/files/aml_autoscript .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user