From 1e676e5dc2eed4d6db6452d2815f77adb35e37a7 Mon Sep 17 00:00:00 2001 From: weishu Date: Tue, 16 Jan 2024 14:05:10 +0800 Subject: [PATCH] ksud: Fix relative boot image path --- userspace/ksud/src/boot_patch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ksud/src/boot_patch.rs b/userspace/ksud/src/boot_patch.rs index d07612bc..619d0953 100644 --- a/userspace/ksud/src/boot_patch.rs +++ b/userspace/ksud/src/boot_patch.rs @@ -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(""));