diff -Naur refit-0.14-debianpatched/refit/config.c refit-0.14/refit/config.c --- refit-0.14-debianpatched/refit/config.c 2011-09-21 19:01:22.000000000 -0400 +++ refit-0.14/refit/config.c 2011-09-21 21:43:02.000000000 -0400 @@ -48,7 +48,7 @@ // global configuration with default values -REFIT_CONFIG GlobalConfig = { FALSE, 20, 0, 0, 0, FALSE, NULL, NULL, NULL, NULL }; +REFIT_CONFIG GlobalConfig = { FALSE, 20, 0, 0, 0, FALSE, FALSE, FALSE, NULL, NULL, NULL, NULL }; // // read a file into a buffer @@ -406,9 +406,15 @@ } else if (StriCmp(TokenList[0], L"textonly") == 0) { GlobalConfig.TextOnly = TRUE; + } else if (StriCmp(TokenList[0], L"ignorelegacy") == 0) { + GlobalConfig.IgnoreLegacy = TRUE; + } else if (StriCmp(TokenList[0], L"legacyfirst") == 0) { GlobalConfig.LegacyFirst = TRUE; + } else if (StriCmp(TokenList[0], L"quiet") == 0) { + GlobalConfig.Quiet = TRUE; + } else { Print(L" unknown configuration command: '%s'\n", TokenList[0]); } diff -Naur refit-0.14-debianpatched/refit/lib.h refit-0.14/refit/lib.h --- refit-0.14-debianpatched/refit/lib.h 2010-03-06 07:29:32.000000000 -0500 +++ refit-0.14/refit/lib.h 2011-09-21 21:58:26.000000000 -0400 @@ -41,6 +41,8 @@ #define REFIT_DEBUG (0) +#define Print if ((!GlobalConfig.Quiet) || (GlobalConfig.TextOnly)) Print + // // lib module // @@ -279,6 +281,8 @@ UINTN HideBadges; UINTN HideUIFlags; BOOLEAN LegacyFirst; + BOOLEAN IgnoreLegacy; + BOOLEAN Quiet; CHAR16 *BannerFileName; CHAR16 *SelectionSmallFileName; CHAR16 *SelectionBigFileName; diff -Naur refit-0.14-debianpatched/refit/main.c refit-0.14/refit/main.c --- refit-0.14-debianpatched/refit/main.c 2011-09-21 19:18:58.000000000 -0400 +++ refit-0.14/refit/main.c 2011-09-21 21:47:37.000000000 -0400 @@ -845,7 +845,7 @@ } } - if (ShowVolume) + if (ShowVolume && !GlobalConfig.IgnoreLegacy) AddLegacyEntry(NULL, Volume); } } diff -Naur refit-0.14-debianpatched/refit.conf refit-0.14/refit.conf --- refit-0.14-debianpatched/refit.conf 2010-03-06 07:29:32.000000000 -0500 +++ refit-0.14/refit.conf 2011-09-22 01:23:55.000000000 -0400 @@ -81,6 +81,13 @@ #hideui tools funcs hdbadges #hideui all +# Disable display of text-mode output when in graphics mode. This +# option is unnecessary on Macs, but without this option, UEFI-based +# PCs tend to display text-mode messages relating to boot loader probing +# over the GUI display. +# +#quiet + # Use text mode only. When enabled, this option forces rEFIt into text mode. # #textonly @@ -92,6 +99,13 @@ # #legacyfirst +# Hide all legacy BIOS based boot options from the user. This option is +# useful if you boot all your OSes in EFI mode, as on a UEFI-based PC. +# Without it, rEFIt sometimes presents legacy boot options that don't +# work. +# +#ignorelegacy + # Set the default menu selection. The available arguments match the # keyboard accelerators available within rEFIt. You may select the default # loader using a one-character abbreviation for the OS name ("M" = Mac OS X,