From: srs5694
Originally written: 3/14/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
diff --git a/docs/refind/configfile.html b/docs/refind/configfile.html index d6ee318..55aa2ba 100644 --- a/docs/refind/configfile.html +++ b/docs/refind/configfile.html @@ -14,8 +14,7 @@by Roderick W. Smith, rodsmith@rodsbooks.com
-Originally written: 3/14/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+Originally written: 3/14/2012; last Web page update: 6/3/2012, referencing rEFInd 0.4.2
I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
@@ -146,7 +145,7 @@ timeout 20Originally written: 4/19/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
diff --git a/docs/refind/features.html b/docs/refind/features.html index d779d57..8a85cb9 100644 --- a/docs/refind/features.html +++ b/docs/refind/features.html @@ -15,7 +15,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
@@ -133,6 +133,8 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
@@ -97,7 +97,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
diff --git a/docs/refind/installing.html b/docs/refind/installing.html index 938fc02..42b5ca5 100644 --- a/docs/refind/installing.html +++ b/docs/refind/installing.html @@ -15,7 +15,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
@@ -135,6 +135,11 @@ WARNING: If you have an Advanced Format disk, *DO NOT* attempt to check the bless status with 'bless --info', since this is known to cause disk corruption on some systems!! +NOTE: If you want to boot an OS via BIOS emulation (such as Windows or some +Linux installations), you *MUST* edit the ///EFI/refind/refind.conf +file's 'scanfor' line to include the 'hdbios' option, and perhaps +'biosexternal' and 'cd', as well. + Installation has completed successfully. @@ -187,6 +192,12 @@ Installation has completed successfully. --info to check your installation status; this combination has been reported to cause disk corruption on some Macs!In any event, you should peruse the script's output to ensure that everything looks OK. install.sh displays error messages when it encounters errors, such as if the ESP is mounted read-only or if you run out of disk space. You may need to correct such problems manually and re-run the script. In some cases you may need to fall back on manual installation, which gives you better control over details such as which partition to use for installation.
diff --git a/docs/refind/linux.html b/docs/refind/linux.html index ccc2656..e8149a9 100644 --- a/docs/refind/linux.html +++ b/docs/refind/linux.html @@ -15,7 +15,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/19/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
diff --git a/docs/refind/revisions.html b/docs/refind/revisions.html index 6fda6e4..82f9e1d 100644 --- a/docs/refind/revisions.html +++ b/docs/refind/revisions.html @@ -14,7 +14,7 @@by Roderick W. Smith, rodsmith@rodsbooks.com
-Last Web page update: 5/25/2012
+Last Web page update: 6/3/2012
I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
@@ -93,6 +93,8 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 4/19/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
diff --git a/docs/refind/todo.html b/docs/refind/todo.html index 7e7356b..5fe9114 100644 --- a/docs/refind/todo.html +++ b/docs/refind/todo.html @@ -15,7 +15,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -5/20/2012, referencing rEFInd 0.4.0
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
@@ -276,6 +276,12 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -5/25/2012, referencing rEFInd 0.4.1
+6/3/2012, referencing rEFInd 0.4.2I'm a technical writer and consultant specializing in Linux technologies. This Web page is provided free of charge and with no annoying outside ads; however, I did take time to prepare it, and Web hosting does cost money. If you find this Web page useful, please consider making a small donation to help keep this site up and running. Thanks!
diff --git a/install.sh b/install.sh index 87bc4cb..961c90c 100644 --- a/install.sh +++ b/install.sh @@ -17,6 +17,7 @@ # # Revision history: # +# 0.4.2 -- Added notice about BIOS-based OSes & made NVRAM changes in Linux smarter # 0.4.1 -- Added check for rEFItBlesser in OS X # 0.3.3.1 -- Fixed OS X 10.7 bug; also works as make target # 0.3.2.1 -- Check for presence of source files; aborts if not present @@ -179,6 +180,11 @@ InstallOnOSX() { echo "bless status with 'bless --info', since this is known to cause disk corruption" echo "on some systems!!" echo + echo "NOTE: If you want to boot an OS via BIOS emulation (such as Windows or some" + echo "Linux installations), you *MUST* edit the $InstallPart/$TargetDir/refind.conf" + echo "file's 'scanfor' line to include the 'hdbios' option, and perhaps" + echo "'biosexternal' and 'cd', as well." + echo } # InstallOnOSX() @@ -204,6 +210,7 @@ FindLinuxESP() { # Uses efibootmgr to add an entry for rEFInd to the EFI's NVRAM. # If this fails, sets Problems=1 AddBootEntry() { + InstallIt="0" Efibootmgr=`which efibootmgr 2> /dev/null` if [[ $Efibootmgr ]] ; then modprobe efivars &> /dev/null @@ -211,17 +218,27 @@ AddBootEntry() { PartNum=`grep $InstallPart /etc/mtab | cut -d " " -f 1 | cut -c 9-10` EntryFilename=$TargetDir/$Refind EfiEntryFilename=`echo ${EntryFilename//\//\\\}` - ExistingEntry=`$Efibootmgr -v | grep $Refind` + EfiEntryFilename2=`echo ${EfiEntryFilename} | sed s/\\\\\\\\/\\\\\\\\\\\\\\\\/g` + ExistingEntry=`$Efibootmgr -v | grep $EfiEntryFilename2` if [[ $ExistingEntry ]] ; then - echo "An existing EFI boot manager entry for rEFInd seems to exist:" - echo - echo "$ExistingEntry" - echo - echo "This entry is NOT being modified, and no new entry is being created." + ExistingEntryBootNum=`echo $ExistingEntry | cut -c 5-8` + FirstBoot=`$Efibootmgr | grep BootOrder | cut -c 12-15` + if [[ $ExistingEntryBootNum != $FirstBoot ]] ; then + echo "An existing rEFInd boot entry exists, but isn't set as the default boot" + echo "manager. The boot order is being adjusted to make rEFInd the default boot" + echo "manager. If this is NOT what you want, you should use efibootmgr to" + echo "manually adjust your EFI's boot order." + $Efibootmgr -b $ExistingEntryBootNum -B &> /dev/null + InstallIt="1" + fi else + InstallIt="1" + fi + if [[ $InstallIt == "1" ]] ; then + echo "Installing it!" $Efibootmgr -c -l $EfiEntryFilename -L rEFInd -d $InstallDisk -p $PartNum &> /dev/null if [[ $? != 0 ]] ; then - EfibootmgrProblems=1 + EfibootmgrProblems=1 Problems=1 fi fi diff --git a/refind/main.c b/refind/main.c index 66d51ff..298a6d2 100644 --- a/refind/main.c +++ b/refind/main.c @@ -106,7 +106,7 @@ static VOID AboutrEFInd(VOID) { if (AboutMenu.EntryCount == 0) { AboutMenu.TitleImage = BuiltinIcon(BUILTIN_ICON_FUNC_ABOUT); - AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.4.1.1"); + AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.4.2"); AddMenuInfoLine(&AboutMenu, L""); AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2006-2010 Christoph Pfisterer"); AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2012 Roderick W. Smith");