Tweak the mtools fix again for x86

This commit is contained in:
Steve McIntyre 2016-05-10 10:17:19 +01:00
parent 7776250163
commit 9223ab7dbb
1 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,9 @@
set -e
#set -x
# Workaround for #823881:
export MTOOLS_SKIP_CHECK=1
# Have we been told to use just one boot method? If none listed,
# assume all are desired. Order also matters. Possible values are
# "BIOS", "EFI" and "BIOS EFI". We'll also accept "EFI BIOS" for
@ -516,13 +519,11 @@ if [ -d boot$N/isolinux/grub ] && [ $BOOT_EFI -ne 0 ] ; then
rm -f $CDDIR/boot/grub/efi.img
mkfs.msdos -v -C "$CDDIR/boot/grub/efi.img" $blocks >/dev/null
# Workaround for #823881:
export MTOOLS_SKIP_CHECK=1
mmd -i "$CDDIR/boot/grub/efi.img" ::efi
mmd -i "$CDDIR/boot/grub/efi.img" ::efi/boot
mcopy -o -i "$CDDIR/boot/grub/efi.img" $CDDIR/efi/boot/boot*.efi \
"::efi/boot"
unset MTOOLS_SKIP_CHECK
if [ $BOOT_EFI = 2 ] ; then
# We're being added alongside (after) a BIOS boot record. Tell