Xen-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/pygrub: grub2/grub.cfg from RHEL 7 has new commands in menuentry.
@ 2014-01-30 11:31 Joby Poriyath
  2014-01-30 11:45 ` Andrew Cooper
  0 siblings, 1 reply; 14+ messages in thread
From: Joby Poriyath @ 2014-01-30 11:31 UTC (permalink / raw)
  To: xen-devel; +Cc: Andrew Cooper, Ian Campbell

menuentry in grub2/grub.cfg uses linux16 and initrd16 commands
instead of linux and initrd. Due to this RHEL 7 (beta) guest failed to
boot after the installation.

In addition to this, menuentry has some options as well
(--class red, --class gnu, etc).

Signed-off-by: Joby Poriyath <joby.poriyath@citrix.com>
---
 tools/pygrub/src/GrubConf.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py
index cb853c9..974cded 100644
--- a/tools/pygrub/src/GrubConf.py
+++ b/tools/pygrub/src/GrubConf.py
@@ -348,7 +348,9 @@ class Grub2Image(_GrubImage):
                 
     commands = {'set:root': 'root',
                 'linux': 'kernel',
+                'linux16': 'kernel',
                 'initrd': 'initrd',
+                'initrd16': 'initrd',
                 'echo': None,
                 'insmod': None,
                 'search': None}
@@ -394,7 +396,7 @@ class Grub2ConfigFile(_GrubConfigFile):
                 continue
 
             # new image
-            title_match = re.match('^menuentry ["\'](.*)["\'] (.*){', l)
+            title_match = re.match('^menuentry ["\'](.*?)["\'] (.*){', l)
             if title_match:
                 if img is not None:
                     raise RuntimeError, "syntax error: cannot nest menuentry (%d %s)" % (len(img),img)
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-01-30 15:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 11:31 [PATCH] xen/pygrub: grub2/grub.cfg from RHEL 7 has new commands in menuentry Joby Poriyath
2014-01-30 11:45 ` Andrew Cooper
2014-01-30 12:01   ` Joby Poriyath
2014-01-30 12:07     ` Ian Campbell
2014-01-30 13:02       ` Joby Poriyath
2014-01-30 14:06         ` Ian Campbell
2014-01-30 14:32           ` M A Young
2014-01-30 14:38             ` Ian Campbell
2014-01-30 14:43               ` M A Young
2014-01-30 14:45                 ` Ian Campbell
2014-01-30 14:55           ` Joby Poriyath
2014-01-30 15:00             ` Ian Campbell
2014-01-30 12:24     ` Igor Kozhukhov
2014-01-30 12:28       ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox