Changeset 3534 in MondoRescue


Ignore:
Timestamp:
Mar 10, 2016, 6:03:06 PM (8 years ago)
Author:
Bruno Cornec
Message:
  • Improves again iso image creation command call for UEFI
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3533 r3534  
    127127fi
    128128
    129 ISO_OPT="-J -r -v -p Mindi -publisher http://www.mondorescue.org -A Mindi -V Mindi_Image -no-emul-boot -o $MINDI_CACHE/mindi.iso "
     129ISO_OPT="-J -r -v -p Mindi -publisher http://www.mondorescue.org -A Mindi -V Mindi_Image -o $MINDI_CACHE/mindi.iso "
    130130
    131131# Mindi set this as default in case it's invoked alone
     
    134134if [ -d "/sys/firmware/efi" ]; then
    135135    BOOT_TYPE="UEFI"
    136     ISO_OPT="$ISO_OPT -eltorito-alt-boot -efi-boot images/mindi-bootroot.img -no-emul-boot"
    137     echo "$ISO_CMD" | grep -q "xorriso"
    138     if [ $? -eq 0 ]; then
    139         ISO_OPT="$ISO_OPT -eltorito-alt-boot --efi-boot images/mindi-bootroot.img -no-emul-boot"
    140     fi
    141136else
    142137    # Find MBR in case of bootable USB device to build
     
    17631758
    17641759if  [ "$target" = "ISO" ]; then
     1760    if [ "$ARCH" != "ia64" ]; then
     1761        ISO_OPT="$ISO_OPT -b $tbc/isolinux.bin -c $tbc/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table"
     1762    fi
    17651763    # ISO
    17661764    if [ "$ARCH" != "ia64" ] && [ "$BOOT_TYPE" = "BIOS" ]; then
    1767         CMD="$ISO_CMD $ISO_OPT -b $tbc/isolinux.bin -c $tbc/boot.cat -U -boot-load-size 4 -boot-info-table"
     1765        CMD="$ISO_CMD $ISO_OPT"
    17681766        MakeISO
    17691767    else
    1770         CMD="$ISO_CMD $ISO_OPT -b images/mindi-bootroot.img -c images/boot.cat"
     1768        if [ "$ARCH" = "ia64" ]; then
     1769            CMD="$ISO_CMD $ISO_OPT -b images/mindi-bootroot.img -c images/boot.cat"
     1770        else
     1771            # UEFI
     1772            echo "$CMD" | grep -q "xorriso"
     1773            if [ $? -eq 0 ]; then
     1774                CMD="$ISO_CMD $ISO_OPT -eltorito-alt-boot --efi-boot images/mindi-bootroot.img -no-emul-boot"
     1775            else
     1776                CMD="$ISO_CMD $ISO_OPT -eltorito-alt-boot -efi-boot images/mindi-bootroot.img -no-emul-boot"
     1777            fi
     1778        fi
    17711779    fi
    17721780fi
Note: See TracChangeset for help on using the changeset viewer.