Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions backend/functions-unmount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ setup_efi_boot()
# We have refind on the install media, lets use that for dual-boot purposes
rc_nohalt "mkdir -p ${FSMNT}/boot/efi/EFI/refind"
rc_halt "cp /usr/local/refind/refind_x64.efi ${FSMNT}/boot/efi/EFI/refind/BOOTX64.EFI"
rc_halt "cp /usr/local/refind/refind.conf ${FSMNT}/boot/efi/EFI/refind/REFIND.CONF"
rc_halt "cp /usr/local/refind/refind.conf-sample ${FSMNT}/boot/efi/EFI/refind/REFIND.CONF"
rc_halt "cp -r /usr/local/refind/icons ${FSMNT}/boot/efi/EFI/refind/ICONS"
rc_halt "cp ${FSMNT}/boot/loader.efi ${FSMNT}/boot/efi/EFI/${LOWERCASE_SYSTEM}/BOOTX64.EFI"
REFINDEFIFILE="${FSMNT}/boot/efi/EFI/refind/BOOTX64.EFI"
Expand Down Expand Up @@ -390,16 +390,6 @@ setup_efi_boot()
fi
fi

# Now ensure the fallback location for the EFI boot partition exists, and make it if needed
if [ -d '/usr/local/refind' -a "$EFILOADER" = "refind" ] ; then
# We have refind on the install media, lets use that for dual-boot purposes
rc_halt "cp /usr/local/refind/refind.conf ${FSMNT}/boot/efi/EFI/BOOT/REFIND.CONF"
rc_halt "cp -r /usr/local/refind/icons ${FSMNT}/boot/efi/EFI/BOOT/ICONS"
rc_halt "cp /usr/local/refind/refind_x64.efi ${FSMNT}/boot/efi/EFI/BOOT/BOOTX64.EFI"
else
rc_halt "cp ${FSMNT}/boot/loader.efi ${FSMNT}/boot/efi/EFI/BOOT/BOOTX64.EFI"
fi

# Cleanup
rc_halt "umount ${FSMNT}/boot/efi"
done
Expand Down