the mtools mdel command has no option to ignore failure, which makes an ugly error show when non UEFI images are processed (like the x200 ones)

pull/36/head
Hamish Coleman 7 years ago
parent 73d58f4211
commit f2401e68e9

@ -319,12 +319,14 @@ define rule_FL2_insert
./scripts/copyFL2 to_iso $@.tmp $< $(1)
sed -i "s/__BUILT/`sha1sum $<`/" $@.bat
mcopy -m -o -i $@.tmp@@$(FAT_OFFSET) $@.bat ::AUTOEXEC.BAT
mdel -i $@.tmp@@$(FAT_OFFSET) ::EFI/Boot/BootX64.efi
-mdel -i $@.tmp@@$(FAT_OFFSET) ::EFI/Boot/BootX64.efi
mv $@.tmp $@
endef
rule_FL2_insert_DEPS = scripts/copyFL2 # TODO - bat file
# TODO - maybe mdel any FL1 files, so the image can not accidentally be used to
# flash the BIOS?
# TODO
# - maybe mdel any FL1 files, so the image can not accidentally be used to
# flash the BIOS?
# - only delete the UEFI updater if it exists in the original ISO
# Insert the new firmware into the FL2 file
#

Loading…
Cancel
Save