Skip to content

Commit

Permalink
Forgot to spawn() magisk --clone-attr
Browse files Browse the repository at this point in the history
  • Loading branch information
AXON committed Dec 11, 2020
1 parent 992f274 commit 5fad18c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ pub fn job() {
for dir in ["/dev/magisk/upper", "/dev/magisk/work"].iter() {
fs::create_dir_all(dir).expect("Error: Failed to setup bin_dir at /dev");
extract_file("/dev/magisk_bin", magisk_bin_data, 0o755);
Command::new("/dev/magisk_bin").args(&[
"--clone-attr",
"/system/bin",
"/dev/magisk/upper",
]);
Command::new("/dev/magisk_bin")
.args(&["--clone-attr", "/system/bin", "/dev/magisk/upper"])
.spawn()
.expect("Error: Failed to clone attrs at /dev/magisk/upper");
}
} else {
// Remount required mountpoints as rw
Expand Down

0 comments on commit 5fad18c

Please sign in to comment.