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


Ignore:
Timestamp:
Aug 27, 2015, 10:50:26 AM (9 years ago)
Author:
Bruno Cornec
Message:

( Only use MBR when dealing with a BIOS type of boot env

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3428 r3429  
    7777# Force some modules to be included
    7878FORCE_MODS=""
    79 
    80 # Find MBR in case of bootable USB device to build
    81 MBRFILE=/usr/lib/syslinux/mbr.bin
    82 [ ! -r "$MBRFILE" ] && MBRFILE=/usr/lib64/syslinux/mbr.bin
    83 [ ! -r "$MBRFILE" ] && MBRFILE=/usr/share/syslinux/mbr.bin
    84 [ ! -r "$MBRFILE" ] && MBRFILE=/usr/share/lib/syslinux/mbr.bin
    85 [ ! -r "$MBRFILE" ] && MBRFILE=/usr/share/lib64/syslinux/mbr.bin
    8679
    8780LOGFILE=/var/log/mindi.log
     
    119112    BOOT_TYPE="UEFI"
    120113    ISO_OPT="$ISO_OPT -eltorito-alt-boot -e images/mindi-bootroot.img -no-emul-boot"
     114else
     115    # Find MBR in case of bootable USB device to build
     116    MBRFILE=/usr/lib/syslinux/mbr.bin
     117    [ ! -r "$MBRFILE" ] && MBRFILE=/usr/lib64/syslinux/mbr.bin
     118    [ ! -r "$MBRFILE" ] && MBRFILE=/usr/share/syslinux/mbr.bin
     119    [ ! -r "$MBRFILE" ] && MBRFILE=/usr/share/lib/syslinux/mbr.bin
     120    [ ! -r "$MBRFILE" ] && MBRFILE=/usr/share/lib64/syslinux/mbr.bin
    121121fi
    122122
     
    21502150    fi
    21512151
    2152     #if [ "$BOOT_TYPE" = "UEFI" ] && [ -f "$lilodir/grub.conf" ]; then
    2153         # for grub 0.97 the conf file is not read with the grub.efi file :-(
    2154         # Not very nice, but needed it seems
    2155         #LogFile "Copying grub.conf file as we use legacy grub on UEFI"
    2156         #mkdir -p $bootdir/boot/grub
    2157         #cp $lilodir/grub.conf $bootdir/boot/grub
    2158     #fi
    2159 
    21602152    echo -en "Tarring and zipping the data content..."
    21612153    size_of_all_tools=`du -sk $bigdir | cut -f1`
Note: See TracChangeset for help on using the changeset viewer.