diff options
-rw-r--r-- | src/boot.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -297,7 +297,11 @@ find_prio(const char *glob) u8 is_bootprio_strict(void) { - return find_prio("HALT") >= 0; + static int prio_halt = -2; + + if (prio_halt == -2) + prio_halt = find_prio("HALT"); + return prio_halt >= 0; } int bootprio_find_pci_device(struct pci_device *pci) |