M A Young
2011-Oct-19 23:10 UTC
[Xen-devel] [PATCH 5 of 6] parse configurations with set default="${saved_entry}" line
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-Oct-20 08:28 UTC
[Xen-devel] Re: [PATCH 5 of 6] parse configurations with set default="${saved_entry}" line
On Thu, 2011-10-20 at 00:10 +0100, M A Young wrote:> Fedora 16 grub2 configuration file can have lines like > set default="${saved_entry}" > and a string containing an integer is expected > Signed-off-by: Michael Young <m.a.young@durham.ac.uk>Acked-by: Ian Campbell <ian.campbell@citrix.com>> > --- a/tools/pygrub/src/GrubConf.py 2011-10-17 21:26:48.000000000 > +0100 > +++ b/tools/pygrub/src/GrubConf.py 2011-10-17 21:52:13.000000000 > +0100 > @@ -414,6 +414,8 @@ > > if self.commands.has_key(com): > if self.commands[com] is not None: > + if arg.strip() == "${saved_entry}": > + arg = "0" > setattr(self, self.commands[com], arg.strip()) > else: > logging.info("Ignored directive %s" %(com,)) > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel