ksud: ensure post-fs-data.d is created by post ota

This commit is contained in:
weishu 2024-03-17 17:25:42 +08:00
parent a5e76553e4
commit f6d552c797
No known key found for this signature in database
GPG Key ID: 6D3F65FFD9559C06

View File

@ -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###"