mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Fix init dmesg logs
This commit is contained in:
parent
f639f39e79
commit
63a89d9f04
@ -68,6 +68,9 @@ bool SecondStageInit::prepare() {
|
||||
umount2("/proc/self/exe", MNT_DETACH);
|
||||
umount2("/data", MNT_DETACH);
|
||||
|
||||
// Make sure init dmesg logs won't get messed up
|
||||
argv[0] = (char *) INIT_PATH;
|
||||
|
||||
// Some weird devices like meizu, uses 2SI but still have legacy rootfs
|
||||
// Check if root and system are on the same filesystem
|
||||
struct stat root{}, system{};
|
||||
|
Loading…
Reference in New Issue
Block a user