From 902ccc7989c2e7de4c18aa3531054627ceab147d Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 15 Nov 2022 03:33:43 -0800 Subject: [PATCH] Use upstream, precompiled rEFInd binaries - Needed to allow booting under some MacBook models --- setup/build_linux | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup/build_linux b/setup/build_linux index 972b0e05..f6e2d999 100755 --- a/setup/build_linux +++ b/setup/build_linux @@ -132,10 +132,12 @@ function update_live_env() { 7z e -aoa "$TEMP_DIR/wimboot.zip" -o"$PROFILE_DIR/syslinux/wimboot" 'wimboot*/LICENSE.txt' 'wimboot*/README.txt' 'wimboot*/wimboot' # Boot config (UEFI) - cp "/usr/share/refind/refind_x64.efi" "$PROFILE_DIR/EFI/boot/bootx64.efi" + curl -Lo "$TEMP_DIR/refind.zip" "https://sourceforge.net/projects/refind/files/latest/download" + 7z x -aoa "$TEMP_DIR/refind.zip" -o"$TEMP_DIR/refind" cp "$ROOT_DIR/images/rEFInd.png" "$PROFILE_DIR/EFI/boot/rEFInd.png" - rsync -aI "/usr/share/refind/drivers_x64/" "$PROFILE_DIR/EFI/boot/drivers_x64/" - rsync -aI "/usr/share/refind/icons/" "$PROFILE_DIR/EFI/boot/icons/" --exclude "/usr/share/refind/icons/svg" + cp "$TEMP_DIR/refind"/refind*/"refind/refind_x64.efi" "$PROFILE_DIR/EFI/boot/bootx64.efi" + rsync -aI "$TEMP_DIR/refind"/refind*/refind/drivers_x64/ "$PROFILE_DIR/EFI/boot/drivers_x64/" + rsync -aI "$TEMP_DIR/refind"/refind*/refind/icons/ "$PROFILE_DIR/EFI/boot/icons/" sed -i "s/%ARCHISO_LABEL%/${label}/" "$PROFILE_DIR/EFI/boot/refind.conf" # Memtest86