debian - genisoimage and UEFI -
how can create uefi iso image on debian jessie machine?
when use follow command on kubuntu ok
genisoimage -quiet -v "my-amd64" -j -r -r -l -cache-inodes -c isolinux/boot.cat -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot -o my-amd64.iso my-amd64/ isohybrid --uefi my-amd64.iso
but when run command on debian jessie follow error:
genisoimage: option '-e' ambiguous; possibilities: '--eltorito-boot' '--exchange' '--ethershare' '--exclude-list' '--exclude' '--eltorito-catalog' '--eltorito-alt-boot' usage: genisoimage [options] -o file directory ...
it seems genisoimage on kubuntu (15.04) , debian jessie not have same options. on debian genisomage not support uefi.
version on both system same: genisoimage 1.1.11
but must create iso image on debian jessie. workaround this?
apparently there incompatible change in mondo or genisoimage. the problem reported, provided wrapper-workaround got bit mangled wiki. using wrapper solves problem depending on syntax.
here's did:
prepare wrapper:
mv /usr/bin/genisoimage /usr/bin/genisoimage.dist yourfavoritetexteditor /usr/bin/genisoimage
copy/paste wrapper:
#!/bin/bash options=() # buffer array parameters while [[ $1 ]] case "$1" in -e) options+=("--eltorito-boot") shift ;; *) options+=("$1") shift ;; esac done echo calling genisoimage.dist "${options[@]}" eval exec /usr/bin/genisoimage.dist "${options[@]}"
make wrapper executable:
chmod 755 /usr/bin/genisoimage
live happily ever after. :-)
Comments
Post a Comment