]> code.delx.au - refind/commitdiff
Adjusted RPM/Debian package script to find Ubuntu's shimx64.efi, not
authorsrs5694 <srs5694@users.sourceforge.net>
Sun, 12 Jan 2014 22:09:54 +0000 (17:09 -0500)
committersrs5694 <srs5694@users.sourceforge.net>
Sun, 12 Jan 2014 22:09:54 +0000 (17:09 -0500)
just Fedora's shim.efi.

NEWS.txt
refind.spec

index 7c6e1eb3b5041540d2c5b35f581a8263f96d2155..a1f86870b06236aafbcf230406ef0523c81281ae 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,3 +1,16 @@
+0.7.8 (?/??/2014):
+------------------
+
+- Adjusted the post-installation script in refind.spec (used to generate
+  RPMs, and therefore also indirectly Debian packages) to search for
+  existing shim program files under the filesnames shim.efi and shimx64.efi
+  rather than just shim.efi. Ubuntu uses shimx64.efi, so Debian packages
+  were failing to detect Ubuntu's shim in previous versions. (Note,
+  however, that Ubuntu's early shim 0.1 is unsuitable for use with rEFInd
+  The newer 0.4 version that's in the repositories now should work fine;
+  it's only when installing on an older system that's NOT been updated that
+  problems might arise.
+
 0.7.7 (1/3/2014):
 -----------------
 
 0.7.7 (1/3/2014):
 -----------------
 
index 6d928b25263c0cb8548be420ea8bc439577b59b3..427aee6568e417637fc548adaa9390b49a0ecb96 100644 (file)
@@ -126,7 +126,9 @@ fi
 cd /usr/share/refind-%{version}
 
 declare VarFile=`ls -d /sys/firmware/efi/vars/SecureBoot* 2> /dev/null`
 cd /usr/share/refind-%{version}
 
 declare VarFile=`ls -d /sys/firmware/efi/vars/SecureBoot* 2> /dev/null`
-declare ShimFile=`find /boot -name shim\.efi 2> /dev/null | head -n 1`
+# Note: Two find operations for ShimFile favors shim over PreLoader -- if both are
+# present, the script uses shim rather than PreLoader.
+declare ShimFile=`find /boot -name shim\.efi -o -name shimx64\.efi -o -name PreLoader\.efi 2> /dev/null | head -n 1`
 if [[ ! -n $ShimFile ]] ; then
    declare ShimFile=`find /boot -name PreLoader\.efi 2> /dev/null | head -n 1`
 fi
 if [[ ! -n $ShimFile ]] ; then
    declare ShimFile=`find /boot -name PreLoader\.efi 2> /dev/null | head -n 1`
 fi