Commit 63a89d9f authored by topjohnwu's avatar topjohnwu

Fix init dmesg logs

parent f639f39e
......@@ -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{};
......
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