direct-io.hg

changeset 15006:24f47ff4fb25

[IA64] Presently pygrub only looks in /efi/redhat/elilo.conf. It
should check for other distributions, plus a couple fallback
locations.

Signed-off-by: Aron Griffis <aron@hp.com>
author kfraser@localhost.localdomain
date Thu May 03 09:33:12 2007 +0100 (2007-05-03)
parents 1cb58c70d813
children c857bf38f015
files tools/pygrub/src/pygrub
line diff
     1.1 --- a/tools/pygrub/src/pygrub	Thu May 03 09:32:35 2007 +0100
     1.2 +++ b/tools/pygrub/src/pygrub	Thu May 03 09:33:12 2007 +0100
     1.3 @@ -361,7 +361,12 @@ class Grub:
     1.4  
     1.5          if platform.machine() == 'ia64':
     1.6              self.cf = grub.LiloConf.LiloConfigFile()
     1.7 -            file_list = ("/efi/redhat/elilo.conf",)
     1.8 +            # common distributions
     1.9 +            file_list = ("/efi/debian/elilo.conf", "/efi/gentoo/elilo.conf", 
    1.10 +                         "/efi/redflag/elilo.conf", "/efi/redhat/elilo.conf", 
    1.11 +                         "/efi/SuSE/elilo.conf",)
    1.12 +            # fallbacks
    1.13 +            file_list += ("/efi/boot/elilo.conf", "/elilo.conf",)
    1.14          else:
    1.15              self.cf = grub.GrubConf.GrubConfigFile()
    1.16              file_list = ("/boot/grub/menu.lst", "/boot/grub/grub.conf",