ksud: Fix relative boot image path

This commit is contained in:
weishu
2024-01-16 14:05:10 +08:00
parent 34d8ba78a6
commit be68e43d60

View File

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