mirror of
https://github.com/ValdikSS/windows2usb.git
synced 2023-08-10 21:13:16 +03:00
Check whether Win 7 bootmgfw.efi exists at all
This commit is contained in:
parent
8cd1b02b9d
commit
68de91778e
@ -349,8 +349,12 @@ then
|
|||||||
echo "${bold} == Extracting UEFI bootloader from install.wim ==${normal}"
|
echo "${bold} == Extracting UEFI bootloader from install.wim ==${normal}"
|
||||||
mkdir -p "$partpath/efi/boot/" || true
|
mkdir -p "$partpath/efi/boot/" || true
|
||||||
extract_bootmgfw_from_installwim "$isopath" "$isomountpath" "$partpath"
|
extract_bootmgfw_from_installwim "$isopath" "$isomountpath" "$partpath"
|
||||||
mv "$partpath/efi/boot/bootmgfw.efi" "$partpath/efi/boot/bootx64.efi"
|
if [ -e "$partpath/efi/boot/bootmgfw.efi" ]; then
|
||||||
cp "$partpath/efi/boot/bootx64.efi" "$partpath/efi/boot/bootia32.efi"
|
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
|
fi
|
||||||
|
|
||||||
echo "${bold} == Unmounting partition ==${normal}"
|
echo "${bold} == Unmounting partition ==${normal}"
|
||||||
|
Loading…
Reference in New Issue
Block a user