boot: Detect strict boot order (HALT record) in function

Introduce is_bootprio_strict().
We will reuse this function in the next commit.

Signed-off-by: Alexey Kirillov <lekiravi@yandex-team.ru>
Message-id: 20200107171917.7535-2-lekiravi@yandex-team.ru
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Alexey Kirillov 2020-01-07 20:19:16 +03:00 committed by Gerd Hoffmann
parent f21b5a4aeb
commit 7c40d945b9
2 changed files with 6 additions and 0 deletions

View File

@ -295,6 +295,11 @@ find_prio(const char *glob)
return -1;
}
u8 is_bootprio_strict(void)
{
return find_prio("HALT") >= 0;
}
int bootprio_find_pci_device(struct pci_device *pci)
{
if (CONFIG_CSM)

View File

@ -27,6 +27,7 @@ void boot_add_cd(struct drive_s *drive_g, const char *desc, int prio);
void boot_add_cbfs(void *data, const char *desc, int prio);
void interactive_bootmenu(void);
void bcv_prepboot(void);
u8 is_bootprio_strict(void);
struct pci_device;
int bootprio_find_pci_device(struct pci_device *pci);
int bootprio_find_scsi_device(struct pci_device *pci, int target, int lun);