From 272df36494a5d98805a83df2f1b6d026854e2a57 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Mon, 22 Jul 2024 19:55:23 +0200 Subject: [PATCH] efi_loader: add /dtbs search path Add an additional search path /dtbs, this is where dtbs are installed on postmarketOS and potentially other distros. Signed-off-by: Caleb Connolly Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas --- lib/efi_loader/efi_fdt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c index 4ccf2055be..c5ecade3ae 100644 --- a/lib/efi_loader/efi_fdt.c +++ b/lib/efi_loader/efi_fdt.c @@ -43,6 +43,9 @@ int efi_get_distro_fdt_name(char *fname, int size, int seq) case 2: prefix = "/dtb/current"; break; + case 3: + prefix = "/dtbs"; + break; default: return log_msg_ret("pref", -EINVAL); } -- 2.39.5