svn path=/trunk/packages/sipb-xen-www/; revision=1096
def lvinstall(machine, autoinstall):
disksize = machine.disks[0].size
memsize = machine.memory
def lvinstall(machine, autoinstall):
disksize = machine.disks[0].size
memsize = machine.memory
- imagesize = disksize - getswap(disksize, memsize)
+ swapsize = getswap(disksize, memsize)
+ imagesize = disksize - swapsize
- remctl('web', 'install', machine.name, autoinstall.distribution,
- autoinstall.mirror, str(imagesize), ip)
+ remctl('control', machine.name, 'install',
+ 'dist=%s' % autoinstall.distribution,
+ 'mirror=%s' % autoinstall.mirror,
+ 'imagesize=%s' % imagesize)
def lvcopy(machine_orig_name, machine, rootpw):
"""Copy a golden image onto a machine's disk"""
def lvcopy(machine_orig_name, machine, rootpw):
"""Copy a golden image onto a machine's disk"""