Changeset 1645 in ProjectBuilder


Ignore:
Timestamp:
Sep 26, 2012, 2:26:13 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Adds support for a RedHat 6.2 VE by first making newve work, and rpmbootstrap support non-yum type of install with a full list of deps.
Location:
devel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/etc/pb.conf

    r1629 r1645  
    232232osupd opensuse-11.1 = sudo /usr/bin/zypper -n update
    233233osupd opensuse = sudo /usr/bin/zypper --gpg-auto-import-keys -n update
     234osupd redhat = /bin/true
    234235osupd sol = /bin/true
    235236osupd lsb = /bin/true
     
    248249osins opensuse-11.1 = sudo /usr/bin/zypper -n install
    249250osins opensuse = sudo /usr/bin/zypper --gpg-auto-import-keys -n install --auto-agree-with-licenses
     251osins redhat = sudo /bin/rpm -i --ignorearch
    250252osins sol = sudo pkgadd -d
    251253osins lsb = /bin/true
     
    292294# These deps are needed before setupvm|ve can be run.
    293295# 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
     297osmindep redhat =
     298osmindep redhat-6.2 =
    294299osmindep default = perl,sudo,wget,tar,make,gzip
    295300
    296301# These deps are needed for rpmbootstrap to install a base distribution
    297302# Originally reuse from rinse conf files
     303rbsmindep 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#
    298305rbsmindep 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
    299306#
     
    395402# $pbos->{'arch'}: architecture of the distribution
    396403# You need an http based mirror for the moment
     404rbsmirrorsrv redhat-6.2 = http://localhost/rh62/RedHat/RPMS
    397405#rbsmirrorsrv fedora = http://download.fedora.redhat.com/pub/fedora/linux/releases/$pbos->{'version'}/Everything/$pbos->{'arch'}/os/Packages/
    398406rbsmirrorsrv fedora = http://mirrors.kernel.org/fedora/releases/$pbos->{'version'}/Everything/$pbos->{'arch'}/os/Packages
     
    603611
    604612# Where is the keyboard config file
    605 ospathcmd-keyfile default = /etc/rc.config
    606613ospathcmd-keyfile rpm = /etc/sysconfig/keyboard
    607614ospathcmd-keyfile slackware = /etc/rc.d/rc.keymap
     
    610617ospathcmd-keyfile arch = /etc/rc.conf
    611618ospathcmd-keyfile gentoo = /etc/conf.d/keymaps
     619ospathcmd-keyfile default = /etc/rc.config
    612620# Where is the keyboard directory
    613621ospathcmd-keymapdir default = /usr/lib/kbd/keymaps
     
    621629
    622630# Some path for commands may defer from one system to another
     631ospathcmd-halt solaris = /usr/sbin/halt
    623632ospathcmd-halt default = /sbin/halt
    624 ospathcmd-halt solaris = /usr/sbin/halt
    625633
    626634# Do you want pb to create a dedicated SSH key pair to dialog with VM|RM
  • devel/rpmbootstrap/bin/rpmbootstrap

    r1603 r1645  
    449449        unlink("$vepath/tmp/$p1");
    450450    }
     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'}");
    451454}
    452455#
     
    533536    # TODO here too ?
    534537    $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);
    535554}
    536555
Note: See TracChangeset for help on using the changeset viewer.