Changeset 3483


Ignore:
Timestamp:
Nov 15, 2015, 12:33:37 AM (2 years ago)
Author:
bruno
Message:

Reintroduce grub support for RHEL6 UEFI mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3482 r3483  
    21612161            # UEFI
    21622162            efidir=$bigdir/EFI/BOOT
     2163            # Use syslinux.efi as the default boot loader ... but it doesn't work for now :-(
    21632164            FindSyslinux64EFI
    21642165            bootbin=$SYSLINUX64EFI
    21652166            bootconf="$efidir/syslinux.cfg"
    2166            
     2167            # On RHEL6 grub works
     2168            dname=`pbdistrocheck | grep -E '^Name:' | cut -d':' -f2`
     2169            dver=`pbdistrocheck | grep -E '^Ver:' | cut -d':' -f2`
     2170            if [ $dname = "rhel" ] && [ $dver = "6" ]; then
     2171                bootbin="grub*.efi"
     2172                bootconf="$efidir/grub.conf"
     2173                boottype=grub
     2174            elif [ $dname = "rhel" ] && [ $dver = "7" ]; then
     2175                bootbin="grub*.efi"
     2176                bootconf="$efidir/grub.conf"
     2177                boottype=grub2
     2178            fi
    21672179        else
    21682180            # EFI
     
    21712183            boottype=elilo
    21722184            bootconf="$efidir/elilo.conf"
    2173 
    21742185        fi
    21752186
Note: See TracChangeset for help on using the changeset viewer.