File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -138,16 +138,18 @@ export INSTALLKERNEL_INITRD_GENERATOR
138
138
export INSTALLKERNEL_UKI_GENERATOR
139
139
140
140
suffix=
141
- if [ " ${INSTALLKERNEL_LAYOUT} " = efistub ] && [ ${# } -le 3 ]; then
142
- # Relocate to ESP
143
- for candidate in /boot/EFI /boot/efi /boot /efi; do
144
- if [ -d ${candidate} /EFI/Gentoo ]; then
145
- dir=${candidate} /EFI/Gentoo
146
- suffix=.efi
147
- else
148
- continue
149
- fi
150
- done
141
+ if [ " ${INSTALLKERNEL_LAYOUT} " = efistub ]; then
142
+ if [ ${# } -le 3 ] || [ " ${4} " = " /boot" ]; then
143
+ # Relocate to ESP
144
+ for candidate in /boot/EFI /boot/efi /boot /efi; do
145
+ if [ -d ${candidate} /EFI/Gentoo ]; then
146
+ dir=${candidate} /EFI/Gentoo
147
+ suffix=.efi
148
+ else
149
+ continue
150
+ fi
151
+ done
152
+ fi
151
153
fi
152
154
153
155
# If installing in the usual directory, run the same scripts that hook
189
191
# If we found a uki.efi, install it instead of kernel+initrd
190
192
if [ -f " ${uki} " ] && [ " ${INSTALLKERNEL_LAYOUT} " = uki ]; then
191
193
suffix=.efi
192
- if [ ${# } -le 3 ]; then
194
+ if [ ${# } -le 3 ] || [ " ${4} " = " /boot " ] ; then
193
195
# Relocate to ESP
194
196
for candidate in /boot/EFI /boot/efi /boot /efi; do
195
197
if [ -d ${candidate} /EFI/Linux ]; then
You can’t perform that action at this time.
0 commit comments