From: Evan Broder Date: Thu, 9 Oct 2008 06:23:02 +0000 (-0400) Subject: Configure the website to use the new autoinstaller code X-Git-Tag: sipb-xen-www/3.14.4~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/3afa9eb4126fe5520531f8b82662ae02f2ae936f?ds=sidebyside Configure the website to use the new autoinstaller code svn path=/trunk/packages/sipb-xen-www/; revision=1096 --- diff --git a/code/controls.py b/code/controls.py index 86c23c2..9f5bc48 100644 --- a/code/controls.py +++ b/code/controls.py @@ -78,10 +78,13 @@ def getswap(disksize, memsize): def lvinstall(machine, autoinstall): disksize = machine.disks[0].size memsize = machine.memory - imagesize = disksize - getswap(disksize, memsize) + swapsize = getswap(disksize, memsize) + imagesize = disksize - swapsize ip = machine.nics[0].ip - 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"""