mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-26 01:27:23 +00:00
Move remount,ro back to post-fs-data mode
This commit is contained in:
parent
c61df75e5e
commit
bdff9769be
@ -706,8 +706,6 @@ void startup() {
|
|||||||
xsymlink(MIRRDIR "/bin/busybox", BBPATH "/busybox");
|
xsymlink(MIRRDIR "/bin/busybox", BBPATH "/busybox");
|
||||||
}
|
}
|
||||||
|
|
||||||
xmount(NULL, "/", NULL, MS_REMOUNT | MS_RDONLY, NULL);
|
|
||||||
|
|
||||||
// Start post-fs-data mode
|
// Start post-fs-data mode
|
||||||
execl("/sbin/magisk.bin", "magisk", "--post-fs-data", NULL);
|
execl("/sbin/magisk.bin", "magisk", "--post-fs-data", NULL);
|
||||||
}
|
}
|
||||||
@ -720,6 +718,8 @@ void post_fs_data(int client) {
|
|||||||
// If post-fs-data mode is started, it means startup succeeded
|
// If post-fs-data mode is started, it means startup succeeded
|
||||||
setup_done = 1;
|
setup_done = 1;
|
||||||
|
|
||||||
|
xmount(NULL, "/", NULL, MS_REMOUNT | MS_RDONLY, NULL);
|
||||||
|
|
||||||
LOGI("** post-fs-data mode running\n");
|
LOGI("** post-fs-data mode running\n");
|
||||||
|
|
||||||
// Allocate buffer
|
// Allocate buffer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user