You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Fix cleanup pre-init mount
This commit is contained in:
@@ -297,6 +297,7 @@ pub fn daemon_entry() {
|
|||||||
tmp_path.append_path(ROOTMNT);
|
tmp_path.append_path(ROOTMNT);
|
||||||
if let Ok(mount_list) = tmp_path.open(O_RDONLY | O_CLOEXEC) {
|
if let Ok(mount_list) = tmp_path.open(O_RDONLY | O_CLOEXEC) {
|
||||||
BufReader::new(mount_list).foreach_lines(|line| {
|
BufReader::new(mount_list).foreach_lines(|line| {
|
||||||
|
line.truncate(line.trim_end().len());
|
||||||
let item = Utf8CStr::from_string(line);
|
let item = Utf8CStr::from_string(line);
|
||||||
item.unmount().log_ok();
|
item.unmount().log_ok();
|
||||||
true
|
true
|
||||||
|
|||||||
Reference in New Issue
Block a user