]> code.delx.au - refind/blobdiff - refind/main.c
Remove second and subsequent occurrences of ext2/3/4 and ReiserFS filesystems
[refind] / refind / main.c
index 2ceb3348272efd151de552807b745c4b4ad54ed8..be3dca4a0b7a5789ef2ef97f17b40c325896e649 100644 (file)
@@ -153,7 +153,7 @@ static VOID AboutrEFInd(VOID)
 {
     if (AboutMenu.EntryCount == 0) {
         AboutMenu.TitleImage = BuiltinIcon(BUILTIN_ICON_FUNC_ABOUT);
-        AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.7.4.5");
+        AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.7.6.1");
         AddMenuInfoLine(&AboutMenu, L"");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2006-2010 Christoph Pfisterer");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2012-2013 Roderick W. Smith");
@@ -1315,7 +1315,7 @@ static VOID ScanEfiFiles(REFIT_VOLUME *Volume) {
    if (GlobalConfig.ScanAllLinux)
       MergeStrings(&MatchPatterns, LINUX_MATCH_PATTERNS, L',');
 
-   if ((Volume->RootDir != NULL) && (Volume->VolName != NULL)) {
+   if ((Volume->RootDir != NULL) && (Volume->VolName != NULL) && (Volume->IsReadable)) {
       // check for Mac OS X boot loader
       if (ShouldScan(Volume, L"System\\Library\\CoreServices")) {
          StrCpy(FileName, MACOSX_LOADER_PATH);
@@ -1627,13 +1627,13 @@ static VOID StartLegacy(IN LEGACY_ENTRY *Entry)
 #ifdef __MAKEWITH_TIANO
 static VOID StartLegacyUEFI(LEGACY_ENTRY *Entry)
 {
-    UINTN ExitDataSize = 0;
-    CHAR16 *ExitData = NULL;
-    EFI_STATUS Status;
+//     UINTN ExitDataSize = 0;
+//     CHAR16 *ExitData = NULL;
+//     EFI_STATUS Status;
 
     BeginExternalScreen(TRUE, L"Booting Legacy OS (UEFI mode)");
-    Print(L"Launching from '%s'\n", DevicePathToStr(Entry->BdsOption->DevicePath));
-    PauseForKey();
+//    Print(L"Launching from '%s'\n", DevicePathToStr(Entry->BdsOption->DevicePath));
+//    PauseForKey();
 
 //    Status = BdsLibBootViaBootOption(Entry->BdsOption, Entry->BdsOption->DevicePath, &ExitDataSize, &ExitData);
 //    Print(L"BdsLibBootViaBootOption() returned %d\n", Status);
@@ -2158,16 +2158,16 @@ static VOID WarnIfLegacyProblems() {
 static VOID ScanForBootloaders(VOID) {
    UINTN  i;
 
-   if (GlobalConfig.LegacyType == LEGACY_TYPE_UEFI) {
-      Print(L"About to call BdsDeleteAllInvalidLegacyBootOptions()\n");
-      BdsDeleteAllInvalidLegacyBootOptions();
-      Print(L"About to call BdsAddNonExistingLegacyBootOptions()\n");
-      BdsAddNonExistingLegacyBootOptions();
-      Print(L"About to call BdsUpdateLegacyDevOrder()\n");
-//      BdsUpdateLegacyDevOrder(); // EXTREME CAUTION: HOSED ONE FIRMWARE!
-      Print(L"Done with legacy boot updates!\n");
-      PauseForKey();
-   }
+//    if (GlobalConfig.LegacyType == LEGACY_TYPE_UEFI) {
+//       Print(L"About to call BdsDeleteAllInvalidLegacyBootOptions()\n");
+//       BdsDeleteAllInvalidLegacyBootOptions();
+//       Print(L"About to call BdsAddNonExistingLegacyBootOptions()\n");
+//       BdsAddNonExistingLegacyBootOptions();
+//       Print(L"About to call BdsUpdateLegacyDevOrder()\n");
+// //      BdsUpdateLegacyDevOrder(); // EXTREME CAUTION: HOSED ONE FIRMWARE!
+//       Print(L"Done with legacy boot updates!\n");
+//       PauseForKey();
+//    }
 
    ScanVolumes();