Changeset 991 in ProjectBuilder for devel/rpmbootstrap/bin
- Timestamp:
- Mar 1, 2010, 9:27:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/rpmbootstrap/bin/rpmbootstrap
r990 r991 43 43 =head1 SYNOPSIS 44 44 45 rpmbootstrap [-vhmqpdk][-s script][-i iso] distribution-version-arch [target-dir] [mirror [script]]46 47 pb [--verbose][--help][--man][--quiet][--print-rpms][--download-only][--keep][-- include pkg1, pkg2, ...][--script script][--iso iso] distribution-version-arch [target-dir] [mirror [script]]45 rpmbootstrap [-vhmqpdk][-s script][-i iso][-a pkg1[,pkg2,...]] distribution-version-arch [target-dir] [mirror [script]] 46 47 pb [--verbose][--help][--man][--quiet][--print-rpms][--download-only][--keep][--add pkg1,[pkg2,...]][--script script][--iso iso] distribution-version-arch [target-dir] [mirror [script]] 48 48 49 49 =head1 OPTIONS … … 88 88 89 89 Name of the ISO image of the distribution you want to install on the related VE. 90 91 =item B<-a|--add pkg1[,pkg2,...]> 92 93 Additional packages to add from the distribution you want to install on the related VE at the end of the chroot build. 90 94 91 95 =back … … 152 156 "keep|k" => \$opts{'k'}, 153 157 "iso|i=s" => \$opts{'i'}, 158 "add|a=s" => \$opts{'a'}, 154 159 "version|V=s" => \$opts{'V'}, 155 160 ) || pb_syntax(-1,0); … … 279 284 my $osupdname = ""; 280 285 281 pb_log(1,"Setting up $osupdname cache in VE\n");282 286 if ($pbupd =~ /yum/) { 283 287 $oscachedir = "$vepath/var/cache/yum/core/packages/"; … … 291 295 } 292 296 } elsif ($pbupd =~ /zypper/) { 293 pb_log(1,"Setting up Zypper cache in VE\n");294 297 $oscachedir = "$vepath/var/cache/zypp/packages/opensuse/suse/$darch"; 295 298 $osupdname = "Zypper"; 296 } 299 } elsif ($pbupd =~ /urpmi/) { 300 $oscachedir = "$vepath/var/cache/zypp/packages/opensuse/suse/$darch"; 301 $osupdname = "Zypper"; 302 } 303 pb_log(1,"Setting up $osupdname cache in VE\n"); 297 304 pb_mkdir_p($oscachedir); 298 305 pb_mkdir_p($osupdcachedir) if (defined $osupdcachedir); … … 450 457 pb_system("chroot $vepath /bin/bash -c \"if [ -x /usr/bin/authconfig ]; then /usr/bin/authconfig --enableshadow --update; fi\"","Calling authconfig"); 451 458 459 # Installed additional packages we were asked to 460 if (defined $opts{'a'}) { 461 $opts{'a'} =~ s/,/ /g; 462 pb_system("chroot $vepath /bin/bash -c \"$pbupd $opts{'a'} \"","Adding packages to OS by running $pbupd $opts{'a'}"); 463 } 464 452 465 # 453 466 # Clean up
Note:
See TracChangeset
for help on using the changeset viewer.