- Timestamp:
- Feb 28, 2013, 4:35:24 PM (12 years ago)
- Location:
- devel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf
r1701 r1702 395 395 # Where to store packages downloaded temporarily by rpmbootstrap 396 396 cachedir rpmbootstrap = /var/cache/rpmbootstrap 397 cachedir pbmkbm = /var/cache/ rpmbootstrap397 cachedir pbmkbm = /var/cache/pbmkbm 398 398 399 399 # Options to pass to rpmbootstrap command. By default keep downloaded packages … … 432 432 # pbmkbm configuration parameters 433 433 # 434 mkbmpath default = /var/cache/pbmkbm435 434 vetype pbmkbm = chroot 436 435 verpmtype pbmkbm = rpmbootstrap … … 545 544 osperldep opensuse = Module-Build,File-MimeInfo,File-BaseDir 546 545 ospkgdep opensuse = wget,make,ntp,patch,perl-Date-Manip,perl-File-HomeDir,diffutils 546 ospkgdep opensuse-11.0 = wget,make,ntp,patch,perl-DateManip,perl-File-HomeDir,diffutils 547 547 # Mdv 548 548 osperldep mandrake-10.1 = Date-Manip -
devel/pb-modules/etc/pb.conf.pod
r1606 r1702 26 26 27 27 Nature: Optional 28 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here.28 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here. 29 29 Value: comma separated list of URLs that point to repository files, or packages to install. The values may not include substitutions. 30 30 Conffile: project 31 31 Example: addrepo centos-5-x86_64 = file:///prj/extras.repo,http://mirror.centos.org/centos/5.8/extras/x86_64/RPMS/chrpath-0.13-3.el5.centos.x86_64.rpm 32 33 =item B<cachedir> 34 35 Nature: Optional 36 Key: pb project: rpmbootstrap|pbmkbm|pb 37 Value: Directory to cache temporary content for the relevant pb project. 38 Conffile: pb 39 Example: cachedir rpbootstrap = /var/cache/rpmbootstrap 32 40 33 41 =item B<checkexclude> … … 138 146 139 147 Nature: Mandatory 140 Key: project (as defined in the -p option or PBPROJ environment variable)148 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here. 141 149 Value: internal (the application then handles the logging of what it finds useful) or the name of an application to launch to log context (e.g. sos, cfg2html, ...). 142 150 Conffile: pb 143 Example: logcmd pbmkbm= sos151 Example: logcmd mageia = sos 144 152 145 153 =item B<logcmds> 146 154 147 155 Nature: Optional 148 Key: project (as defined in the -p option or PBPROJ environment variable)156 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here. 149 157 Value: In case the B<logcmd> command is internal, a comma separated list of the commands whose trace execution is to be captured in order to log context. 150 158 Conffile: pb 151 Example: logcmds pbmkbm= mount,lsmod,esxcfg-module -l,df -T159 Example: logcmds mageia = mount,lsmod,esxcfg-module -l,df -T 152 160 153 161 =item B<logfiles> 154 162 155 163 Nature: Optional 156 Key: project (as defined in the -p option or PBPROJ environment variable)164 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here. 157 165 Value: In case the B<logcmd> command is internal, a comma separated list of the files to capture in order to log context. 158 166 Conffile: pb 159 Example: logfiles pbmkbm= /etc/raidtab,/proc/cmdline,/proc/swaps167 Example: logfiles mageia = /etc/raidtab,/proc/cmdline,/proc/swaps 160 168 161 169 =item B<logopt> 162 170 163 171 Nature: Optional 164 Key: project (as defined in the -p option or PBPROJ environment variable)172 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here. 165 173 Value: In case the B<logcmd> command is not internal, the options of the B<logcmd> application to launch to log context 166 174 Conffile: pb 167 Example: logcmd pbmkbm= --all175 Example: logcmd mageia = --all 168 176 169 177 =item B<mkbmbootcmds> … … 214 222 Conffile: pb 215 223 Example: mkbmkerneldir linux = ^linu|^vmlinu|^xen 216 217 =item B<mkbmpath>218 219 Nature: Mandatory220 Key: OS (could be from the most generic up to the most specific from ostype, osfamily, os, os-ver, os-ver-arch). The family name is generaly used here.221 Value: path of the temporary directory into which the boot media is created.222 Conffile: pb223 Example: mkbmpath default = /var/cache/pbmkbm224 224 225 225 =item B<mkbmtargetdirs> -
devel/pb/bin/pb
r1692 r1702 2623 2623 } 2624 2624 # Always redirect the network and always try to use a 'pb' snapshot 2625 #$cmd = "$vmcmd $ENV{'PBVMOPT'} -net user,hostfwd=tcp:$nport:10.0.2.15:22 -loadvm pb $vmm"2625 #$cmd = "$vmcmd $ENV{'PBVMOPT'} -net nic,model=virtio -net user,hostfwd=tcp::$nport-:22 -loadvm pb $vmm" 2626 2626 $cmd = "$vmcmd $ENV{'PBVMOPT'} -redir tcp:$nport:10.0.2.15:22 $vmm" 2627 2627 } elsif ($vmtype eq "xen") { -
devel/pbmkbm/bin/pbmkbm
r1673 r1702 283 283 if (not defined $mkbm{'targetdir'}) { 284 284 $mkbm{'targetdir'} = "/var/cache/pbmkbm"; 285 my ($vestdpath) = pb_conf_get("mkbmpath"); 286 $mkbm{'targetdir'} = "$vestdpath->{'default'}/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}" if (defined $vestdpath->{'default'}); 285 my ($vestdpath) = pb_conf_get_if("cachedir"); 286 $mkbm{'targetdir'} = "$vestdpath->{'default'}/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}" if ((defined $vestdpath) && (defined $vestdpath->{'default'})); 287 $mkbm{'targetdir'} = "$vestdpath->{'pbmkbm'}/$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}" if ((defined $vestdpath) && (defined $vestdpath->{'pbmkbm'})); 287 288 pb_log(1,"No target-dir specified, using $mkbm{'targetdir'}\n"); 288 289 }
Note:
See TracChangeset
for help on using the changeset viewer.