From: srs5694 by Roderick W. Smith, rodsmith@rodsbooks.com Originally written: 1/28/2016, referencing rEFInd 0.10.2 Originally written: 4/24/2016, referencing rEFInd 0.10.3 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!
$ sudo refind-mkdefault rEFInd is not the first boot entry; adjusting.... -Setting a boot order of 0000,0002,0085,0003,0081+Setting a boot order of 0000,0002,0085,0003
The exact output of the script depends on the current state of the system; it might also respond that rEFInd is already the default boot entry or that it could not identify a rEFInd entry, for instance. The boot order shown in this example is meaningless by itself; it's the boot order as identified by efibootmgr; for details, see the next section.
@@ -251,11 +251,10 @@ Setting a boot order of 0000,0002,0085,0003,0081 $ sudo efibootmgr BootCurrent: 0000 Timeout: 0 seconds -BootOrder: 0002,0000,0085,0003,0081 +BootOrder: 0002,0000,0085,0003 Boot0000* rEFInd Boot Manager Boot0002* Windows Boot Manager Boot0003* Windows Boot Manager -Boot0081* Mac OS X Boot0085* ubuntu @@ -265,25 +264,23 @@ Boot0085* ubuntu $ sudo efibootmgr -v BootCurrent: 0000 Timeout: 0 seconds -BootOrder: 0002,0000,0085,0003,0081 +BootOrder: 0002,0000,0085,0003 Boot0000* rEFInd Boot Manager HD(1,800,113000,2491a00e-2a89-4dc4-af21-34c436c8f88a)File(\EFI\refind\shimx64.efi) Boot0002* Windows Boot Manager HD(2,113800,113000,8b0b6d94-06af-4894-b9de-13ca354714a5)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.................... Boot0003* Windows Boot Manager HD(1,800,113000,2491a00e-2a89-4dc4-af21-34c436c8f88a)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.................... -Boot0081* Mac OS X Vendor(99e275e7-75a0-4b37-a2e6-c5385e6c00cb,)-.o. .-.e.e. .-.f. .e.f.i.-.a.p.p.l.e.-.p.a.y.l.o.a.d.0.-.d.a.t.a... Boot0085* ubuntu HD(1,800,113000,2491a00e-2a89-4dc4-af21-34c436c8f88a)File(EFI\Ubuntu\grubx64.efi)Much of this output looks like gibberish, and is useful only for very advanced diagnostics. Note, however, the part of most lines that specifies a filename, in parentheses after File—this information can help disambiguate a misleading or redundant name.
To adjust the boot order, you must identify the rEFInd entry and then use the -o option to efibootmgr to adjust the order:
-$ sudo efibootmgr -o 0000,0085,0002,0003,0081 +$ sudo efibootmgr -o 0000,0085,0002,0003 BootCurrent: 0000 Timeout: 0 seconds -BootOrder: 0000,0085,0002,0003,0081 +BootOrder: 0000,0085,0002,0003 Boot0000* rEFInd Boot Manager Boot0002* Windows Boot Manager Boot0003* Windows Boot Manager -Boot0081* Mac OS X Boot0085* ubuntuIn this example, I moved rEFInd to the top of the list, followed by ubuntu (GRUB), Windows, and OS X. You can adjust the order in any way you want. You can also omit items you don't want to include—but be aware that if you omit Windows entirely from the boot list, it's likely to add itself back (at the top of the list) the next time you boot it.
@@ -305,7 +302,7 @@ Boot0085* ubuntu
# dpkg -P grub-efi-amd64 grub-efi-amd64-signed grub-common grub-efi-amd64-bin \ grub-common grub2-common shim-signed-
The details of what packages you must remove vary from one distribution to another, though. (The preceding examples are from Fedora and Ubuntu installations.) If you're unsure what packages to remove, you may need to use a your package management tools to track down all GRUB-related packages. GUI tools, such as Yumex for Fedora and Synaptic for Debian-based systems, can be very helpful in this task. Unfortunately, you must sometimes remove packages that you might not want to remove—for instance, the preceding example removes shim-signed from Ubuntu because shim-signed contains a dependency on GRUB, but rEFInd can use Shim for its Secure Boot support. Fortunately, if rEFInd is already booting via Shim, removing the shim-signed package will not remove the shimx64.efi binary from rEFInd's directory, so the system will continue to boot—but you also won't receive any Shim updates that might roll along.
+The details of what packages you must remove vary from one distribution to another, though. (The preceding examples are from Fedora and Ubuntu installations.) If you're unsure what packages to remove, you may need to use your package management tools to track down all GRUB-related packages. GUI tools, such as Yumex for Fedora and Synaptic for Debian-based systems, can be very helpful in this task. Unfortunately, you must sometimes remove packages that you might not want to remove—for instance, the preceding example removes shim-signed from Ubuntu because shim-signed contains a dependency on GRUB, but rEFInd can use Shim for its Secure Boot support. Fortunately, if rEFInd is already booting via Shim, removing the shim-signed package will not remove the shimx64.efi binary from rEFInd's directory, so the system will continue to boot—but you also won't receive any Shim updates that might roll along.
Note also that removing the GRUB packages will not remove the files installed to the EFI System Partition (ESP), so rEFInd will continue to show a GRUB option, normally with an icon for your distribution, in its main menu. If you want to remove that menu entry, you can delete the relevant files, normally from /boot/efi/EFI/distribution_name.
@@ -330,7 +327,7 @@ Boot0085* ubuntuThe Startup Disk utility appears in the System Preferences tool. Unfortunately, it will likely be useless if you installed rEFInd using refind-install and its default options, since this tool is designed to switch between OS X installations; it's not smart enough to detect a rEFInd installation and re-activate it.
+The Startup Disk utility appears in the System Preferences tool. Unfortunately, it will likely be useless if you installed rEFInd using refind-install and its default options, since Startup Disk is designed to switch between OS X installations; it's not smart enough to detect a rEFInd installation and re-activate it.
If, however, you installed rEFInd by using the --ownhfs option to refind-install, your rEFInd installation volume should show up as an option in the Startup Disk utility. You should be able to click on it and then click Restart. Note that the name of the rEFInd volume may not be rEFInd, as it is in this screen shot; the name will match whatever volume holds rEFInd on your computer.
@@ -475,7 +472,7 @@ Boot0085* ubuntuVersion 2 of the EFI shell provides a command, bcfg, which can adjust the EFI boot order. Unfortunately, this tool is not present in version 1 of the EFI shell, and version 2 is reliable only with EFI version 2.3 and later. To date (early 2016), all Intel-based Macs use EFI 1.1, and many PCs sold prior to Windows 8's release use UEFI (EFI 2.x) versions prior to 2.3. Thus, this approach may not work for you.
-Even if your computer works with a version 2 shell, it may not have one built in. In fact, most EFIs I've seen lack a built-in shell. If a shell is available, it should appear on the EFI's built-in boot manager, as described earlier, in Evading the Guards: Performing a One-Time Boot to Your Desired OS.
If a shell is not built into your firmware, you can add one; here are a few links that may be helpful: +Even if your computer works with a version 2 shell, it may not have one built in. In fact, most EFIs I've seen lack a built-in shell. If a shell is available, it should appear on the EFI's built-in boot manager, as described earlier, in Evading the Guards: Performing a One-Time Boot to Your Desired OS. If a shell is not built into your firmware, you can add one; here are a few links that may be helpful:
At this point, you should have a working USB flash drive with an EFI shell. It should show up in your computer's built-in boot manager, as described earlier, in Evading the Guards: Performing a One-Time Boot to Your Desired OS. It will probably appear there under the brand name of the USB drive, perhaps with "UEFI" in the description. (If the boot medium shows up twice, select the option that includes "UEFI" in the description.)
+At this point, you should have a working USB flash drive with an EFI shell. It should show up in your computer's built-in boot manager, as described earlier, in Evading the Guards: Performing a One-Time Boot to Your Desired OS. It will probably appear there under the brand name of the USB drive, perhaps with "UEFI" in the description. (If the boot medium shows up twice, select the option that includes "UEFI" in the description.) One major caveat is that the EFI shell is not signed with a Secure Boot key, so to use it on a computer with Secure Boot active, you must disable Secure Boot.
Once you've booted the EFI shell, you can follow a subset of the EFI shell rEFInd installation instructions to repair the boot coup:
diff --git a/docs/refind/bootmode.html b/docs/refind/bootmode.html index e7d8a71..bfccd67 100644 --- a/docs/refind/bootmode.html +++ b/docs/refind/bootmode.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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/drivers.html b/docs/refind/drivers.html index 8869ca0..7dc2311 100644 --- a/docs/refind/drivers.html +++ b/docs/refind/drivers.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 4/19/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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!
@@ -335,6 +335,20 @@ initial RAM disk file! Most real computers don't suffer nearly so badly, but some can take an extra five seconds or so to boot a kernel. I've fixed the speed problems in rEFInd's drivers as of version 0.7.0. +Although I know of no readily-available hardware drivers, I do know of a couple of non-hardware non-filesystem drivers:
+ +Both of these drivers are useful mainly for developers.
+ +Driver availability could increase in the future. If you know of additional EFI drivers, please tell me about them, so I can share the information here. Likewise if you diff --git a/docs/refind/easyuefi.png b/docs/refind/easyuefi.png index e5dfe4c..bb97add 100644 Binary files a/docs/refind/easyuefi.png and b/docs/refind/easyuefi.png differ diff --git a/docs/refind/features.html b/docs/refind/features.html index 634bef9..6d5bcf9 100644 --- a/docs/refind/features.html +++ b/docs/refind/features.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/14/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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/getting.html b/docs/refind/getting.html index 97dd794..cc40df6 100644 --- a/docs/refind/getting.html +++ b/docs/refind/getting.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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!
@@ -132,7 +132,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/26/2016, referencing rEFInd 0.10.3This 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 eec359a..4384fc2 100644 --- a/docs/refind/installing.html +++ b/docs/refind/installing.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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!
@@ -212,11 +212,11 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comI provide RPM and Debian package files for rEFInd; and starting with version 0.8.1, I'm maintaining an Ubuntu PPA for rEFInd. If you have a working RPM-based or Debian-based Linux installation that boots in EFI mode, using one of these files is likely to be the easiest way to install rEFInd: You need only download the file and issue an appropriate installation command. In some cases, double-clicking the package in your file manager will install it. If that doesn't work, a command like the following will install the RPM on an RPM-based system:
-# rpm -Uvh refind-0.10.0-1.x86_64.rpm+
# rpm -Uvh refind-0.10.3-1.x86_64.rpm
On a Debian-based system, the equivalent command is:
-# dpkg -i refind_0.10.0-1_amd64.deb+
# dpkg -i refind_0.10.3-1_amd64.deb
Either command produces output similar to that described for using the refind-install script, so you can check it for error messages and other signs of trouble. The package file installs rEFInd and registers it with the EFI to be the default boot loader. The script that runs as part of the installation process tries to determine if you're using Secure Boot, and if so it will try to configure rEFInd to launch using shim; however, this won't work correctly on all systems. Ubuntu 12.10 users who are booting with Secure Boot active should be wary, since the resulting installation will probably try to use Ubuntu's version of shim, which won't work correctly with rEFInd. The shim program provided with more recent versions of Ubuntu should work correctly.
diff --git a/docs/refind/linux.html b/docs/refind/linux.html index 867d28c..9cebf52 100644 --- a/docs/refind/linux.html +++ b/docs/refind/linux.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/19/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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 bb12639..cb0d0bd 100644 --- a/docs/refind/revisions.html +++ b/docs/refind/revisions.html @@ -16,7 +16,7 @@by Roderick W. Smith, rodsmith@rodsbooks.com
-Last Web page update: 1/26/2016
+Last Web page update: 4/24/2016
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!
@@ -126,6 +126,26 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 11/13/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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/sip.html b/docs/refind/sip.html index 22759e7..bf46e6e 100644 --- a/docs/refind/sip.html +++ b/docs/refind/sip.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 11/8/2015; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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/themes.html b/docs/refind/themes.html index 8c90dff..387574d 100644 --- a/docs/refind/themes.html +++ b/docs/refind/themes.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 4/19/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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 0741e0e..9b543ff 100644 --- a/docs/refind/todo.html +++ b/docs/refind/todo.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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/using.html b/docs/refind/using.html index addd3bd..1f4749f 100644 --- a/docs/refind/using.html +++ b/docs/refind/using.html @@ -17,7 +17,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.comOriginally written: 3/14/2012; last Web page update: -1/26/2016, referencing rEFInd 0.10.2
+4/24/2016, referencing rEFInd 0.10.3This 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/refind.spec b/refind.spec index 0121b4d..6bf7170 100644 --- a/refind.spec +++ b/refind.spec @@ -169,11 +169,7 @@ if [[ $IsSecureBoot == "1" && -n $ShimFile ]] ; then ./refind-install --shim $ShimFile --yes fi else - if [[ -n $SBSign && -n $OpenSSL ]] ; then - ./refind-install --localkeys --yes - else - ./refind-install --yes - fi + ./refind-install --yes fi # CAUTION: Don't create a %preun or a %postun script that deletes the files