-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from ryran/grub-efi
add support in OS module for finding UEFI GRUB/GRUB2 cfgfile
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
# xsos v0.7.5 last mod 2015/08/18 | ||
# xsos v0.7.6 last mod 2015/09/15 | ||
# Latest version at <http://github.com/ryran/xsos> | ||
# RPM packages available at <http://people.redhat.com/rsawhill/rpms> | ||
# Copyright 2012-2015 Ryan Sawhill Aroha <[email protected]> | ||
|
@@ -827,9 +827,15 @@ _CHECK_GRUB() { | |
if [[ -f $1/boot/grub/grub.conf ]]; then | ||
# Set grubcfg for grub1 | ||
grubcfg=$1/boot/grub/grub.conf | ||
elif [[ -f $1/boot/efi/EFI/redhat/grub.conf ]]; then | ||
# Set grubcfg for rhel UEFI grub1 | ||
grubcfg=$1/boot/efi/EFI/redhat/grub.conf | ||
elif [[ -f $1/boot/grub2/grub.cfg ]]; then | ||
# Set grubcfg for rhel grub2 | ||
grubcfg=$1/boot/grub2/grub.cfg | ||
elif [[ -f $1/boot/efi/EFI/redhat/grub.cfg ]]; then | ||
# Set grubcfg for rhel UEFI grub2 | ||
grubcfg=$1/boot/efi/EFI/redhat/grub.cfg | ||
elif [[ -f $1/boot/grub/grub.cfg ]]; then | ||
# Set grubcfg for debian grub2 | ||
grubcfg=$1/boot/grub/grub.cfg | ||
|