Search code examples
bashdebiancygwin

genisoimage in cywin error: genisoimage: -i option no longer supported


trying to build a net install iso with preseed for debian 11 in cygwin but keep gettign the error. genisoimage: -i option no longer supported.

can't see where -i was used so unsure how to proceed.....

genisonimage 1.11.1 cygwin latest windows 11

function generate_new_iso_and_cleanup() {
  local orig_iso="$1"
  local new_iso="$2"

  echo "Generating new iso: $new_iso..."
  dd if="$orig_iso" bs=1 count=432 of=mbr_template.bin

  genisoimage -r \
    -V 'Debian AUTO amd64' \
    -o "$new_iso" \
    -J -joliet-long \
    -cache-inodes \
    -isohybrid-mbr mbr_template.bin \
    -b isolinux/isolinux.bin \
    -c isolinux/boot.cat \
    -boot-load-size 4 -boot-info-table \
    -no-emul-boot -eltorito-alt-boot \
    -e boot/grub/efi.img -no-emul-boot \
    -isohybrid-gpt-basdat \
    -isohybrid-apm-hfsplus \
    isofiles

  rm -f mbr_template.bin
  rm -rf isofiles
}

tried:

xorrio, mkisofs.

expecting the iso to build, instead error code for a deprecated option that was never used.

would consider any alternative solutions


Solution

  • Apparently genisoimage has no obvious way how to fix that.
    So I followed the changes that grml made and it worked for me.
    I replaced genisoimage with xorriso -as mkisofs as seen here.