Added exception for hosts bind mount

This commit is contained in:
snake-4
2024-04-01 01:33:12 +02:00
parent 7200b77043
commit 670767a82b

View File

@@ -41,6 +41,13 @@ static bool shouldUnmount(const mount_entry_t &info)
if (workdir != options.end() && workdir->second.rfind("/data/adb", 0) == 0) if (workdir != options.end() && workdir->second.rfind("/data/adb", 0) == 0)
return true; return true;
} }
// Unmount the bind mount of default Systemless Hosts module of Magisk
// It should've been an overlay instead but we'll make an exception for this one
// TODO: Maybe we can unmount all binds from userdata to system?
if (mountPoint == "/system/etc/hosts")
return true;
return false; return false;
} }