Changeset 223 for trunk/packages/sipb-xen-database
- Timestamp:
- Oct 28, 2007, 4:19:52 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/sipb-xen-database/client/etc/xen/sipb-database
r146 r223 3 3 from sipb_xen_database import connect 4 4 import re 5 import tempfile 6 from subprocess import call 5 7 6 8 connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen') … … 64 66 disk.append(dspec) 65 67 66 if 'cdrom_image' in locals(): 68 if 'installer' in locals(): 69 check(re.match('^[A-Za-z0-9][A-Za-z0-9_.-]*$', installer)) 70 tmptree = tempfile.mkdtemp('', 'auto-install.', '/tmp') 71 call(['/usr/sbin/sipb-xen-make-iso', installer, tmptree] 72 + installer_options.split(' ')) 73 disk.append('file:'+tmptree+'/install.iso,hdc:cdrom,r') 74 boot = 'd' 75 76 elif 'cdrom_image' in locals(): 67 77 check(re.match('^[A-Za-z0-9][A-Za-z0-9_.-]*$', cdrom_image)) 68 78 disk.append('file:/srv/images/' + cdrom_image + '.iso,hdc:cdrom,r')
Note: See TracChangeset
for help on using the changeset viewer.