ksud: turn off auto-detect bootdevice when OS is not android (#1746)

This commit is contained in:
チセ
2024-05-21 09:18:28 +08:00
committed by GitHub
parent 4871e11a55
commit 9c2e48bb3e

View File

@@ -547,6 +547,10 @@ fn find_boot_image(
ensure!(image.exists(), "boot image not found");
bootimage = std::fs::canonicalize(image)?;
} else {
if cfg!(not(target_os = "android")) {
println!("- Current OS is not android, refusing auto bootimage/bootdevice detection");
bail!("please specify a boot image");
}
let mut slot_suffix =
utils::getprop("ro.boot.slot_suffix").unwrap_or_else(|| String::from(""));