Changeset 1124


Ignore:
Timestamp:
Dec 12, 2010, 11:49:48 PM (8 years ago)
Author:
bruno
Message:

i- Adds new potion -g to support non-graphical modes on the CLI and not only in conf files and env var - Fix #68

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1122 r1124  
    7878=head1 SYNOPSIS
    7979
    80 pb [-vhSq][-r pbroot][-p project][[-s script -a account -P port][-t os-ver-arch][-m os-ver-arch[,...]]][-i iso] <action> [<pkg1> ...]
    81 
    82 pb [--verbose][--help][--man][--quiet][--snapshot][--revision pbroot][--project project][[--script script --account account --port port][--target os-ver-arch][--machine os-ver-arch[,...]]][--iso iso] <action> [<pkg1> ...]
     80pb [-vhSq][-r pbroot][-p project][[-s script -a account -P port][-t os-ver-arch][-m os-ver-arch[,...]]][-g][-i iso] <action> [<pkg1> ...]
     81
     82pb [--verbose][--help][--man][--quiet][--snapshot][--revision pbroot][--project project][[--script script --account account --port port][--target os-ver-arch][--machine os-ver-arch[,...]]][--nographics][--iso iso] <action> [<pkg1> ...]
    8383
    8484=head1 OPTIONS
     
    119119
    120120Name of the script you want to execute on the related VMs or VEs.
     121
     122=item B<-g|--nographics>
     123
     124Do not launch VMs in graphical mode.
    121125
    122126=item B<-i|--iso iso_image>
     
    418422        "machines|mock|m=s" => \$opts{'m'},
    419423        "target|t=s" => \$opts{'t'},
     424        "nographics|g" => \$opts{'g'},
    420425        "port|P=i" => \$opts{'P'},
    421426        "project|p=s" => \$opts{'p'},
     
    18401845        my $vmtype = $ptr->{$ENV{'PBPROJ'}};
    18411846        my $vmcmd = $ptr2->{$ENV{'PBPROJ'}};
     1847
     1848        if (defined $opts{'g'}) {
     1849            if (($vmtype eq "kvm") || ($vmtype eq "qemu")) {
     1850                $ENV{'PBVMOPT'} = "--nographics";
     1851            }
     1852        }
    18421853        if (not defined $ENV{'PBVMOPT'}) {
    18431854            $ENV{'PBVMOPT'} = "";
Note: See TracChangeset for help on using the changeset viewer.