Skip to content

Commit

Permalink
init_sony: Unmount /sbin on recovery boot
Browse files Browse the repository at this point in the history
* Forcefully unmount /sbin to fix an issue with Magisk

Fixes topjohnwu/Magisk#1418

Change-Id: I7f64c81e79cb11ce62d68fa1e5ebccee36549c26
  • Loading branch information
Myself5 committed May 21, 2019
1 parent 150770d commit 3b649b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init/init_main.cpp
Expand Up @@ -126,6 +126,9 @@ int main(int argc, char** argv)
// Boot to Recovery
if (recoveryBoot)
{
// Unmount /sbin to fix recovery boot with Magisk 19+
umount("/sbin");

// Recovery boot
write_string(BOOT_TXT, "RECOVERY BOOT", true);
init_board.introduce_recovery();
Expand Down

0 comments on commit 3b649b9

Please sign in to comment.