]> code.delx.au - refind/commitdiff
Fix bug that caused rEFInd to fail to scan EFI boot loaders with the
authorsrs5694 <srs5694@users.sourceforge.net>
Mon, 23 Nov 2015 15:09:47 +0000 (10:09 -0500)
committersrs5694 <srs5694@users.sourceforge.net>
Mon, 23 Nov 2015 15:09:47 +0000 (10:09 -0500)
fallback filename when rEFInd was launched from the fallback filename
on another disk.

NEWS.txt
docs/refind/index.html
refind/main.c

index 661acece3bb6fb99b43a9bb0b4027de60b00dd93..25014cead01c309b3a02c97b690617aa92b67b0f 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,6 +1,10 @@
 0.10.1 (??/??/201?):
 --------------------
 
+- Fixed bug that caused rEFInd to fail to scan EFI boot loaders on
+  removable media when rEFInd itself was launched from the fallback
+  filename.
+
 - Moved detailed descriptions of refind-install from installing.html to
   a refind-install man page. To keep this information Web-accessible, I've
   also created HTML versions of the three man pages and linked them into
index d26bdd4039ed55a6cedd099220456b68ee7c478f..43e3bc66f803e48d1e7c13f02aa450291a558c4b 100644 (file)
@@ -182,6 +182,8 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com</a></p>
 
 <li class="tight"><a href="todo.html">The Future of rEFInd</a>&mdash;Current bugs that need squashing and features that I hope to one day add</a></li>
 
+<hr />
+
 <li class="tight">Manual (man) pages for rEFInd support scripts:
 
   <ul>
index ba3368b646efac958da47642e8488a4ebdc01c79..e98719fa3aa69be5d9248475ed32c87f6efb2d57 100644 (file)
@@ -2075,9 +2075,9 @@ static VOID RescanAll(BOOLEAN DisplayMessage) {
     FreeList((VOID ***) &(MainMenu.Entries), &MainMenu.EntryCount);
     MainMenu.Entries = NULL;
     MainMenu.EntryCount = 0;
-    ReadConfig(GlobalConfig.ConfigFilename);
     ConnectAllDriversToAllControllers();
     ScanVolumes();
+    ReadConfig(GlobalConfig.ConfigFilename);
     ScanForBootloaders();
     ScanForTools();
     SetupScreen();
@@ -2190,6 +2190,8 @@ efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
     if (GlobalConfig.LegacyType == LEGACY_TYPE_MAC)
        CopyMem(GlobalConfig.ScanFor, "ihebocm   ", NUM_SCAN_OPTIONS);
     SetConfigFilename(ImageHandle);
+    LoadDrivers();
+    ScanVolumes(); // Do before ReadConfig() because it needs SelfVolume->VolName
     ReadConfig(GlobalConfig.ConfigFilename);
 
     if (GlobalConfig.SpoofOSXVersion && GlobalConfig.SpoofOSXVersion[0] != L'\0')
@@ -2204,8 +2206,6 @@ efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
 
     // further bootstrap (now with config available)
     MokProtocol = SecureBootSetup();
-    LoadDrivers();
-    ScanVolumes();
     ScanForBootloaders();
     ScanForTools();
     SetupScreen();