-# pad the output ISO to multiples of 256 KiB for partition table support {{{
- siz=$($getfilesize "$ISOFILE")
- cyls=$(($siz / 512 / 32 / 16 + 1)) # C=$cyls H=16 S=32
- ofs=$(($cyls * 16 * 32 * 512 - 1)) # padding offset (size - 1)
- dd if=/dev/zero bs=1 count=1 seek=$ofs of="$ISOFILE" 2>/dev/null
-# }}}
-
-# make ISO dd-able {{{
- if ! $UEFI_ENABLE ; then
- echo "Skipping check for --uefi option in isohybrid since prerequisites are not fulfilled."
- else
- if ! isohybrid --help | grep -q -- --uefi ; then
- echo "isohybrid version does NOT support --uefi option, disabling"
- else
- echo "isohybrid version supports --uefi option"
- ISOHYBRID_OPTIONS=--uefi
- fi
-
- echo "Creating dd-able ISO using isohybrid"
- isohybrid $ISOHYBRID_OPTIONS "$ISOFILE"
- fi
-# }}}
-