1 |
--- a/Make.common 2022-04-12 02:04:28.000000000 +0100 |
2 |
+++ b/Make.common 2022-08-08 21:29:50.710841979 +0100 |
3 |
@@ -17,10 +17,11 @@ |
4 |
# used to compile rEFInd.... |
5 |
# |
6 |
|
7 |
+LIBDIR ?= /usr/lib |
8 |
EFIINC = /usr/include/efi |
9 |
-GNUEFILIB = /usr/lib |
10 |
-EFILIB = /usr/lib |
11 |
-EFICRT0 = /usr/lib |
12 |
+GNUEFILIB = $(LIBDIR) |
13 |
+EFILIB = $(LIBDIR) |
14 |
+EFICRT0 = $(LIBDIR)/gnuefi |
15 |
|
16 |
# Comment out above and uncomment below if using locally-compiled GNU-EFI.... |
17 |
#EFIINC = /usr/local/include/efi |
18 |
--- a/refind-install 2022-04-12 18:02:46.000000000 +0100 |
19 |
+++ b/refind-install 2022-08-08 21:33:56.862056764 +0100 |
20 |
@@ -1223,19 +1223,23 @@ |
21 |
done |
22 |
} # FindLinuxESP() |
23 |
|
24 |
-# Identifies the ESP's location (/boot, /boot/efi, /efi, or these locations |
25 |
+# Identifies the ESP's location (/boot, /boot/efi, /boot/EFI, /efi, or these locations |
26 |
# under the directory specified by --root); aborts if the ESP isn't mounted at |
27 |
# any of these locations. |
28 |
# Sets InstallDir to the ESP mount point. |
29 |
FindMountedESP() { |
30 |
mount /boot &> /dev/null |
31 |
mount /boot/efi &> /dev/null |
32 |
+ mount /boot/EFI &> /dev/null |
33 |
mount /efi &> /dev/null |
34 |
EspLine=$(df "$RootDir/efi" 2> /dev/null | grep efi) |
35 |
if [[ -z "$EspLine" ]] ; then |
36 |
EspLine=$(df "$RootDir"/boot/efi 2> /dev/null | grep boot/efi) |
37 |
fi |
38 |
if [[ -z "$EspLine" ]] ; then |
39 |
+ EspLine=$(df "$RootDir"/boot/EFI 2> /dev/null | grep boot/EFI) |
40 |
+ fi |
41 |
+ if [[ -z "$EspLine" ]] ; then |
42 |
EspLine=$(df "$RootDir"/boot 2> /dev/null | grep boot) |
43 |
fi |
44 |
InstallDir=$(echo "$EspLine" | xargs | cut -d " " -f 6 | sed 's/\/\+/\//g') |
45 |
@@ -1248,8 +1252,8 @@ |
46 |
fi |
47 |
if [[ $EspFilesystem != 'vfat' ]] ; then |
48 |
echo "$RootDir/$InstallDir doesn't seem to be on a VFAT filesystem. The ESP must be" |
49 |
- echo "mounted at $RootDir/boot, $RootDir/efi, or $RootDir/boot/efi, and it must be" |
50 |
- echo "VFAT (not msdos)! Aborting!" |
51 |
+ echo "mounted at $RootDir/boot, $RootDir/efi, $RootDir/boot/efi, or $RootDir/boot/EFI," |
52 |
+ echo "and it must be VFAT (not msdos)! Aborting!" |
53 |
if [[ -d /sys/firmware/efi ]] ; then |
54 |
exit 1 |
55 |
else |