Blame SOURCES/seabios-shortcut-skip-unbootable-disks-optimitation.patch

9fd1b6
From fcbfa122fc237cbac6be83866a816cc1b72365a0 Mon Sep 17 00:00:00 2001
9fd1b6
From: Gerd Hoffmann <kraxel@redhat.com>
9fd1b6
Date: Fri, 29 Oct 2021 11:19:10 +0200
9fd1b6
Subject: [PATCH] shortcut skip-unbootable-disks optimitation
9fd1b6
9fd1b6
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
9fd1b6
RH-MergeRequest: 5: shortcut skip-unbootable-disks optimitation
9fd1b6
RH-Commit: [1/1] 7fd1cb88f70f4e91ad7c9531d59c5b7f5613103c
9fd1b6
RH-Bugzilla: 1924972
9fd1b6
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9fd1b6
RH-Acked-by: Oliver Steffen <osteffen@redhat.com>
9fd1b6
---
9fd1b6
 src/boot.c | 5 +++++
9fd1b6
 1 file changed, 5 insertions(+)
9fd1b6
9fd1b6
diff --git a/src/boot.c b/src/boot.c
9fd1b6
index 1effd802..b18e7788 100644
9fd1b6
--- a/src/boot.c
9fd1b6
+++ b/src/boot.c
9fd1b6
@@ -297,11 +297,16 @@ find_prio(const char *glob)
9fd1b6
 
9fd1b6
 u8 is_bootprio_strict(void)
9fd1b6
 {
9fd1b6
+#if 0
9fd1b6
     static int prio_halt = -2;
9fd1b6
 
9fd1b6
     if (prio_halt == -2)
9fd1b6
         prio_halt = find_prio("HALT");
9fd1b6
     return prio_halt >= 0;
9fd1b6
+#else
9fd1b6
+    // force initializing all disks
9fd1b6
+    return 0;
9fd1b6
+#endif
9fd1b6
 }
9fd1b6
 
9fd1b6
 int bootprio_find_pci_device(struct pci_device *pci)
9fd1b6
-- 
9fd1b6
2.35.1
9fd1b6