Changeset 1958 in ProjectBuilder for devel/pb/bin
- Timestamp:
- Mar 31, 2015, 1:32:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1953 r1958 5 5 # $Id$ 6 6 # 7 # Copyright B. Cornec 2007-201 27 # Copyright B. Cornec 2007-2015 8 8 # Eric Anderson's changes are (c) Copyright 2012 Hewlett Packard 9 9 # Provided under the GPL v2 … … 899 899 pb_build2v("vm","build"); 900 900 } elsif ($action =~ /^launchvm$/) { 901 pb_parallel_launchv(undef,"vm",undef,3 );901 pb_parallel_launchv(undef,"vm",undef,3,$pbimage); 902 902 } elsif ($action =~ /^launchve$/) { 903 pb_parallel_launchv(undef,"ve",undef,3 );903 pb_parallel_launchv(undef,"ve",undef,3,$pbimage); 904 904 } elsif ($action =~ /^script2vm$/) { 905 905 die "action script2vm requires a -s script option" if (not defined $pbscript{'default'}); … … 914 914 pb_newver(); 915 915 } elsif ($action =~ /^newve$/) { 916 pb_parallel_launchv(undef,"ve",undef,0 );916 pb_parallel_launchv(undef,"ve",undef,0,$pbimage); 917 917 } elsif ($action =~ /^newvm$/) { 918 pb_parallel_launchv(undef,"vm",undef,0 );918 pb_parallel_launchv(undef,"vm",undef,0,$pbimage); 919 919 pb_log(0, "Please ensure that sshd is running in your VM by default\n"); 920 920 pb_log(0, "and that it allows remote root login (PermitRootLogin yes in /etc/ssh/sshd_config)\n"); … … 2805 2805 pb_log(2,"DEBUG: pb_script2v($vtype,$pbstep,$pbforce,$snapme)\n"); 2806 2806 pb_log(2,"DEBUG: pb_script2v(pbscript: ".Dumper($pbscript)."\n"); 2807 pb_parallel_launchv($pbscript,$vtype,uc($vtype)."Script",$pbstep,$pb force,$snapme,$pbsnap,$pbimage);2807 pb_parallel_launchv($pbscript,$vtype,uc($vtype)."Script",$pbstep,$pbimage,$pbforce,$snapme,$pbsnap); 2808 2808 } 2809 2809 … … 2814 2814 my $action = shift; # It an action is defined then use send2target 2815 2815 my $pbstep=shift; # Which step are we in (0: create, 1: setup, 2: build 3: use) 2816 my $pbimage=shift; # Which image to use to start the VM/VE 2816 2817 my $pbforce=shift; # Force stop of VM. Default not. 2817 2818 my $snapme = shift; # By default do not snap a VM/VE/RM 2818 2819 my $usesnap = shift; # By default study the usage of the snapshot feature of VM/VE/RM 2819 my $pbimage=shift; # Which image to use to start the VM/VE2820 2820 my $vm; 2821 2821 my $all; … … 3295 3295 # Gather all required files to send them to the VM/VE 3296 3296 # and launch the build through pbscript 3297 pb_parallel_launchv(\%pbscript,$vtype,uc($vtype).$action,$pbstep,$pb force,0,1,$pbimage);3297 pb_parallel_launchv(\%pbscript,$vtype,uc($vtype).$action,$pbstep,$pbimage,$pbforce); 3298 3298 } 3299 3299 … … 3929 3929 # Launch the VM/VE/RM 3930 3930 pb_log(2,"DEBUG: before parallel launch, pbscript hash is:".Dumper(%pbscript)."\n"); 3931 pb_parallel_launchv(\%pbscript,$vtype,uc($vtype)."Script".$sbx,$pbstep,$pb force);3931 pb_parallel_launchv(\%pbscript,$vtype,uc($vtype)."Script".$sbx,$pbstep,$pbimage,$pbforce,0,$pbsnap); 3932 3932 3933 3933 return;
Note:
See TracChangeset
for help on using the changeset viewer.