WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Hollis Blanchard <hollisb@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Guest boot loader support
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <426EA37E.5070102@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1114469427.4336.42.camel@xxxxxxxxxxxxxx> <1114534871.18436.7.camel@xxxxxxxxxxxxxx> <9cde8bff05042612371682e511@xxxxxxxxxxxxxx> <200504262048.24728.mark.williamson@xxxxxxxxxxxx> <426EA37E.5070102@xxxxxxxxxx>
Reply-to: aq <aquynh@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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