Commit bdff9769 authored by topjohnwu's avatar topjohnwu

Move remount,ro back to post-fs-data mode

parent c61df75e
......@@ -706,8 +706,6 @@ void startup() {
xsymlink(MIRRDIR "/bin/busybox", BBPATH "/busybox");
}
xmount(NULL, "/", NULL, MS_REMOUNT | MS_RDONLY, NULL);
// Start post-fs-data mode
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
setup_done = 1;
xmount(NULL, "/", NULL, MS_REMOUNT | MS_RDONLY, NULL);
LOGI("** post-fs-data mode running\n");
// Allocate buffer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment