Check whether Win 7 bootmgfw.efi exists at all

This commit is contained in:
ValdikSS 2022-12-08 23:29:28 +03:00
parent 8cd1b02b9d
commit 68de91778e

View File

@ -349,8 +349,12 @@ then
echo "${bold} == Extracting UEFI bootloader from install.wim ==${normal}"
mkdir -p "$partpath/efi/boot/" || true
extract_bootmgfw_from_installwim "$isopath" "$isomountpath" "$partpath"
if [ -e "$partpath/efi/boot/bootmgfw.efi" ]; then
mv "$partpath/efi/boot/bootmgfw.efi" "$partpath/efi/boot/bootx64.efi"
cp "$partpath/efi/boot/bootx64.efi" "$partpath/efi/boot/bootia32.efi"
else
echo "NOTE: your ISO file does not have UEFI bootloader, UEFI boot would be unavailable!"
fi
fi
echo "${bold} == Unmounting partition ==${normal}"