mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 06:38:31 +00:00
Fix cleanup pre-init mount
This commit is contained in:
parent
d499819ba0
commit
79c0fafe43
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user