# HG changeset patch # User Pascal Bellard # Date 1451574157 -3600 # Node ID 73b721a72d57adabf3d89d25ca08e918cb2a03be # Parent e8de1b7505efd1b03b9c647fee253d17124271cf syslinux/iso2exe: add --force diff -r e8de1b7505ef -r 73b721a72d57 syslinux/stuff/iso2exe/iso2exe.sh --- a/syslinux/stuff/iso2exe/iso2exe.sh Thu Dec 31 15:53:34 2015 +0100 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Thu Dec 31 16:02:37 2015 +0100 @@ -130,6 +130,14 @@ echo $(($(get 32848 "$1" 4)+16)) } +clear_custom_config() +{ + start=$(custom_config_sector $1) + cnt=$((512 - ($start % 512))) + [ $cnt -ne 512 ] && + ddq if=/dev/zero of=$1 bs=2k seek=$start count=$cnt +} + extract_custom_config() { ISO="$1" @@ -300,7 +308,7 @@ done [ ! -s "$1" ] && cat 1>&2 <&2 && exit 1;;