Update to support f18 grub2 efi config file

F18 switch to use grub2 for efi booting, add the config files
to bootloaders array.

Tested with F18 alpha.

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Dave Young 2012-09-21 17:15:33 +08:00
parent 4ff4287ce7
commit db95ae35e8

View File

@ -55,12 +55,14 @@ class moduleClass(Module):
reboot = False
# possible bootloaders we'll need to adjust
# todo: f18 grub2 for efi
# bootloader : (config file, kdump offset)
bootloaders = { "grub" : (["/boot/grub/grub.conf", "/boot/efi/EFI/redhat/grub.conf"], [16, 256]),
"grub2" : (["/boot/grub2/grub.cfg"], [16, 256]),
"zipl" : (["/etc/zipl.conf"], [0]),
"yaboot" : (["/boot/etc/yaboot.conf"], [32]) }
bootloaders = { "grub" : (["/boot/grub/grub.conf", \
"/boot/efi/EFI/redhat/grub.conf"], [16, 256]),\
"grub2" : (["/boot/grub2/grub.cfg", \
"/boot/efi/EFI/fedora/grub.cfg", \
"/boot/efi/EFI/redhat/grub.cfg"], [16, 256]),\
"zipl" : (["/etc/zipl.conf"], [0]),\
"yaboot" : (["/boot/etc/yaboot.conf"], [32]) }
bootloader = None
offset = 0