Skip to content

Commit

Permalink
Remove /system -> /system_root/system symlink in ZIP-install
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chaosmaster committed Jun 5, 2020
1 parent 5738e76 commit 589daae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twinstall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,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;
Expand Down

0 comments on commit 589daae

Please sign in to comment.