ksud: Fix relative boot image path

This commit is contained in:
weishu
2024-01-16 14:05:10 +08:00
parent 7b63e099ce
commit 1e676e5dc2

View File

@@ -86,7 +86,7 @@ pub fn patch(
if let Some(image) = image { if let Some(image) = image {
ensure!(image.exists(), "boot image not found"); ensure!(image.exists(), "boot image not found");
bootimage = image; bootimage = std::fs::canonicalize(image)?;
} else { } else {
let mut slot_suffix = let mut slot_suffix =
utils::getprop("ro.boot.slot_suffix").unwrap_or_else(|| String::from("")); utils::getprop("ro.boot.slot_suffix").unwrap_or_else(|| String::from(""));