All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aron Griffis <aron@hp.com>
To: keir@xensource.com
Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com
Subject: [PATCH] pygrub: look harder for elilo.conf
Date: Wed, 2 May 2007 22:42:44 -0400	[thread overview]
Message-ID: <20070503024240.GA8126@fc.hp.com> (raw)

Keir,

This would also be appropriate for 3.1.0, since the /usr/lib fix makes
pygrub work on 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>

diff -r 6d64f9eefad5 -r 67df28389f46 tools/pygrub/src/pygrub
--- a/tools/pygrub/src/pygrub	Wed May 02 14:50:56 2007 -0400
+++ b/tools/pygrub/src/pygrub	Wed May 02 22:39:12 2007 -0400
@@ -361,7 +361,12 @@ class Grub:
 
         if platform.machine() == 'ia64':
             self.cf = grub.LiloConf.LiloConfigFile()
-            file_list = ("/efi/redhat/elilo.conf",)
+            # common distributions
+            file_list = ("/efi/debian/elilo.conf", "/efi/gentoo/elilo.conf", 
+                         "/efi/redflag/elilo.conf", "/efi/redhat/elilo.conf", 
+                         "/efi/SuSE/elilo.conf",)
+            # fallbacks
+            file_list += ("/efi/boot/elilo.conf", "/elilo.conf",)
         else:
             self.cf = grub.GrubConf.GrubConfigFile()
             file_list = ("/boot/grub/menu.lst", "/boot/grub/grub.conf",

             reply	other threads:[~2007-05-03  2:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-03  2:42 Aron Griffis [this message]
2007-05-03  3:48 ` [PATCH] pygrub: look harder for elilo.conf Daniel P. Berrange
2007-05-03  3:53   ` Alex Williamson
2007-05-03 12:15     ` John Levon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070503024240.GA8126@fc.hp.com \
    --to=aron@hp.com \
    --cc=keir@xensource.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-ia64-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.