Subject: [alpine-devel] [PATCH] testing/xen: fix extlinux pygrub

From: Roger Pau Monne <[email-masked]>
Date: Wed, 8 Feb 2012 00:36:14 +0100

Modified the patch to fix a problem when initrd is the first argument
in the append command. This is already commited to the Xen upstream
tree.
---
 testing/xen/pygrub_alpine.patch |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testing/xen/pygrub_alpine.patch b/testing/xen/pygrub_alpine.patch
index 9d6ee57..98d0822 100644
--- a/testing/xen/pygrub_alpine.patch
+++ b/testing/xen/pygrub_alpine.patch
@@ -38,7 +38,7 @@ diff -r 3e02aa9670b3 tools/pygrub/src/ExtLinuxConf.py
  
                  # Bypass regular self.commands handling
                  com = None
-+            elif arg.find("initrd="):
++            elif "initrd=" in arg:
 +                # find initrd image in append line
 +                args = arg.strip().split(" ")
 +                for a in args:
-- 
1.7.9

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---