As the error says, the boot image location is relative to the directory you're putting in the iso..
If the image file and dirname are in the current directory:
Code:
mv name.img dirname/
mkisofs -b name.img -o someiso.iso dirname
or:
Code:
mkdir dirname/boot
mv name.img dirname/boot/
mkisofs -b boot/name.img -o someiso.iso dirname
.. clearer ?
Found this in another one of my posts:
Code:
mkisofs -r -N -allow-leading-dots -d -J -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-V $(VERSION) -boot-load-size 4 -boot-info-table -o $(TMPISO) .