skip to Main Content

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

2

Answers


  1. It seems you are NOT reading your script

    -e boot/grub/efi.img -no-emul-boot 
    -isohybrid-gpt-basdat 
    -isohybrid-apm-hfsplus 
    isofiles
    

    but the -iso.. options do not exist for this version

    $ genisoimage --help |& grep "^  -i"
      -i ADD_FILES                No longer supported
      -input-charset CHARSET      Local input charset for file name conversion
      -iso-level LEVEL            Set ISO9660 conformance level (1..3) or 4 for ISO9660 version 2
      -icon-position              Keep HFS icon position
      -input-hfs-charset CHARSET  Local input charset for HFS file name conversion
    

    so genisoimage is complaining for

    -i ADD_FILES                No longer supported
    
    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search