From: Lennart Poettering Date: Tue, 15 Feb 2022 13:26:50 +0000 (+0100) Subject: sd-boot: add comments highlighting type 1 vs. type 2 X-Git-Tag: v251-rc1~96^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf5d9598b68e9f57247fa0f148711a04f610771b;p=thirdparty%2Fsystemd.git sd-boot: add comments highlighting type 1 vs. type 2 --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 1f254198eef..ae252845274 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -1619,6 +1619,8 @@ static void config_load_entries( assert(device); assert(root_dir); + /* Adds Boot Loader Type #1 entries (i.e. /loader/entries/….conf) */ + err = open_directory(root_dir, L"\\loader\\entries", &entries_dir); if (EFI_ERROR(err)) return; @@ -2126,6 +2128,8 @@ static void config_entry_add_linux( UINTN f_size = 0; EFI_STATUS err; + /* Adds Boot Loader Type #2 entries (i.e. /EFI/Linux/….efi) */ + assert(config); assert(device); assert(root_dir);