diff options
author | Marcel J.E. Mol <marcel@mesa.nl> | 2013-06-24 18:21:32 +0200 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2013-07-17 11:58:05 +0100 |
commit | b39ea9914cb9c4cc5ecc6fe10cc05a4d08855a2e (patch) | |
tree | 145da664317dd8a0cbcb9ebda481e35dc73f0935 | |
parent | 23830f68e1878ef92606d0e0b0511762fbb3d9a8 (diff) | |
download | xen-b39ea9914cb9c4cc5ecc6fe10cc05a4d08855a2e.tar.gz xen-b39ea9914cb9c4cc5ecc6fe10cc05a4d08855a2e.tar.bz2 xen-b39ea9914cb9c4cc5ecc6fe10cc05a4d08855a2e.zip |
pygrub/GrubConf: fix boot problem for fedora 19 grub.cfg (2nd attempt)
Booting a fedora 19 domU failed because a it could not properly
parse the grub.cfg file. This was cased by
set default="${next_entry}"
This statement actually is within an 'if' statement, so maybe it would
be better to skip code within if/fi blocks...
But this patch seems to work fine.
Signed-off-by: Marcel Mol <marcel@mesa.nl>
Acked-by: Ian Campbell <ian.campbell@citix.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit d513814db6af2b298b8776d7ffc5fb1261e176f4)
-rw-r--r-- | tools/pygrub/src/GrubConf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py index c4f543d196..237d4d7b45 100644 --- a/tools/pygrub/src/GrubConf.py +++ b/tools/pygrub/src/GrubConf.py @@ -427,6 +427,8 @@ class Grub2ConfigFile(_GrubConfigFile): if self.commands[com] is not None: if arg.strip() == "${saved_entry}": arg = "0" + elif arg.strip() == "${next_entry}": + arg = "0" setattr(self, self.commands[com], arg.strip()) else: logging.info("Ignored directive %s" %(com,)) |