Remove /system -> /system_root/system symlink in ZIP-install

when unmounting system /system_root/system is symlinked to
/system on devices built with BOARD_BUILD_SYSTEM_ROOT_IMAGE

Some ZIPs don't play well with a symlink when trying to mount to
/system.

Change-Id: Ifb0a105ddc0337353a7e1ac234c9f1e5b387e992
(cherry picked from commit 589daae9ccd2951263bd183125c0ad6de454e277)
This commit is contained in:
Chaosmaster
2020-06-05 17:38:08 +02:00
committed by bigbiff
parent 6ad1457332
commit 4ee7cbddde
+2
View File
@@ -421,6 +421,8 @@ int TWinstall_zip(const char* path, int* wipe_cache) {
gui_err("unmount_system_err=Failed unmounting System");
return -1;
}
unlink("/system");
mkdir("/system", 0755);
}
time_t start, stop;