neurobin / JLIVECD

Live cd/dvd customization tool
https://neurobin.org/projects/softwares/unix/JLIVECD/
GNU General Public License v2.0
89 stars 24 forks source link

Error whet try to make an UEFI ISO image #19

Open gmstyle opened 7 years ago

gmstyle commented 7 years ago
genisoimage: option '-e' is ambiguous; possibilities: '--eltorito-boot' '--exchange' '--ethershare' '--exclude-list' '--exclude' '--eltorito-catalog' '--eltorito-alt-boot'
Usage: genisoimage [options] -o file directory ...

this meaasage appears when try to make the iso UEFI bootable. Any solution?

thanks

neurobin commented 7 years ago

You can use the following workaround to make a wrapper of genisoimage:

genisoimage-and-uefi

gmstyle commented 7 years ago

this is the result with this workaraound


*** Using exhaustive compression. Size may become lesser
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on extracted/live/filesystem.squashfs, block size 131072.
[=========================================================\] 132017/132017 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 131072
    compressed data, compressed metadata, compressed fragments, compressed xattrs
    duplicates are removed
Filesystem size 1050273.16 Kbytes (1025.66 Mbytes)
    31.89% of uncompressed filesystem size (3293056.39 Kbytes)
Inode table size 1155568 bytes (1128.48 Kbytes)
    23.21% of uncompressed inode table size (4977775 bytes)
Directory table size 1278728 bytes (1248.76 Kbytes)
    36.32% of uncompressed directory table size (3520435 bytes)
Number of duplicate files found 19052
Number of inodes 147323
Number of files 120771
Number of fragments 8236
Number of symbolic links  13276
Number of device nodes 8
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 13268
Number of ids (unique uids + gids) 22
Number of uids 7
    root (0)
    colord (109)
    hplip (111)
    man (6)
    _apt (104)
    rtkit (114)
    avahi-autoipd (106)
Number of gids 18
    root (0)
    dip (30)
    shadow (42)
    lpadmin (115)
    nogroup (65534)
    utmp (43)
    tty (5)
    crontab (107)
    messagebus (112)
    ssl-cert (111)
    staff (50)
    avahi (117)
    man (12)
    ssh (114)
    lightdm (120)
    bluetooth (113)
    avahi-autoipd (110)
    mail (8)

*** Updating md5sums

*** Creating the image
Calling genisoimage.dist -U -A ISOIMAGE -V ISOIMAGE -volset ISOIMAGE -J -joliet-long -D -r -v -T -o ../myiso-test.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot --eltorito-boot boot/grub/efi.img -no-emul-boot .
Warning: creating filesystem that does not conform to ISO-9660.
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage 1.1.11 (Linux)
Scanning .
Scanning ./live
Scanning ./isolinux
Excluded by match: ./isolinux/boot.cat
Writing:   Initial Padblock                        Start Block 0
Done with: Initial Padblock                        Block(s)    16
Writing:   Primary Volume Descriptor               Start Block 16
Done with: Primary Volume Descriptor               Block(s)    1
Writing:   Eltorito Volume Descriptor              Start Block 17
Size of boot image is 4 sectors -> No emulation
/usr/bin/genisoimage.dist: Uh oh, I cant find the boot image 'boot/grub/efi.img' !
isohybrid: ../myiso-test.iso: Success

W: Could not convert to hybrid image

*** Finalizing image

*** .All done. Check the result.

An iso was created but is empty (34,8 kB) Any solution?

neurobin commented 7 years ago

Seems like the efi.img is not located under extracted/boot/grub/. Can you please find it? it should be somewhere inside the extracted directory. Also, can you provide more info about your host system and target iso?