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


Ignore:
Timestamp:
Feb 9, 2016, 2:34:54 PM (8 years ago)
Author:
Bruno Cornec
Message:
  • Adds support for xorriso for UEFI distributions using it such as Debian 8
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3499 r3502  
    106106DEPLIST_DIR="$MINDI_CONF/deplist.d"
    107107
    108 ISO_CMD="/usr/bin/mkisofs"
     108# Debian 8 system e.g. use xorriso for UEFI support.
     109# However, they use exactly the same command line parameters as mkisofs, so just
     110# use it if it's available.
     111ISO_CMD="/usr/bin/xorriso"
     112
     113# Mandriva system e.g. use cdrkit, which uses genisoimage.
     114# However, they use exactly the same command line parameters as mkisofs, so just
     115# use it if it's available.
     116if [ ! -x $ISO_CMD ]; then
     117    ISO_CMD=/usr/bin/genisoimage
     118fi
     119
     120# For compatibility with previous versions default to mkisofs
     121if [ ! -x $ISO_CMD ]; then
     122    ISO_CMD=/usr/bin/mkisofs
     123fi
     124
    109125ISO_OPT="-J -r -v -p Mindi -publisher http://www.mondorescue.org -A Mindi"
    110126
     
    123139    [ ! -r "$MBRFILE" ] && MBRFILE=/usr/share/lib64/syslinux/mbr.bin
    124140fi
    125 
    126 # Mandriva system e.g. use cdrkit, which uses genisoimage instead of mkisofs.
    127 # However, they use exactly the same command line parameters, so just
    128 # use genisoimage if it's available.
    129 if [ ! -x $ISO_CMD ]; then
    130     ISO_CMD=/usr/bin/genisoimage
    131 fi
    132 
    133141
    134142# Function to log on screen only
     
    14671475    local i old_pwd files
    14681476    if [ -z "$ISO_CMD" ]; then
    1469         LogAll "ERROR: Neither mkisofs nor genisoimage found, unable to make CD image"
     1477        LogAll "ERROR: Neither mkisofs nor genisoimage nor xorriso found, unable to make CD image"
    14701478        return
    14711479    fi
Note: See TracChangeset for help on using the changeset viewer.