Skip to contentSkip to conversation

Enable domU boot without xen specific arg by pygrub

PATCH New INAKOSHI Hiroya 1 participant 1 message Mar 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable domU boot without xen specific arg by pygrub

This patch makes domUs bring up without xen specific args to guest kernels. A domU should be booted without args parameter because tools/examples/xmexample1 doesn't have one.

tools/pygrub/src/pygrub +2 -2
diff -r dd489125a2e7 tools/pygrub/src/pygrub
@@ -605,7 +605,7 @@
     isconfig = False
 
     # what was passed in
-    incfg = { "kernel": None, "ramdisk": None, "args": None }
+    incfg = { "kernel": None, "ramdisk": None, "args": "" }
     # what grub or sniffing chose
     chosencfg = { "kernel": None, "ramdisk": None, "args": None }
     # what to boot
@@ -641,7 +641,7 @@
 
     # debug
     if isconfig:
-        chosencfg = run_grub(file, entry)
+        chosencfg = run_grub(file, entry, fs, incfg["args"])
         print "  kernel: %s" % chosencfg["kernel"]
         if img.initrd:
             print "  initrd: %s" % chosencfg["ramdisk"]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel