Changeset 3505 in MondoRescue for branches/3.2/mindi/mindi


Ignore:
Timestamp:
Feb 12, 2016, 4:12:26 PM (8 years ago)
Author:
Bruno Cornec
Message:
  • Should fix errors when used with xorriso and UEFI (option efi-boot should have -- in that case not -)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3502 r3505  
    115115# use it if it's available.
    116116if [ ! -x $ISO_CMD ]; then
    117     ISO_CMD=/usr/bin/genisoimage
     117    ISO_CMD="/usr/bin/genisoimage"
    118118fi
    119119
    120120# For compatibility with previous versions default to mkisofs
    121121if [ ! -x $ISO_CMD ]; then
    122     ISO_CMD=/usr/bin/mkisofs
     122    ISO_CMD="/usr/bin/mkisofs"
    123123fi
    124124
     
    131131    BOOT_TYPE="UEFI"
    132132    ISO_OPT="$ISO_OPT -eltorito-alt-boot -efi-boot images/mindi-bootroot.img -no-emul-boot"
     133    if [ "$ISO_CMD" = "/usr/bin/xorriso" ]; then
     134        ISO_OPT="$ISO_OPT -eltorito-alt-boot --efi-boot images/mindi-bootroot.img -no-emul-boot"
     135    fi
    133136else
    134137    # Find MBR in case of bootable USB device to build
     
    15451548    if [ "$?" -ne "0" ] ; then
    15461549        if [ "$BOOT_TYPE" = "UEFI" ]; then
     1550            CMD=`echo $CMD | perl -p -e 's|--efi-boot |-eltorito-platform 0xEF -eltorito-boot |'`
    15471551            CMD=`echo $CMD | perl -p -e 's|-efi-boot |-eltorito-platform 0xEF -eltorito-boot |'`
    15481552            $CMD . > /dev/null 2> $MINDI_TMP/mkisofs.log
Note: See TracChangeset for help on using the changeset viewer.