Conversation
- Replace refind.conf with refind.conf sample - Remove fallback EFI boot partition logic
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts rEFInd installation during EFI boot setup to use the sample configuration and removes logic for populating the generic EFI/BOOT fallback path. Flow diagram for updated rEFInd EFI boot setup logicflowchart TD
A_start[setup_efi_boot] --> B_checkMedia
B_checkMedia{refind on install media
AND EFILOADER = refind?}
B_checkMedia -- Yes --> C_mkdirRefind[mkdir -p FSMNT/boot/efi/EFI/refind]
C_mkdirRefind --> D_copyRefindEfi[cp /usr/local/refind/refind_x64.efi
to FSMNT/boot/efi/EFI/refind/BOOTX64.EFI]
D_copyRefindEfi --> E_copySampleConf[cp /usr/local/refind/refind.conf-sample
to FSMNT/boot/efi/EFI/refind/REFIND.CONF]
E_copySampleConf --> F_copyIcons[cp -r /usr/local/refind/icons
to FSMNT/boot/efi/EFI/refind/ICONS]
F_copyIcons --> G_copyLoaderVendor[cp FSMNT/boot/loader.efi
to FSMNT/boot/efi/EFI/LOWERCASE_SYSTEM/BOOTX64.EFI]
B_checkMedia -- No --> H_copyLoaderOnly[cp FSMNT/boot/loader.efi
to FSMNT/boot/efi/EFI/LOWERCASE_SYSTEM/BOOTX64.EFI]
G_copyLoaderVendor --> I_unmount[umount FSMNT/boot/efi]
H_copyLoaderOnly --> I_unmount
%% Removed logic (no longer executed):
%% - No copying of rEFInd or loader.efi into EFI/BOOT fallback path
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="backend/functions-unmount.sh" line_range="393-400" />
<code_context>
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
-
</code_context>
<issue_to_address>
**issue (bug_risk):** Re-evaluate removal of the EFI/BOOT fallback loader to avoid regressions on picky firmware
If nothing else now creates `${FSMNT}/boot/efi/EFI/BOOT/BOOTX64.EFI`, some firmware that only honors the generic fallback path (and not `EFI/<VENDOR>/BOOTX64.EFI`) may fail to boot. If this behavior has not been reproduced elsewhere, please keep a minimal step that ensures `EFI/BOOT/BOOTX64.EFI` exists and targets the intended loader to avoid regressions on such systems.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Update rEFInd EFI boot setup to use the sample configuration and drop fallback EFI boot partition handling.
Enhancements: