All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Don't attach needless options when launch pygrub
@ 2010-07-14  6:15 Yu Zhiguo
  2010-07-14  6:47 ` Ian Campbell
  0 siblings, 1 reply; 18+ messages in thread
From: Yu Zhiguo @ 2010-07-14  6:15 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

We should always run grub if bootloader is specified,
options 'kernel' and 'ramdisk' are needless.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>

diff -r d867eb643fe4 -r 38d9dac1de56 tools/python/xen/xend/XendBootloader.py
--- a/tools/python/xen/xend/XendBootloader.py	Tue Jul 13 18:17:28 2010 +0100
+++ b/tools/python/xen/xend/XendBootloader.py	Wed Jul 14 22:18:58 2010 +0800
@@ -24,8 +24,7 @@
 import pty, termios, fcntl
 from xen.lowlevel import ptsname
 
-def bootloader(blexec, disk, dom, quiet = False, blargs = '', kernel = '',
-               ramdisk = '', kernel_args = ''):
+def bootloader(blexec, disk, dom, quiet = False, blargs = '', kernel_args = ''):
     """Run the boot loader executable on the given disk and return a
     config image.
     @param blexec  Binary to use as the boot loader
@@ -96,10 +95,6 @@
     (child, m2) = pty.fork()
     if (not child):
         args = [ blexec ]
-        if kernel:
-            args.append("--kernel=%s" % kernel)
-        if ramdisk:
-            args.append("--ramdisk=%s" % ramdisk)
         if kernel_args:
             args.append("--args=%s" % kernel_args)
         if quiet:

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

end of thread, other threads:[~2010-07-15  7:56 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14  6:15 [PATCH] Don't attach needless options when launch pygrub Yu Zhiguo
2010-07-14  6:47 ` Ian Campbell
2010-07-14  7:29   ` Yu Zhiguo
2010-07-14  8:10     ` Ian Campbell
2010-07-14  9:36       ` Yu Zhiguo
2010-07-14  9:46         ` Ian Campbell
2010-07-14 10:07           ` Yu Zhiguo
2010-07-14 10:21             ` Yu Zhiguo
2010-07-14 10:22             ` Ian Campbell
2010-07-14 11:01               ` Yu Zhiguo
2010-07-14 11:10                 ` Ian Campbell
2010-07-14 11:21                   ` Yu Zhiguo
2010-07-14 12:33                     ` Ian Campbell
2010-07-15  2:37                       ` [PATCH] xm: needless to check 'kernel/ramdisk' is existent or not Yu Zhiguo
2010-07-15  7:42                         ` Ian Campbell
2010-07-15  7:56                         ` Ian Campbell
2010-07-15  3:44       ` [PATCH] Don't attach needless options when launch pygrub Zhigang Wang
2010-07-15  5:03         ` Yu Zhiguo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.