- Timestamp:
- Sep 26, 2012, 2:26:13 PM (12 years ago)
- Location:
- devel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf
r1629 r1645 232 232 osupd opensuse-11.1 = sudo /usr/bin/zypper -n update 233 233 osupd opensuse = sudo /usr/bin/zypper --gpg-auto-import-keys -n update 234 osupd redhat = /bin/true 234 235 osupd sol = /bin/true 235 236 osupd lsb = /bin/true … … 248 249 osins opensuse-11.1 = sudo /usr/bin/zypper -n install 249 250 osins opensuse = sudo /usr/bin/zypper --gpg-auto-import-keys -n install --auto-agree-with-licenses 251 osins redhat = sudo /bin/rpm -i --ignorearch 250 252 osins sol = sudo pkgadd -d 251 253 osins lsb = /bin/true … … 292 294 # These deps are needed before setupvm|ve can be run. 293 295 # Install them with your distribution in VM or automatically in VE 296 # On RedHat 6.2 we do not give any package here to avoid problems to add them as there is no repo nor yum mecanism 297 osmindep redhat = 298 osmindep redhat-6.2 = 294 299 osmindep default = perl,sudo,wget,tar,make,gzip 295 300 296 301 # These deps are needed for rpmbootstrap to install a base distribution 297 302 # Originally reuse from rinse conf files 303 rbsmindep redhat-6.2 = MAKEDEV,SysVinit,authconfig,basesystem,bash,binutils,bzip2,chkconfig,console-tools,cracklib,cracklib-dicts,dev,dev86,diffutils,dhcpcd,e2fsprogs,file,filesystem,fileutils,findutils,gawk,gdbm,glib,glibc,gmp,grep,gzip,info,initscripts,iproute,iputils,kernel,krb5-configs,krb5-libs,ldconfig,ld.so,libc,libelf,libstdc++,libtermcap,logrotate,make,mingetty,mktemp,modutils,mount,newt,ncurses,net-tools,pam,passwd,perl,popt,procps,psmisc,pwdb,python,readline,rpm,rpm-python,sed,setup,shadow-utils,sh-utils,slang,sysklogd,tar,tcsh,termcap,textutils,util-linux,vim-common,vim-minimal,vixie-cron,which,wget,zlib 304 # 298 305 rbsmindep fedora-4 = MAKEDEV,SysVinit,audit-libs,basesystem,bash,beecrypt,bzip2-libs,chkconfig,coreutils,cracklib,cracklib-dicts,db4,device-mapper,e2fsprogs,elfutils-libelf,ethtool,expat,filesystem,findutils,gawk,gdbm,glib2,glibc,glibc-common,grep,info,initscripts,iproute,iputils,krb5-libs,libacl,libattr,libcap,libgcc,libidn,libselinux,libsepol,libstdc++,libtermcap,libxml2,libxml2-python,mingetty,mktemp,module-init-tools,ncurses,neon,net-tools,openssl,pam,pcre,popt,procps,psmisc,python,python-elementtree,python-sqlite,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,sed,setup,shadow-utils,sqlite,sysklogd,termcap,tzdata,udev,util-linux,yum,zlib 299 306 # … … 395 402 # $pbos->{'arch'}: architecture of the distribution 396 403 # You need an http based mirror for the moment 404 rbsmirrorsrv redhat-6.2 = http://localhost/rh62/RedHat/RPMS 397 405 #rbsmirrorsrv fedora = http://download.fedora.redhat.com/pub/fedora/linux/releases/$pbos->{'version'}/Everything/$pbos->{'arch'}/os/Packages/ 398 406 rbsmirrorsrv fedora = http://mirrors.kernel.org/fedora/releases/$pbos->{'version'}/Everything/$pbos->{'arch'}/os/Packages … … 603 611 604 612 # Where is the keyboard config file 605 ospathcmd-keyfile default = /etc/rc.config606 613 ospathcmd-keyfile rpm = /etc/sysconfig/keyboard 607 614 ospathcmd-keyfile slackware = /etc/rc.d/rc.keymap … … 610 617 ospathcmd-keyfile arch = /etc/rc.conf 611 618 ospathcmd-keyfile gentoo = /etc/conf.d/keymaps 619 ospathcmd-keyfile default = /etc/rc.config 612 620 # Where is the keyboard directory 613 621 ospathcmd-keymapdir default = /usr/lib/kbd/keymaps … … 621 629 622 630 # Some path for commands may defer from one system to another 631 ospathcmd-halt solaris = /usr/sbin/halt 623 632 ospathcmd-halt default = /sbin/halt 624 ospathcmd-halt solaris = /usr/sbin/halt625 633 626 634 # Do you want pb to create a dedicated SSH key pair to dialog with VM|RM -
devel/rpmbootstrap/bin/rpmbootstrap
r1603 r1645 449 449 unlink("$vepath/tmp/$p1"); 450 450 } 451 # RedHat 6.2 has a buggy termcap setup 452 } elsif ($pbos->{'name'} =~ /redhat/) { 453 pb_system("chroot $vepath ldconfig","Forcing ldconfig on $pbos->{'name'} $pbos->{'version'}"); 451 454 } 452 455 # … … 533 536 # TODO here too ? 534 537 $minipkglist = "ldconfig urpmi passwd vim-minimal dhcp-client"; 538 } elsif ($pbos->{'install'} =~ /\/rpm/) { 539 opendir(CDIR,$cachedir) || die "Unable to open directory $cachedir: $!"; 540 foreach my $p (@installed_packages) { 541 foreach my $f (readdir(CDIR)) { 542 # find an rpm package ref name-ver-tag.arch.rpm 543 next if ($f =~ /^\./); 544 if ($f =~ /^$p-([^-]+)-([^-]+)\.(noarch|$parch)\.rpm$/) { 545 # Copy it to the chroot and reference it 546 copy("$cachedir/$f","$vepath/var/cache"); 547 $minipkglist .= " /var/cache/$f"; 548 last; 549 } 550 } 551 rewinddir(CDIR); 552 } 553 closedir(CDIR); 535 554 } 536 555
Note:
See TracChangeset
for help on using the changeset viewer.