AK3: clear cow before logical partition replace or resize (#78)

This commit is contained in:
Captain Trips authored and GitHub committed 2023-05-04 13:36:15 -03:00
1 parent ba82924dab
commit 68564baf10
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE) # Dummy file; update-binary is a shell script (DO NOT CHANGE)
# #
# #
# AK_BASE_VERSION=20230503 # AK_BASE_VERSION=20230504
+2
View File
@@ -470,6 +470,8 @@ flash_generic() {
else else
echo "Removing any existing $1_ak3..." >&2; echo "Removing any existing $1_ak3..." >&2;
$bin/lptools_static remove $1_ak3; $bin/lptools_static remove $1_ak3;
echo "Clearing any merged cow partitions..." >&2;
$bin/lptools_static clear-cow;
echo "Attempting to create $1_ak3..." >&2; echo "Attempting to create $1_ak3..." >&2;
if $bin/lptools_static create $1_ak3 $imgsz; then if $bin/lptools_static create $1_ak3 $imgsz; then
echo "Replacing $1$slot with $1_ak3..." >&2; echo "Replacing $1$slot with $1_ak3..." >&2;