Changeset 991 in ProjectBuilder for devel/rpmbootstrap/bin/rpmbootstrap


Ignore:
Timestamp:
Mar 1, 2010, 9:27:20 AM (14 years ago)
Author:
Bruno Cornec
Message:

r3711@localhost: bruno | 2010-03-01 07:29:29 +0100

  • veconf => rbsconf
  • Adds option -a to rpmbootstrap in order for pb to automatically install the packages it needs
  • Check CentOS4 VE OK
  • Adds pb.conf man page to spec build
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/rpmbootstrap/bin/rpmbootstrap

    r990 r991  
    4343=head1 SYNOPSIS
    4444
    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]]
     45rpmbootstrap [-vhmqpdk][-s script][-i iso][-a pkg1[,pkg2,...]] distribution-version-arch [target-dir] [mirror [script]]
     46
     47pb [--verbose][--help][--man][--quiet][--print-rpms][--download-only][--keep][--add pkg1,[pkg2,...]][--script script][--iso iso] distribution-version-arch [target-dir] [mirror [script]]
    4848
    4949=head1 OPTIONS
     
    8888
    8989Name of the ISO image of the distribution you want to install on the related VE.
     90
     91=item B<-a|--add pkg1[,pkg2,...]>
     92
     93Additional packages to add from the distribution you want to install on the related VE at the end of the chroot build.
    9094
    9195=back
     
    152156        "keep|k" => \$opts{'k'},
    153157        "iso|i=s" => \$opts{'i'},
     158        "add|a=s" => \$opts{'a'},
    154159        "version|V=s" => \$opts{'V'},
    155160) || pb_syntax(-1,0);
     
    279284my $osupdname = "";
    280285
    281 pb_log(1,"Setting up $osupdname cache in VE\n");
    282286if ($pbupd =~ /yum/) {
    283287    $oscachedir = "$vepath/var/cache/yum/core/packages/";
     
    291295    }
    292296} elsif ($pbupd =~ /zypper/) {
    293     pb_log(1,"Setting up Zypper cache in VE\n");
    294297    $oscachedir = "$vepath/var/cache/zypp/packages/opensuse/suse/$darch";
    295298    $osupdname = "Zypper";
    296 }
     299} elsif ($pbupd =~ /urpmi/) {
     300    $oscachedir = "$vepath/var/cache/zypp/packages/opensuse/suse/$darch";
     301    $osupdname = "Zypper";
     302}
     303pb_log(1,"Setting up $osupdname cache in VE\n");
    297304pb_mkdir_p($oscachedir);
    298305pb_mkdir_p($osupdcachedir) if (defined $osupdcachedir);
     
    450457pb_system("chroot $vepath /bin/bash -c \"if [ -x /usr/bin/authconfig ]; then /usr/bin/authconfig --enableshadow --update; fi\"","Calling authconfig");
    451458
     459# Installed additional packages we were asked to
     460if (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
    452465#
    453466# Clean up
Note: See TracChangeset for help on using the changeset viewer.