From: Wei Kong Subject: Re: [PATCH] pygrub: parse xen module option in grub Date: Fri, 20 Feb 2009 11:20:38 +0800 Message-ID: References: <20090220025505.GA5452@movementarian.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0666542266==" Return-path: In-Reply-To: <20090220025505.GA5452@movementarian.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0666542266== Content-Type: multipart/alternative; boundary=0015174bdf2e084b9b04635123aa --0015174bdf2e084b9b04635123aa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 2009/2/20 John Levon > On Fri, Feb 20, 2009 at 10:40:14AM +0800, Wei Kong wrote: > > > Add function for GrubConf to parse xen module option in grub. > > Why? thanks, John Maybe that "guest" doesn't have right kernel pattern as xen module. o, the "guest" means an os on a phy partition which never be a guest before. Due to sometimes I have many os on different partitions, but I haven't any guest and I don't want install one, so just let xen boot any exist os as guest. > > Pygrub should pass args as domUloader did. > > domUloader was never in the tree. > > > - sxp += "(args \"%s\")" % chosencfg["args"] > > + sxp += "(args \"%s %s\")" % (chosencfg["args"], > incfg["args"]) > > Are you trying to let the user add arguments to the ones specified in > grub? Why? Yes, this args is the one user want to pass to guest kernel, domUloader real did this, and sorry for I don't know domUloader isn't in this tree. > > The patch is wrong anyway, you can't just add on the incoming args for > Solaris at least. At the very least you need to add the args only when > run_grub() is called. > > No, I didn't add any args for solaris. Because I don't want to add args for Solaris, so I add args here, not in run_grub(). --thanks a lot Kong --0015174bdf2e084b9b04635123aa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2009/2/20 John Levon &= lt;levon@movementarian.org&g= t;
On Fri, Feb 20, 2009 at 10:40:14AM +0800, Wei Kong wr= ote:

> Add function for GrubConf to parse xen module option in grub.

Why?
thanks, John
 
Maybe that &qu= ot;guest" doesn't have right kernel pattern as xen module.
o, t= he "guest" means an os on a phy partition which never be a guest = before.
Due to sometimes I have many os on different partitions, but I haven't = any guest and I don't want install one,
so just let xen boot any exi= st os as guest.  

 
> Pygrub should pass args as domUloader did.

domUloader was never in the tree.

> -            sxp +=3D "(args \"= ;%s\")" % chosencfg["args"]
> +            sxp += =3D "(args \"%s %s\")" % (chosencfg["args"], = incfg["args"])

Are you trying to let the user add arguments to the ones specified in=
grub? Why?
Yes, this args is the one user want to pass to= guest kernel, 
domUloader real did this, and sorry for I don'= t know domUloader isn't in this tree.
 

The patch is wrong anyway, you can't just add on the incoming args for<= br> Solaris at least. At the very least you need to add the args only when
run_grub() is called.

No, I didn't add any args for solaris.
Bec= ause I don't want to add args for Solaris, so I add args here, not in r= un_grub().

--thanks a lot
Kong
--0015174bdf2e084b9b04635123aa-- --===============0666542266== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0666542266==--