mirror of
https://github.com/tiann/KernelSU.git
synced 2025-02-20 11:43:32 +08:00
ksud: ensure post-fs-data.d is created by post ota
This commit is contained in:
parent
a5e76553e4
commit
f6d552c797
@ -331,9 +331,9 @@ fn post_ota() -> Result<()> {
|
||||
.arg(format!("set-active-boot-slot {target_slot}"))
|
||||
.status()?;
|
||||
|
||||
let post_ota_sh = std::path::Path::new(ADB_DIR)
|
||||
.join("post-fs-data.d")
|
||||
.join("post_ota.sh");
|
||||
let post_fs_data = std::path::Path::new(ADB_DIR).join("post-fs-data.d");
|
||||
utils::ensure_dir_exists(&post_fs_data)?;
|
||||
let post_ota_sh = post_fs_data.join("post_ota.sh");
|
||||
|
||||
let sh_content = format!(
|
||||
r###"
|
||||
|
Loading…
x
Reference in New Issue
Block a user