[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Guest boot loader support


  • To: Hollis Blanchard <hollisb@xxxxxxxxxx>
  • From: aq <aquynh@xxxxxxxxx>
  • Date: Wed, 27 Apr 2005 05:49:44 +0900
  • Cc: Mark Williamson <mark.williamson.mark.williamson@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 26 Apr 2005 20:49:27 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=q8gS5m3nGYb5dXrmdANo/sJKsgCU4OokVZkWZ7pnhFdPY9rQg6vHawqLwq8Dqs907Qc+KbCqLbYorrtnnAKzc8x7D1UWPltKCk4SDbwKrsnPCj86OLZ9vt+WWuendAwXX7fBRSHSi+3eBhPQ5n9RGb/5vkzZxk8Fzjd2c+h4LzE=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 4/27/05, Hollis Blanchard <hollisb@xxxxxxxxxx> wrote:
> Mark Williamson wrote:
> >>ok, i see the point.
> >>
> >>other question: pygrub::get_config(fn) tries to read
> >>"/boot/grub/grub.conf". Normally this should be "/boot/grub/menu.lst".
> >>I wonder which distro are you working on?
> >
> > My FC3 box has menu.lst as a symlink to grub.conf.  Grub seems to be happy
> > with either of these names.  Painful experience suggests that if both files
> > are present, then "menu.lst" will "win".
> 
> GRUB only looks for menu.lst; distros create symlinks because that's a
> terrible name for a config file. In other words, no code should be
> opening grub.conf...
> 

ok, so here is a quick patch to fix the "/boot/grub/grub.conf"
problem. Please apply this after applying the last Jeremy's patch.

list of changes:
- make a dummy file tools/pygrub/src/__init__.py
- open and parse /boot/grub/menu.lst instead of /boot/grub/grub.conf

$ diffstat xen-bootloader.aq.patch 
 __init__.py |    1 +
 pygrub      |    7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

Signed-off-by: Nguyen Anh Quynh <aquynh@xxxxxxxxx>

Attachment: xen-bootloader.aq.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.