Changeset 767 in ProjectBuilder
- Timestamp:
- Apr 27, 2009, 11:27:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r766 r767 1418 1418 my $all; 1419 1419 1420 pb_log(2,"DEBUG: pb_script2v($pbscript,$vtype,$pbforce )\n");1420 pb_log(2,"DEBUG: pb_script2v($pbscript,$vtype,$pbforce,".Dumper($vm1).",$snapme)\n"); 1421 1421 # Prepare the script to be executed on the VM 1422 1422 # in $ENV{'PBDESTDIR'}/pbscript … … 1468 1468 my $snapme = shift || 0; # By default do not snap a VM/VE 1469 1469 1470 pb_log(2,"DEBUG: pb_launchv($vtype,$v,$create )\n");1470 pb_log(2,"DEBUG: pb_launchv($vtype,$v,$create,$snapme)\n"); 1471 1471 die "No VM/VE defined, unable to launch" if (not defined $v); 1472 1472 # Keep only the first VM in case many were given … … 1500 1500 if ($create == 0) { 1501 1501 if ((defined $vmsnap->{$v}) && ($vmsnap->{$v} =~ /true/i)) { 1502 $ENV{'PBVMOPT'} .= " -snapshot";1502 $ENV{'PBVMOPT'} .= "-snapshot "; 1503 1503 } elsif ((defined $vmsnap->{$ENV{'PBPROJ'}}) && ($vmsnap->{$ENV{'PBPROJ'}} =~ /true/i)) { 1504 $ENV{'PBVMOPT'} .= " -snapshot";1504 $ENV{'PBVMOPT'} .= "-snapshot "; 1505 1505 } elsif ($pbsnap eq 1) { 1506 $ENV{'PBVMOPT'} .= " -snapshot"; 1507 } 1508 } elsif ($snapme != 0) { 1506 $ENV{'PBVMOPT'} .= "-snapshot "; 1507 } 1508 } 1509 if ($snapme != 0) { 1509 1510 if (($vmtype eq "kvm") || ($vmtype eq "qemu")) { 1510 1511 # Configure the monitoring to automize the creation of the 'pb' snapshot
Note:
See TracChangeset
for help on using the changeset viewer.