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
diff --git a/twinstall.cpp b/twinstall.cpp
index ae1abc5..427a934 100755
--- a/twinstall.cpp
+++ b/twinstall.cpp
@@ -419,6 +419,8 @@
gui_err("unmount_system_err=Failed unmounting System");
return -1;
}
+ unlink("/system");
+ mkdir("/system", 0755);
}
time_t start, stop;