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


Ignore:
Timestamp:
Mar 11, 2011, 11:46:52 AM (13 years ago)
Author:
Bruno Cornec
Message:

r4310@localhost: bruno | 2011-03-10 21:29:54 +0100

  • Fix a bug in newvm where VMsize was incorrectly used after pbos introduction.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1248 r1249  
    20982098
    20992099        # TODO: vmmonport should be optional
    2100         my ($ptr,$ptr2,$vmpath,$vmport,$vmsize,$vmmonport) = pb_conf_get("vmtype","vmcmd","vmpath","vmport","vmsize","vmmonport");
     2100        my ($ptr,$ptr2,$vmpath,$vmport,$vms,$vmmonport) = pb_conf_get("vmtype","vmcmd","vmpath","vmport","vmsize","vmmonport");
    21012101        my ($vmopt,$vmmem,$vmtmout,$vmsnap,$vmbuildtm) = pb_conf_get_if("vmopt","vmmem","vmtmout","vmsnap","vmbuildtm");
     2102        my $vmsize = pb_distro_get_param($pbos,$vms);
    21022103
    21032104        my $vmtype = $ptr->{$ENV{'PBPROJ'}};
     
    21812182                if (($vmtype eq "qemu") || ($vmtype eq "xen") || ($vmtype eq "kvm")) {
    21822183                    my $command = pb_check_req("qemu-img",0);
    2183                     pb_system("$command create -f qcow2 $vmm $vmsize->{$v}","Creating the QEMU VM");
     2184                    pb_system("$command create -f qcow2 $vmm $vmsize","Creating the QEMU VM");
    21842185                } elsif ($vmtype eq "vmware") {
    21852186                } else {
Note: See TracChangeset for help on using the changeset viewer.