Changeset 1958 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Mar 31, 2015, 1:32:50 AM (9 years ago)
Author:
Bruno Cornec
Message:
  • Update copyrights dates notices
  • Change pb_parallel_launchv interface to have pbimage earlier in the params to fix newvm not working anymore
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1953 r1958  
    55# $Id$
    66#
    7 # Copyright B. Cornec 2007-2012
     7# Copyright B. Cornec 2007-2015
    88# Eric Anderson's changes are (c) Copyright 2012 Hewlett Packard
    99# Provided under the GPL v2
     
    899899    pb_build2v("vm","build");
    900900} elsif ($action =~ /^launchvm$/) {
    901     pb_parallel_launchv(undef,"vm",undef,3);
     901    pb_parallel_launchv(undef,"vm",undef,3,$pbimage);
    902902} elsif ($action =~ /^launchve$/) {
    903     pb_parallel_launchv(undef,"ve",undef,3);
     903    pb_parallel_launchv(undef,"ve",undef,3,$pbimage);
    904904} elsif ($action =~ /^script2vm$/) {
    905905    die "action script2vm requires a -s script option" if (not defined $pbscript{'default'});
     
    914914    pb_newver();
    915915} elsif ($action =~ /^newve$/) {
    916     pb_parallel_launchv(undef,"ve",undef,0);
     916    pb_parallel_launchv(undef,"ve",undef,0,$pbimage);
    917917} elsif ($action =~ /^newvm$/) {
    918     pb_parallel_launchv(undef,"vm",undef,0);
     918    pb_parallel_launchv(undef,"vm",undef,0,$pbimage);
    919919    pb_log(0, "Please ensure that sshd is running in your VM by default\n");
    920920    pb_log(0, "and that it allows remote root login (PermitRootLogin yes in /etc/ssh/sshd_config)\n");
     
    28052805pb_log(2,"DEBUG: pb_script2v($vtype,$pbstep,$pbforce,$snapme)\n");
    28062806pb_log(2,"DEBUG: pb_script2v(pbscript: ".Dumper($pbscript)."\n");
    2807 pb_parallel_launchv($pbscript,$vtype,uc($vtype)."Script",$pbstep,$pbforce,$snapme,$pbsnap,$pbimage);
     2807pb_parallel_launchv($pbscript,$vtype,uc($vtype)."Script",$pbstep,$pbimage,$pbforce,$snapme,$pbsnap);
    28082808}
    28092809
     
    28142814my $action = shift;         # It an action is defined then use send2target
    28152815my $pbstep=shift;           # Which step are we in (0: create, 1: setup, 2: build 3: use)
     2816my $pbimage=shift;          # Which image to use to start the VM/VE
    28162817my $pbforce=shift;          # Force stop of VM. Default not.
    28172818my $snapme = shift;         # By default do not snap a VM/VE/RM
    28182819my $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/VE
    28202820my $vm;
    28212821my $all;
     
    32953295# Gather all required files to send them to the VM/VE
    32963296# and launch the build through pbscript
    3297 pb_parallel_launchv(\%pbscript,$vtype,uc($vtype).$action,$pbstep,$pbforce,0,1,$pbimage);
     3297pb_parallel_launchv(\%pbscript,$vtype,uc($vtype).$action,$pbstep,$pbimage,$pbforce);
    32983298}
    32993299
     
    39293929# Launch the VM/VE/RM
    39303930pb_log(2,"DEBUG: before parallel launch, pbscript hash is:".Dumper(%pbscript)."\n");
    3931 pb_parallel_launchv(\%pbscript,$vtype,uc($vtype)."Script".$sbx,$pbstep,$pbforce);
     3931pb_parallel_launchv(\%pbscript,$vtype,uc($vtype)."Script".$sbx,$pbstep,$pbimage,$pbforce,0,$pbsnap);
    39323932
    39333933return;
Note: See TracChangeset for help on using the changeset viewer.