mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
pe: do not warn about .initrd addons
We now support them, so stop warning about them. (cherry picked from commit f6928e6b5d59fd6b0dc34d338be1cd427c1d97d5)
This commit is contained in:
parent
f1c2574578
commit
e9105d3498
@ -272,10 +272,11 @@ bool pe_is_addon(const PeHeader *pe_header, const IMAGE_SECTION_HEADER *sections
|
||||
if (le16toh(pe_header->optional.Subsystem) != IMAGE_SUBSYSTEM_EFI_APPLICATION)
|
||||
return false;
|
||||
|
||||
/* Add-ons do not have a Linux kernel, but do have either .cmdline or .dtb (currently) */
|
||||
/* Add-ons do not have a Linux kernel, but do have one of .cmdline, .dtb, .initrd or .ucode (currently) */
|
||||
return !pe_header_find_section(pe_header, sections, ".linux") &&
|
||||
(pe_header_find_section(pe_header, sections, ".cmdline") ||
|
||||
pe_header_find_section(pe_header, sections, ".dtb") ||
|
||||
pe_header_find_section(pe_header, sections, ".initrd") ||
|
||||
pe_header_find_section(pe_header, sections, ".ucode"));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user