--- refind-0.12.0/Make.common.orig 2020-05-12 09:26:33.134781002 +0100 +++ refind-0.12.0/Make.common 2020-05-12 09:28:13.623350600 +0100 @@ -17,10 +17,11 @@ # used to compile rEFInd.... # +LIBDIR ?= /usr/lib EFIINC = /usr/include/efi -GNUEFILIB = /usr/lib -EFILIB = /usr/lib -EFICRT0 = /usr/lib +GNUEFILIB = $(LIBDIR) +EFILIB = $(LIBDIR) +EFICRT0 = $(LIBDIR)/gnuefi # Comment out above and uncomment below if using locally-compiled GNU-EFI.... #EFIINC = /usr/local/include/efi --- refind-0.12.0/refind-install.orig 2020-05-12 09:15:03.231256311 +0100 +++ refind-0.12.0/refind-install 2020-05-12 09:24:24.226770630 +0100 @@ -1217,19 +1217,23 @@ done } # FindLinuxESP() -# Identifies the ESP's location (/boot, /boot/efi, /efi, or these locations +# Identifies the ESP's location (/boot, /boot/efi, /boot/EFI, /efi, or these locations # under the directory specified by --root); aborts if the ESP isn't mounted at # any of these locations. # Sets InstallDir to the ESP mount point. FindMountedESP() { mount /boot &> /dev/null mount /boot/efi &> /dev/null + mount /boot/EFI &> /dev/null mount /efi &> /dev/null EspLine=`df "$RootDir/efi" 2> /dev/null | grep efi` if [[ ! -n "$EspLine" ]] ; then EspLine=`df "$RootDir"/boot/efi 2> /dev/null | grep boot/efi` fi if [[ ! -n "$EspLine" ]] ; then + EspLine=`df "$RootDir"/boot/EFI 2> /dev/null | grep boot/EFI` + fi + if [[ ! -n "$EspLine" ]] ; then EspLine=`df "$RootDir"/boot 2> /dev/null | grep boot` fi InstallDir=`echo $EspLine | cut -d " " -f 6 | sed 's/\/\+/\//g'` @@ -1242,8 +1246,8 @@ fi if [[ $EspFilesystem != 'vfat' ]] ; then echo "$RootDir/$InstallDir doesn't seem to be on a VFAT filesystem. The ESP must be" - echo "mounted at $RootDir/boot, $RootDir/efi, or $RootDir/boot/efi, and it must be" - echo "VFAT (not msdos)! Aborting!" + echo "mounted at $RootDir/boot, $RootDir/efi, $RootDir/boot/efi, or $RootDir/boot/EFI," + echo "and it must be VFAT (not msdos)! Aborting!" if [[ -d /sys/firmware/efi ]] ; then exit 1 else