gokien / issue-tracker

Issue tracker and general information
http://gokien.org
1 stars 2 forks source link

Our ISO is not a USB-CD hybrid #38

Closed lewtds closed 11 years ago

lewtds commented 11 years ago

The command to generate the iso in the tutorial used to create our buildscript does not create a proper hard disk partition table and thus, not a hybrid USB-CD iso.

The current command:

sudo mkisofs -D -r  \
    -V "$IMAGE_NAME" \
    -cache-inodes -J -l  \
    -b isolinux/isolinux.bin 
    -c isolinux/boot.cat \
    -no-emul-boot -boot-load-size 4 -boot-info-table -o ../gokien.iso .

But I've found this solution in a Ubuntu Forums thread so this one is an easy fix:

xorriso -as mkisofs \
    -D -r -J -joliet-long -l -V "Custom Install CD" \
    -b isolinux/isolinux.bin \
    -c isolinux/boot.cat \
    -iso-level 3 -no-emul-boot -partition_offset 16 -boot-load-size 4 -boot-info-table \
    -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin \
    -o $ISO2 ~/ubuntu

http://ubuntuforums.org/showthread.php?t=1980215

Does any one want a free cake?

lewtds commented 11 years ago

Looks like it's even easier than that. Just run the resulting iso through the isohybrid command and call it a day.

http://www.syslinux.org/wiki/index.php/Doc/isolinux#HYBRID_CD-ROM.2FHARD_DISK_MODE

lewtds commented 11 years ago

Testing is also easy, install qemu/kvm. If this command boots qemu-system-i386 -hda gokien.iso then it's good to go.

lewtds commented 11 years ago

@train255: Next time you create a commit that fixes an issue, please make the commit message more descriptive and include this string in the message "fixes #" and when the commit is pulled in, the bug is automatically closed. Github understands a few formats but we should only use "fixes".