Changeset 1090 for trunk/packages/sipb-xen-database/client/etc/xen
- Timestamp:
- Oct 9, 2008, 2:12:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/client/etc/xen/sipb-database
r1079 r1090 19 19 machine = models.Machine.query().filter_by(name=machine_name).one() 20 20 check(machine is not None) 21 machine_type = models.Type.query().filter_by(type_id=machine.type_id).one() 21 machine_type = machine.type 22 cdrom = None 23 if 'cdrom_image' in locals(): 24 cdrom = models.CDROM.query().filter_by(name=cdrom_image).one() 25 check(cdrom is not None) 22 26 23 27 memory = machine.memory … … 64 68 root = '/dev/hdb1' 65 69 codepath = None 66 elif 'cdrom_image' in locals(): 67 check(re.match('^[A-Za-z0-9][A-Za-z0-9_.-]*$', cdrom_image)) 68 disk.append('phy:/srv/images/' + cdrom_image + '.iso,hdc:cdrom,r') 70 elif cdrom is not None: 71 disk.append('phy:/etc/xenvg/image_' + cdrom.cdrom_id + ',hdc:cdrom,r') 69 72 boot = 'd' 70 73 codepath = 'hvm'
Note: See TracChangeset
for help on using the changeset viewer.