Skip to content

Commit

Permalink
Merge pull request #182 from ryran/grub-efi
Browse files Browse the repository at this point in the history
add support in OS module for finding UEFI GRUB/GRUB2 cfgfile
  • Loading branch information
ryran committed Sep 15, 2015
2 parents 19c20dc + a37308b commit 7868854
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xsos
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]>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7868854

Please sign in to comment.