ia64/xen-unstable

changeset 11562:7894224d264b

[XEND] split command-line arguments to the bootloader script properly.
Signed-off-by: Tim Deegan <tim.deegan@xensource.com>
author Tim Deegan <tim.deegan@xensource.com>
date Thu Sep 21 14:58:01 2006 +0100 (2006-09-21)
parents 16e4a5a7cfd7
children 7c5d1c379438
files tools/python/xen/xend/XendBootloader.py
line diff
     1.1 --- a/tools/python/xen/xend/XendBootloader.py	Thu Sep 21 14:56:28 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendBootloader.py	Thu Sep 21 14:58:01 2006 +0100
     1.3 @@ -15,6 +15,7 @@
     1.4  import os, select, errno
     1.5  import random
     1.6  import sxp
     1.7 +import shlex
     1.8  
     1.9  from XendLogging import log
    1.10  from XendError import VmError
    1.11 @@ -49,7 +50,7 @@ def bootloader(blexec, disk, quiet = 0, 
    1.12              args.append("-q")
    1.13          args.append("--output=%s" %(fifo,))
    1.14          if blargs is not None:
    1.15 -            args.extend(blargs.split())
    1.16 +            args.extend(shlex.split(blargs))
    1.17          args.append(disk)
    1.18  
    1.19          try: