Changeset 1648:8d149553755e

Show
Ignore:
Timestamp:
06/06/08 15:21:38 (3 months ago)
Author:
klai@…
Branch:
default
Message:

Adapt to newer versions of Xen which apparently do not work with file: i/o

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Tycoon/Virtualization/XenUtil.py

    r1637 r1648  
    6969        kernel = "%(kernel)s" 
    7070        ramdisk = "%(initrd)s" 
    71         disk   = ['file:%(filesystem)s,sda1,w', 'file:%(swap)s,sda2,w'] 
     71        disk   = ['tap:aio:%(filesystem)s,sda1,w', 'tap:aio:%(swap)s,sda2,w'] 
    7272        name   = "%(account_name)s" 
    7373        root   = "/dev/sda1 ro" 
     
    662662 
    663663        found_line = False 
    664         r = re.compile("(^disk.*?file:)[^,]*") 
     664        r = re.compile("(^disk.*?tap:aio:)[^,]*") 
    665665        for l in fileinput.input(account['config_file_path'], inplace=True): 
    666666            print r.sub("\g<1>" + account['file_system_path'], l, 1),