From ddf4d9b9c4ec448514742816534787de1c07879c Mon Sep 17 00:00:00 2001
From: srs5694
Date: Sat, 4 Mar 2017 18:43:12 -0500
Subject: [PATCH 1/1] Version 0.10.5 release.
---
Makefile | 2 +-
NEWS.txt | 4 +--
debian/changelog | 6 ++++
docs/man/mkrlconf.8 | 2 +-
docs/man/mvrefind.8 | 2 +-
docs/man/refind-install.8 | 2 +-
docs/man/refind-mkdefault.8 | 2 +-
docs/refind/bootcoup.html | 4 +--
docs/refind/bootmode.html | 4 +--
docs/refind/configfile.html | 4 +--
docs/refind/drivers.html | 4 +--
docs/refind/features.html | 4 +--
docs/refind/getting.html | 20 +++++------
docs/refind/index.html | 2 +-
docs/refind/installing.html | 4 +--
docs/refind/linux.html | 71 ++++++++++++++++++++++++++-----------
docs/refind/revisions.html | 51 ++++++++++++++++++++++++--
docs/refind/secureboot.html | 4 +--
docs/refind/sip.html | 4 +--
docs/refind/themes.html | 12 ++-----
docs/refind/todo.html | 2 +-
docs/refind/using.html | 4 +--
filesystems/fsw_efi.c | 2 +-
refind-install | 2 +-
refind.spec | 2 +-
refind/mystrings.c | 7 +++-
26 files changed, 154 insertions(+), 73 deletions(-)
diff --git a/Makefile b/Makefile
index 34fe461..85b0eea 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ MOK_DIR=mok
GPTSYNC_DIR=gptsync
EFILIB_DIR=EfiLib
export EDK2BASE=/usr/local/UDK2014/MyWorkSpace
-export REFIND_VERSION='L"0.10.4.4"'
+export REFIND_VERSION='L"0.10.5"'
# The "all" target builds with the TianoCore library if possible, but falls
# back on the more easily-installed GNU-EFI library if TianoCore isn't
diff --git a/NEWS.txt b/NEWS.txt
index 13f18d5..dd77964 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,5 +1,5 @@
-0.10.5 (??/??/2017):
---------------------
+0.10.5 (3/4/2017):
+------------------
- Two improvements to initrd detection for Linux kernels:
- If multiple initrd files match the kernel's version number, the file
diff --git a/debian/changelog b/debian/changelog
index 4f099ef..0a41e99 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+refind (0.10.5-0ppa1) xenial; urgency=medium
+
+ * Version bump
+
+ -- Roderick Smith Sat, 04 Mar 2017 18:18:50 -0500
+
refind (0.10.4.2-0ppa1) xenial; urgency=medium
* Version bump
diff --git a/docs/man/mkrlconf.8 b/docs/man/mkrlconf.8
index 3755a4f..3984613 100644
--- a/docs/man/mkrlconf.8
+++ b/docs/man/mkrlconf.8
@@ -1,7 +1,7 @@
.\" Copyright 2015-2016 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU Free Documentation License version 1.3 or
any later version
-.TH "MKRLCONF" "8" "0.10.4" "Roderick W. Smith" "rEFInd Manual"
+.TH "MKRLCONF" "8" "0.10.5" "Roderick W. Smith" "rEFInd Manual"
.SH "NAME"
mkrlconf \- Create a Linux kernel configuration file for rEFInd
.SH "SYNOPSIS"
diff --git a/docs/man/mvrefind.8 b/docs/man/mvrefind.8
index a45b23e..097798f 100644
--- a/docs/man/mvrefind.8
+++ b/docs/man/mvrefind.8
@@ -1,7 +1,7 @@
.\" Copyright 2015-2016 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU Free Documentation License version 1.3 or
any later version
-.TH "MVREFIND" "8" "0.10.4" "Roderick W. Smith" "rEFInd Manual"
+.TH "MVREFIND" "8" "0.10.5" "Roderick W. Smith" "rEFInd Manual"
.SH "NAME"
mvrefind \- Move a rEFInd installation from one location to another
.SH "SYNOPSIS"
diff --git a/docs/man/refind-install.8 b/docs/man/refind-install.8
index d479e29..23dcff3 100644
--- a/docs/man/refind-install.8
+++ b/docs/man/refind-install.8
@@ -1,7 +1,7 @@
.\" Copyright 2015-2016 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU Free Documentation License version 1.3 or
any later version
-.TH "REFIND-INSTALL" "8" "0.10.4" "Roderick W. Smith" "rEFInd Manual"
+.TH "REFIND-INSTALL" "8" "0.10.5" "Roderick W. Smith" "rEFInd Manual"
.SH "NAME"
refind-install \- Install rEFInd to the ESP and create an NVRAM entry
.SH "SYNOPSIS"
diff --git a/docs/man/refind-mkdefault.8 b/docs/man/refind-mkdefault.8
index 7006a2f..4633864 100644
--- a/docs/man/refind-mkdefault.8
+++ b/docs/man/refind-mkdefault.8
@@ -1,7 +1,7 @@
.\" Copyright 2016 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU Free Documentation License version 1.3 or
any later version
-.TH "REFIND-MKDEFAULT" "8" "0.10.4" "Roderick W. Smith" "rEFInd Manual"
+.TH "REFIND-MKDEFAULT" "8" "0.10.5" "Roderick W. Smith" "rEFInd Manual"
.SH "NAME"
refind-mkdefault \- Set rEFInd as the default EFI boot option
.SH "SYNOPSIS"
diff --git a/docs/refind/bootcoup.html b/docs/refind/bootcoup.html
index fd3b591..e0b9886 100644
--- a/docs/refind/bootcoup.html
+++ b/docs/refind/bootcoup.html
@@ -16,7 +16,7 @@
by Roderick W. Smith, rodsmith@rodsbooks.com
-Originally written: 10/9/2016, referencing rEFInd 0.10.4
+Originally written: 3/4/2017, referencing rEFInd 0.10.5
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!
@@ -567,7 +567,7 @@ Boot0085* ubuntu
-copyright © 2016 by Roderick W. Smith
+copyright © 2016–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/bootmode.html b/docs/refind/bootmode.html
index cc10660..b28b296 100644
--- a/docs/refind/bootmode.html
+++ b/docs/refind/bootmode.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/14/2012; last Web page update:
-10/29/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -278,7 +278,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/configfile.html b/docs/refind/configfile.html
index 726051a..8240d46 100644
--- a/docs/refind/configfile.html
+++ b/docs/refind/configfile.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/14/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -661,7 +661,7 @@ menuentry Arch {
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/drivers.html b/docs/refind/drivers.html
index d145a13..5fb8a72 100644
--- a/docs/refind/drivers.html
+++ b/docs/refind/drivers.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 4/19/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -401,7 +401,7 @@ controller card.
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/features.html b/docs/refind/features.html
index eddb5fe..7b75819 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:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -254,7 +254,7 @@ such as those with Gigabyte's Hybrid EFI, lack a usable CSM.
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/getting.html b/docs/refind/getting.html
index 2538d18..b83ea41 100644
--- a/docs/refind/getting.html
+++ b/docs/refind/getting.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/14/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -132,7 +132,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
- A
+ href="http://sourceforge.net/projects/refind/files/0.10.5/refind-bin-0.10.5.zip/download">A
binary zip file—Download this if you want to install rEFInd
and/or its filesystem drivers on an x86, x86-64, or ARM64
computer and have no need to test rEFInd first by booting it on an optical
@@ -142,13 +142,13 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
the Installing rEFInd page. Some users of Arch
Linux have reported problems booting some specific Arch Linux kernels with
rEFInd and some other tools. For them, a variant
+ href="http://sourceforge.net/projects/refind/files/0.10.5/refind-bin-gnuefi-0.10.5.zip/download">variant
package exists in which the x86-64 binary was compiled with
GNU-EFI rather than the usual TianoCore EDK2. This change helps some users
with this problem.
- A
+ href="http://sourceforge.net/projects/refind/files/0.10.5/refind-0.10.5-1.x86_64.rpm/download">A
binary RPM file—If you use an RPM-based x86-64
Linux system such as Fedora or openSUSE, you can install the binary RPM
package rather than use the binary zip file. (I don't provide
@@ -158,13 +158,13 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
installation process. Distribution maintainers can examine the
refind.spec file in the source package and tweak it to their
needs. The source
+ href="http://sourceforge.net/projects/refind/files/0.10.5/refind-0.10.5-1.src.rpm/download">source
RPM file might or might not build on your system as-is; it relies
on assumptions about the locations of the GNU-EFI development
files.
- A
+ href="http://sourceforge.net/projects/refind/files/0.10.5/refind_0.10.5-1_amd64.deb/download">A
binary Debian package—If you use an x86-64 version
of Debian, Ubuntu, Mint, or another Debian-based distribution, you can
install from this package, which was converted from the binary RPM
@@ -175,7 +175,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
- A
+ href="http://sourceforge.net/projects/refind/files/0.10.5/refind-cd-0.10.5.zip/download">A
CD-R image file—This download contains the same files as
the binary zip file, but you can burn it to a CD-R to test rEFInd
(and its filesystem drivers) without installing it first. (It boots on
@@ -199,14 +199,14 @@ first partition on /dev/sdd. This procedure should work even on a
BIOS-booted computer.
- A
+ href="http://sourceforge.net/projects/refind/files/0.10.5/refind-flashdrive-0.10.5.zip/download">A
USB flash drive image file—Although you can create
your own rEFInd USB flash drive, you may find it easier to download
this version and copy it to your USB drive with dd or some
other low-level disk copying utility.
- A
+ href="http://sourceforge.net/projects/refind/files/0.10.5/refind-src-0.10.5.tar.gz/download">A
source code tarball—This is useful if you want to compile
the software locally. Note that I use Linux with the TianoCore EFI
@@ -323,7 +323,7 @@ BIOS-booted computer.
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/index.html b/docs/refind/index.html
index f40d33a..6b8cdd5 100644
--- a/docs/refind/index.html
+++ b/docs/refind/index.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/14/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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 906f421..b54a829 100644
--- a/docs/refind/installing.html
+++ b/docs/refind/installing.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/14/2012; last Web page update:
-9/10/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -1094,7 +1094,7 @@ may work, although I've not attempted this.
-copyright © 2012–2015 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/linux.html b/docs/refind/linux.html
index e378fed..72d861f 100644
--- a/docs/refind/linux.html
+++ b/docs/refind/linux.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/19/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -366,30 +366,60 @@ extends it as follows:
- - rEFInd looks for an initial RAM disk in the same directory as the
- kernel file. A matching initial RAM disk has a name that begins with
+
- rEFInd looks for an initial RAM disk in the same directory as the kernel
+ file. A matching initial RAM disk has a name that begins with
init and that includes the same version string as the kernel.
- The version string is defined as the part of the filename from the
- first digit to the last digit, inclusive. Note that the version string
- can include non-digits. For instance, the version string for
+ The version string is defined as the part of the filename from the first
+ digit to the last digit, inclusive. Note that the version string can
+ include non-digits. For instance, the version string for
bzImage-3.19.0.efi is 3.19.0, which matches
initramfs-3.19.0.bz; and
vmlinuz-4.2.5-300.fc23.x86_64's version string is
4.2.5-300.fc23.x86_64, which matches
initrd-4.2.5-300.fc23.x86_64.img. Many other matches are
- possible. If an initial RAM disk is identified, rEFInd passes a
- suitable initrd= option to the kernel when it boots.
+ possible. If an initial RAM disk is identified, rEFInd passes a suitable
+ initrd= option to the kernel when it boots. There are two
+ variants on this rule:
+
+
+
+ - As an extension to the preceding point, if multiple initial RAM disk
+ files match one kernel, the one whose filename matches the most
+ characters after the version string is used. For instance, suppose
+ the kernel filename is vmlinuz-4.8.0-32-standard, and two
+ initial RAM disk files are initrd-4.8.0-32-standard and
+ initrd-4.8.0-32-debug. The first of those files has nine
+ matching characters after the version string (-standard),
+ vs. just one matching character (-) for the second. Thus,
+ the first file will be used.
+
+ - If the refind_linux.conf file (described next) is present,
+ and if an initrd= specification is present for the option
+ you're using, rEFInd will not add a pointer to the initial
+ RAM disk file that it discovers. This feature enables you to
+ override rEFInd's initial RAM disk discovery. This is most useful in
+ Arch Linux, which can be configured with two different initial RAM
+ disk files, one to be used for normal booting and one for recovery
+ situations. You can specify each initial RAM disk file on its own
+ line, which gives you the ability to control which to use at boot
+ time.
- rEFInd looks for a file called refind_linux.conf in the same
- directory as the kernel file. It consists of a series of lines,
- each of which consists of a label followed by a series of kernel
- options. The first line sets default options, and subsequent lines set
- options that are accessible from the main menu tag's submenu screen. If
- you installed rEFInd with the refind-install
- script, that script created a sample refind_linux.conf file,
- customized for your computer, in /boot. This file will work
- without changes on many installations, but you may need to tweak it for
- some.
+ directory as the kernel file. It consists of a series of lines, each of
+ which consists of a label followed by a series of kernel options. The
+ first line sets default options, and subsequent lines set options that
+ are accessible from the main menu tag's submenu screen. If you installed
+ rEFInd with the refind-install script, that script created a
+ sample refind_linux.conf file, customized for your computer, in
+ /boot. This file will work without changes on many
+ installations, but you may need to tweak it for some. If the kernel
+ options string includes the substring %v, rEFInd substitutes
+ the kernel version number for that string. (If you need the actual
+ string %v in your kernel options, use %%v instead;
+ rEFInd will change this to %v.) This feature can be used to
+ match an initial RAM disk file that requires special treatment, such as
+ if you have multiple numbered kernels, each of which has two initial RAM
+ disk files.
- If rEFInd can't find a refind_linux.conf file in the directory
that holds the kernel, the program looks for a file called
@@ -408,7 +438,7 @@ extends it as follows:
- If rEFInd can't find a refind_linux.conf file or an
/etc/fstab file, it tries to identify the Linux root
- (/ filesystem by looking for a partition with a GUID type code
+ (/) filesystem by looking for a partition with a GUID type code
matching that specified for the root (/) filesystem in the Freedesktop.org
Discoverable Partitions Specification. These type codes are as yet
@@ -469,7 +499,8 @@ total 17943
- All the kernels in a given directory use the same
refind_linux.conf file. If you need to set different options
for different kernels, you'll need to place those kernels in different
- directories.
+ directories. (A partial exception is the kernel version string, which
+ can be passed via the %v variable, as noted earlier.)
- You must place your kernels in a directory other than the one that
holds the main rEFInd .efi file. This is because rEFInd does
@@ -489,7 +520,7 @@ total 17943
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/revisions.html b/docs/refind/revisions.html
index 50ba6f7..6f37263 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: 10/9/2016
+Last Web page update: 3/4/2017
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,53 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
+- 0.10.5 (3/4/2017)—This version includes a number of
+ modest changes, most of which will be of interest to relatively few
+ people:
+
+
+ - The touch/tablet support has been improved and so may work with
+ a few more systems.
+
+ - The refind-install script has been updated to work better
+ with disks other than those whose names take the form
+ /dev/sd? and /dev/hd? (in Linux).
+
+ - For the benefit of new Apple laptops that lack physical Esc and
+ function keys, additional keybindings have been added: Backspace
+ (Delete on most Mac keyboards) now works the same as Esc, and Tab
+ now works the same as F2/Insert/+.
+
+ - The Linux initial RAM disk detection code has been expanded so that,
+ if two initial RAM disk files are found for a kernel, the one with
+ more characters after the version string that match the equivalent
+ characters in the kernel filename will be used. For instance,
+ suppose the kernel filename is vmlinuz-4.8.0-32-standard,
+ and two initial RAM disk files are
+ initrd-4.8.0-32-standard and
+ initrd-4.8.0-32-debug. The first of those files has nine
+ matching characters after the version string (-standard),
+ vs. just one matching character (-) for the second. Thus,
+ the first file will be used.
+
+ - A second change to Linux initial RAM disk detection is that you can
+ now specify the kernel version string with the string %v in
+ the refind_linux.conf file's options field. Thus, if your
+ distribution provides two initial RAM disk files per kernel, and
+ also provides numbered kernels, you can create a
+ refind_linux.conf file that enables you to boot with either
+ (or both) of the initial RAM disk files that match a specific
+ kernel.
+
+ - I've done some minor code optimization in the functions that search
+ for boot loaders. This had no noticeable effect on speed for me, and
+ is likely to be more than offset by the more complex initial RAM
+ disk processing noted above; but it might help a little bit on
+ systems with many boot loaders or kernels.
+
+
+
+
- 0.10.4 (10/9/2016)—The number of changes in this
version is modest, but some features are important to some people:
@@ -443,7 +490,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/secureboot.html b/docs/refind/secureboot.html
index 470d710..a813774 100644
--- a/docs/refind/secureboot.html
+++ b/docs/refind/secureboot.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 11/13/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -531,7 +531,7 @@ $ openssl x509 -in refind_local.crt -out refind_local.cer
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/sip.html b/docs/refind/sip.html
index 1b5f662..af53d38 100644
--- a/docs/refind/sip.html
+++ b/docs/refind/sip.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 11/8/2015; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -324,7 +324,7 @@ csr_values 10,77
-copyright © 2015-2016 by Roderick W. Smith
+copyright © 2015–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/themes.html b/docs/refind/themes.html
index 38340cb..c4cb7f9 100644
--- a/docs/refind/themes.html
+++ b/docs/refind/themes.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 4/19/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -348,21 +348,13 @@ to be tedious.
align="center" width="750" alt="A clean theme with a light background"
border=2>
- - Nitrofurano has posted a 1970s-inspired theme on opendesktop.org.
-
-
-
If you've created or discovered another rEFInd theme, please tell me about it so that I can provide a link to it from this page.
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/docs/refind/todo.html b/docs/refind/todo.html
index 761566a..8771430 100644
--- a/docs/refind/todo.html
+++ b/docs/refind/todo.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/14/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2016, referencing rEFInd 0.10.5
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/using.html b/docs/refind/using.html
index 5101d8b..671ee0a 100644
--- a/docs/refind/using.html
+++ b/docs/refind/using.html
@@ -17,7 +17,7 @@
href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
Originally written: 3/14/2012; last Web page update:
-10/9/2016, referencing rEFInd 0.10.4
+3/4/2017, referencing rEFInd 0.10.5
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!
@@ -384,7 +384,7 @@ href="mailto:rodsmith@rodsbooks.com">rodsmith@rodsbooks.com
-copyright © 2012–2016 by Roderick W. Smith
+copyright © 2012–2017 by Roderick W. Smith
This document is licensed under the terms of the GNU Free Documentation License (FDL), version 1.3.
diff --git a/filesystems/fsw_efi.c b/filesystems/fsw_efi.c
index 8c38d9c..9fe1e55 100644
--- a/filesystems/fsw_efi.c
+++ b/filesystems/fsw_efi.c
@@ -80,7 +80,7 @@ EFI_GUID gEfiFileSystemVolumeLabelInfoIdGuid = EFI_FILE_SYSTEM_VOLUME_LABEL_INFO
/** Helper macro for stringification. */
#define FSW_EFI_STRINGIFY(x) #x
/** Expands to the EFI driver name given the file system type name. */
-#define FSW_EFI_DRIVER_NAME(t) L"rEFInd 0.10.4 " FSW_EFI_STRINGIFY(t) L" File System Driver"
+#define FSW_EFI_DRIVER_NAME(t) L"rEFInd 0.10.5 " FSW_EFI_STRINGIFY(t) L" File System Driver"
// function prototypes
diff --git a/refind-install b/refind-install
index 87b4667..5936dc3 100755
--- a/refind-install
+++ b/refind-install
@@ -796,7 +796,7 @@ SetupMacHfs() {
ProductName
rEFInd
ProductVersion
- 0.10.4
+ 0.10.5
ENDOFHERE
diff --git a/refind.spec b/refind.spec
index da61e8e..083786e 100644
--- a/refind.spec
+++ b/refind.spec
@@ -177,7 +177,7 @@ fi
# thus wiping out the just-updated files.
%changelog
-* Wed Mar 1 2017 R Smith - 0.10.5
+* Sat Mar 4 2017 R Smith - 0.10.5
- Updated spec file for 0.10.5
* Sun Oct 9 2016 R Smith - 0.10.4
- Updated spec file for 0.10.4
diff --git a/refind/mystrings.c b/refind/mystrings.c
index ca7a6a1..645511c 100644
--- a/refind/mystrings.c
+++ b/refind/mystrings.c
@@ -348,7 +348,8 @@ BOOLEAN IsInSubstring(IN CHAR16 *BigString, IN CHAR16 *List) {
return Found;
} // BOOLEAN IsSubstringIn()
-// Replace *SearchString in **MainString with *ReplString.
+// Replace *SearchString in **MainString with *ReplString -- but if *SearchString
+// is preceded by "%", instead remove that character.
// Returns TRUE if replacement was done, FALSE otherwise.
BOOLEAN ReplaceSubstring(IN OUT CHAR16 **MainString, IN CHAR16 *SearchString, IN CHAR16 *ReplString) {
BOOLEAN WasReplaced = FALSE;
@@ -360,6 +361,10 @@ BOOLEAN ReplaceSubstring(IN OUT CHAR16 **MainString, IN CHAR16 *SearchString, IN
if (NewString) {
EndString = &(FoundSearchString[StrLen(SearchString)]);
FoundSearchString[0] = L'\0';
+ if ((FoundSearchString > *MainString) && (FoundSearchString[-1] == L'%')) {
+ FoundSearchString[-1] = L'\0';
+ ReplString = SearchString;
+ } // if
StrCpy(NewString, *MainString);
MergeStrings(&NewString, ReplString, L'\0');
MergeStrings(&NewString, EndString, L'\0');
--
2.39.2