Skip to content

Commit

Permalink
ksud: ensure post-fs-data.d is created by post ota
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Mar 17, 2024
1 parent a5e7655 commit f6d552c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions userspace/ksud/src/boot_patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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###"
Expand Down

0 comments on commit f6d552c

Please sign in to comment.