/[packages]/cauldron/refind/current/SOURCES/mga-system-path-fixes.patch
ViewVC logotype

Contents of /cauldron/refind/current/SOURCES/mga-system-path-fixes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1342446 - (show annotations) (download)
Mon Dec 17 18:52:52 2018 UTC (5 years, 4 months ago) by martinw
File size: 3227 byte(s)
- new version 0.11.4
- support 32-bit UEFI on 64-bit O/S

1 --- a/Make.common 2018-05-27 22:56:49.564527567 +0100
2 +++ b/Make.common 2018-05-27 23:10:22.681242272 +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 2018-12-16 17:14:36.990090411 +0000
19 +++ b/refind-install 2018-12-16 17:16:34.123509414 +0000
20 @@ -1136,8 +1136,8 @@
21 } # ReSignBinaries()
22
23 # Locate and mount an ESP, if possible, based on parted output.
24 -# Should be called only if /boot/efi is NOT an acceptable ESP.
25 -# Sets InstallDir to the mounted ESP's path ($RootDir/boot/efi)
26 +# Should be called only if /boot/EFI is NOT an acceptable ESP.
27 +# Sets InstallDir to the mounted ESP's path ($RootDir/boot/EFI)
28 # and EspFilesystem the filesystem (always "vfat")
29 FindLinuxESP() {
30 echo "The ESP doesn't seem to be mounted! Trying to find it...."
31 @@ -1163,10 +1163,10 @@
32 if [[ $TableType == 'gpt' && $SkipIt == 0 ]] ; then # read only GPT disks that aren't part of dmraid array
33 PartNum=`LANG=C parted $Drive print -m -s 2>/dev/null | awk -F: '$7 ~ "(^boot| boot)" { print $1 }' | head -n 1`
34 if [ "$PartNum" -eq "$PartNum" ] 2> /dev/null ; then
35 - InstallDir="$RootDir/boot/efi"
36 + InstallDir="$RootDir/boot/EFI"
37 mkdir -p $InstallDir
38 mount $Drive$PartNum $InstallDir
39 - EspFilesystem=`grep "$Drive$PartNum.*/boot/efi" /etc/mtab | uniq | grep -v autofs | cut -d " " -f 3`
40 + EspFilesystem=`grep "$Drive$PartNum.*/boot/EFI" /etc/mtab | uniq | grep -v autofs | cut -d " " -f 3`
41 if [[ $EspFilesystem != 'vfat' ]] ; then
42 umount $InstallDir
43 else
44 @@ -1178,17 +1178,17 @@
45 done
46 } # FindLinuxESP()
47
48 -# Identifies the ESP's location (/boot or /boot/efi, or these locations under
49 +# Identifies the ESP's location (/boot or /boot/EFI, or these locations under
50 # the directory specified by --root); aborts if the ESP isn't mounted at
51 # either location.
52 # Sets InstallDir to the ESP mount point.
53 FindMountedESP() {
54 mount /boot &> /dev/null
55 - mount /boot/efi &> /dev/null
56 + mount /boot/EFI &> /dev/null
57 mount /efi &> /dev/null
58 EspLine=`df "$RootDir/efi" 2> /dev/null | grep efi`
59 if [[ ! -n "$EspLine" ]] ; then
60 - EspLine=`df "$RootDir"/boot/efi 2> /dev/null | grep boot/efi`
61 + EspLine=`df "$RootDir"/boot/EFI 2> /dev/null | grep boot/EFI`
62 fi
63 if [[ ! -n "$EspLine" ]] ; then
64 EspLine=`df "$RootDir"/boot 2> /dev/null | grep boot`
65 @@ -1203,7 +1203,7 @@
66 fi
67 if [[ $EspFilesystem != 'vfat' ]] ; then
68 echo "$RootDir/$InstallDir doesn't seem to be on a VFAT filesystem. The ESP must be"
69 - echo "mounted at $RootDir/boot or $RootDir/boot/efi and it must be VFAT! Aborting!"
70 + echo "mounted at $RootDir/boot or $RootDir/boot/EFI and it must be VFAT! Aborting!"
71 if [[ -d /sys/firmware/efi ]] ; then
72 exit 1
73 else

  ViewVC Help
Powered by ViewVC 1.1.30