mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Umount by tmpfs id
This commit is contained in:
parent
2a4aa95a6f
commit
7dbfba76bf
@ -18,9 +18,8 @@ void revert_unmount() {
|
||||
// Unmount dummy skeletons and MAGISKTMP
|
||||
// since mirror nodes are always mounted under skeleton, we don't have to specifically unmount
|
||||
for (auto &info: parse_mount_info("self")) {
|
||||
if (info.target.starts_with(MAGISKTMP) || // things in magisktmp
|
||||
info.root.starts_with("/adb/modules") || // module nodes
|
||||
info.root.starts_with("/" INTLROOT)) { // skeleton
|
||||
if (info.source == "magisk" || info.source == "worker" || // magisktmp tmpfs
|
||||
info.root.starts_with("/adb/modules")) { // bind mount from data partition
|
||||
targets.push_back(info.target);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user