source: projects/specs/trunk/r/rinse/rinse-1.7-git.patch @ 2744

Revision 2744, 64.1 KB checked in by daisuke, 13 years ago (diff)

rinse:

  • update from git master to support newer fedora and opensuse
  • update rinse.conf to change mirror urls to faster server.
  • bin/rinse

    diff -ruN rinse-1.7.orig/bin/rinse rinse-1.7/bin/rinse
    old new  
    868868                $arch = 'x86_64'; 
    869869            } 
    870870 
     871            # 32bit packages come in a variety of specific formats now   
     872            if ( $CONFIG{ 'arch' } eq 'i386' ) 
     873            { 
     874                $arch = 'i386|i586|i686'; 
     875            } 
     876 
    871877            if ( $#remainder_parts != 2 || 
    872878                 $remainder_parts[0] ne '' || 
    873879                 $remainder_parts[1] !~ /^[\d\w][\d\w.+]*$/ || 
  • etc/fedora-10.packages

    diff -ruN rinse-1.7.orig/etc/fedora-10.packages rinse-1.7/etc/fedora-10.packages
    old new  
     1audit-libs 
     2basesystem 
     3bash 
     4bzip2-libs 
     5chkconfig 
     6compat-db45 
     7ConsoleKit-libs 
     8coreutils 
     9cpio 
     10cracklib 
     11cracklib-dicts 
     12crontabs 
     13cyrus-sasl-lib 
     14db4 
     15dbus 
     16dbus-libs 
     17device-mapper 
     18device-mapper-libs 
     19dhclient 
     20dirmngr 
     21e2fsprogs 
     22e2fsprogs-libs 
     23elfutils-libelf 
     24ethtool 
     25expat 
     26fedora-release 
     27fedora-release-notes 
     28file 
     29file-libs 
     30filesystem 
     31findutils 
     32gamin 
     33gawk 
     34gdbm 
     35glib2 
     36glibc 
     37glibc-common 
     38gnupg2 
     39gpgme 
     40grep 
     41info 
     42initscripts 
     43iproute 
     44iputils 
     45keyutils-libs 
     46krb5-libs 
     47libacl 
     48libattr 
     49libcap 
     50libcurl 
     51libgcc 
     52libgcrypt 
     53libgpg-error 
     54libidn 
     55libksba 
     56libselinux 
     57libsepol 
     58libstdc++ 
     59libusb 
     60libvolume_id 
     61libxml2 
     62linux-atm-libs 
     63logrotate 
     64lua 
     65MAKEDEV 
     66mingetty 
     67module-init-tools 
     68ncurses 
     69ncurses-base 
     70ncurses-libs 
     71net-tools 
     72nspr 
     73nss 
     74openldap 
     75openssl 
     76pam 
     77passwd 
     78pcre 
     79pinentry 
     80popt 
     81procps 
     82psmisc 
     83pth 
     84pygpgme 
     85python 
     86python-iniparse 
     87python-libs 
     88python-urlgrabber 
     89readline 
     90rpm 
     91rpm-libs 
     92rpm-python 
     93rsyslog 
     94sed 
     95setup 
     96shadow-utils 
     97sqlite 
     98sysvinit-tools 
     99tzdata 
     100udev 
     101upstart 
     102util-linux-ng 
     103vim-minimal 
     104yum 
     105yum-metadata-parser 
     106zlib 
  • etc/fedora-11.packages

    diff -ruN rinse-1.7.orig/etc/fedora-11.packages rinse-1.7/etc/fedora-11.packages
    old new  
     1audit-libs 
     2basesystem 
     3bash 
     4bzip2-libs 
     5chkconfig 
     6compat-db45 
     7ConsoleKit-libs 
     8coreutils 
     9cpio 
     10cracklib 
     11cracklib-dicts 
     12crontabs 
     13cyrus-sasl-lib 
     14db4 
     15dbus 
     16dbus-libs 
     17device-mapper 
     18device-mapper-libs 
     19dhclient 
     20dirmngr 
     21e2fsprogs 
     22e2fsprogs-libs 
     23elfutils-libelf 
     24ethtool 
     25expat 
     26fedora-release 
     27fedora-release-notes 
     28file 
     29file-libs 
     30filesystem 
     31findutils 
     32gamin 
     33gawk 
     34gdbm 
     35glib2 
     36glibc 
     37glibc-common 
     38gnupg2 
     39gpgme 
     40grep 
     41info 
     42initscripts 
     43iproute 
     44iputils 
     45keyutils-libs 
     46krb5-libs 
     47libacl 
     48libattr 
     49libcap 
     50libcurl 
     51libgcc 
     52libgcrypt 
     53libgpg-error 
     54libidn 
     55libksba 
     56libselinux 
     57libsepol 
     58libstdc++ 
     59libusb 
     60libvolume_id 
     61libxml2 
     62linux-atm-libs 
     63logrotate 
     64lua 
     65MAKEDEV 
     66mingetty 
     67module-init-tools 
     68ncurses 
     69ncurses-base 
     70ncurses-libs 
     71net-tools 
     72nspr 
     73nss 
     74openldap 
     75openssl 
     76pam 
     77passwd 
     78pcre 
     79pinentry 
     80popt 
     81procps 
     82psmisc 
     83pth 
     84pygpgme 
     85python 
     86python-iniparse 
     87python-libs 
     88python-urlgrabber 
     89readline 
     90rpm 
     91rpm-libs 
     92rpm-python 
     93rsyslog 
     94sed 
     95setup 
     96shadow-utils 
     97sqlite 
     98sysvinit-tools 
     99tzdata 
     100udev 
     101upstart 
     102util-linux-ng 
     103vim-minimal 
     104yum 
     105yum-metadata-parser 
     106zlib 
  • etc/fedora-12.packages

    diff -ruN rinse-1.7.orig/etc/fedora-12.packages rinse-1.7/etc/fedora-12.packages
    old new  
     1audit-libs 
     2basesystem 
     3bash 
     4bzip2-libs 
     5chkconfig 
     6ConsoleKit-libs 
     7coreutils 
     8cpio 
     9cracklib 
     10cracklib-dicts 
     11crontabs 
     12cyrus-sasl-lib 
     13db4 
     14dbus 
     15dbus-libs 
     16device-mapper 
     17device-mapper-libs 
     18dhclient 
     19dirmngr 
     20e2fsprogs 
     21e2fsprogs-libs 
     22elfutils-libelf 
     23ethtool 
     24expat 
     25fedora-release 
     26fedora-release-notes 
     27file 
     28file-libs 
     29filesystem 
     30findutils 
     31gamin 
     32gawk 
     33gdbm 
     34glib2 
     35glibc 
     36glibc-common 
     37gnupg2 
     38gpgme 
     39grep 
     40info 
     41initscripts 
     42iproute 
     43iputils 
     44keyutils-libs 
     45krb5-libs 
     46libacl 
     47libattr 
     48libcap 
     49libcurl 
     50libgcc 
     51libgcrypt 
     52libgpg-error 
     53libidn 
     54libksba 
     55libselinux 
     56libsepol 
     57libstdc++ 
     58libusb 
     59libxml2 
     60linux-atm-libs 
     61logrotate 
     62lua 
     63MAKEDEV 
     64mingetty 
     65module-init-tools 
     66ncurses 
     67ncurses-base 
     68ncurses-libs 
     69net-tools 
     70nspr 
     71nss 
     72openldap 
     73openssl 
     74pam 
     75passwd 
     76pcre 
     77pinentry 
     78popt 
     79procps 
     80psmisc 
     81pth 
     82pygpgme 
     83python 
     84python-iniparse 
     85python-libs 
     86python-urlgrabber 
     87readline 
     88rpm 
     89rpm-libs 
     90rpm-python 
     91rsyslog 
     92sed 
     93setup 
     94shadow-utils 
     95sqlite 
     96sysvinit-tools 
     97tzdata 
     98udev 
     99upstart 
     100util-linux-ng 
     101vim-minimal 
     102yum 
     103yum-metadata-parser 
     104zlib 
     105 
     106# New to v12 
     107xz-libs 
     108nss-util 
     109python-pycurl 
     110libssh2 
     111libcom_err 
     112nss-softokn-freebl 
     113nss-softokn 
     114# Required or else login failse 
     115libcap-ng 
  • etc/fedora-13.packages

    diff -ruN rinse-1.7.orig/etc/fedora-13.packages rinse-1.7/etc/fedora-13.packages
    old new  
     1audit-libs 
     2basesystem 
     3bash 
     4bzip2-libs 
     5chkconfig 
     6ConsoleKit-libs 
     7coreutils 
     8cpio 
     9cracklib 
     10cracklib-dicts 
     11crontabs 
     12cyrus-sasl-lib 
     13db4 
     14dbus 
     15dbus-libs 
     16device-mapper 
     17device-mapper-libs 
     18dhclient 
     19dirmngr 
     20e2fsprogs 
     21e2fsprogs-libs 
     22elfutils-libelf 
     23ethtool 
     24expat 
     25fedora-release 
     26fedora-release-notes 
     27file 
     28file-libs 
     29filesystem 
     30findutils 
     31gamin 
     32gawk 
     33gdbm 
     34glib2 
     35glibc 
     36glibc-common 
     37gnupg2 
     38gpgme 
     39grep 
     40info 
     41initscripts 
     42iproute 
     43iputils 
     44keyutils-libs 
     45krb5-libs 
     46libacl 
     47libattr 
     48libcap 
     49libcurl 
     50libgcc 
     51libgcrypt 
     52libgpg-error 
     53libidn 
     54libksba 
     55libselinux 
     56libsepol 
     57libstdc++ 
     58libusb 
     59libxml2 
     60linux-atm-libs 
     61logrotate 
     62lua 
     63MAKEDEV 
     64mingetty 
     65module-init-tools 
     66ncurses 
     67ncurses-base 
     68ncurses-libs 
     69net-tools 
     70nspr 
     71nss 
     72openldap 
     73openssl 
     74pam 
     75passwd 
     76pcre 
     77pinentry 
     78popt 
     79procps 
     80psmisc 
     81pth 
     82pygpgme 
     83python 
     84python-iniparse 
     85python-libs 
     86python-urlgrabber 
     87readline 
     88rpm 
     89rpm-libs 
     90rpm-python 
     91rsyslog 
     92sed 
     93setup 
     94shadow-utils 
     95sqlite 
     96sysvinit-tools 
     97tzdata 
     98udev 
     99upstart 
     100util-linux-ng 
     101vim-minimal 
     102yum 
     103yum-metadata-parser 
     104zlib 
     105 
     106# New to v12 
     107xz-libs 
     108nss-util 
     109python-pycurl 
     110libssh2 
     111libcom_err 
     112nss-softokn-freebl 
     113nss-softokn 
     114# Required or else login failse 
     115libcap-ng 
     116 
     117# New to v13 
     118c-ares 
  • etc/fedora-14.packages

    diff -ruN rinse-1.7.orig/etc/fedora-14.packages rinse-1.7/etc/fedora-14.packages
    old new  
     1audit-libs 
     2basesystem 
     3bash 
     4bzip2-libs 
     5chkconfig 
     6ConsoleKit-libs 
     7coreutils 
     8cpio 
     9cracklib 
     10cracklib-dicts 
     11crontabs 
     12cyrus-sasl-lib 
     13db4 
     14dbus 
     15dbus-libs 
     16device-mapper 
     17device-mapper-libs 
     18dhclient 
     19e2fsprogs 
     20e2fsprogs-libs 
     21elfutils-libelf 
     22expat 
     23fedora-release 
     24fedora-release-notes 
     25file 
     26file-libs 
     27filesystem 
     28findutils 
     29gamin 
     30gawk 
     31gdbm 
     32glib2 
     33glibc 
     34glibc-common 
     35gnupg2 
     36gpgme 
     37grep 
     38info 
     39initscripts 
     40iproute 
     41iputils 
     42keyutils-libs 
     43krb5-libs 
     44libacl 
     45libattr 
     46libcap 
     47libcurl 
     48libgcc 
     49libgcrypt 
     50libgpg-error 
     51libidn 
     52libselinux 
     53libsepol 
     54libstdc++ 
     55libusb 
     56libxml2 
     57linux-atm-libs 
     58logrotate 
     59lua 
     60mingetty 
     61module-init-tools 
     62ncurses 
     63ncurses-base 
     64ncurses-libs 
     65net-tools 
     66nspr 
     67nss 
     68openldap 
     69openssl 
     70pam 
     71passwd 
     72pcre 
     73pinentry 
     74popt 
     75procps 
     76psmisc 
     77pth 
     78pygpgme 
     79python 
     80python-iniparse 
     81python-libs 
     82python-urlgrabber 
     83readline 
     84rpm 
     85rpm-libs 
     86rpm-python 
     87rsyslog 
     88sed 
     89setup 
     90shadow-utils 
     91sqlite 
     92sysvinit-tools 
     93tzdata 
     94udev 
     95upstart 
     96util-linux-ng 
     97vim-minimal 
     98yum 
     99yum-metadata-parser 
     100zlib 
     101 
     102# New to v12 
     103xz-libs 
     104nss-util 
     105python-pycurl 
     106libssh2 
     107libcom_err 
     108nss-softokn-freebl 
     109nss-softokn 
     110# Required or else login failse 
     111libcap-ng 
     112 
     113# New to v13 
     114c-ares 
  • etc/fedora-7.packages

    diff -ruN rinse-1.7.orig/etc/fedora-7.packages rinse-1.7/etc/fedora-7.packages
    old new  
     1# 
     2#  Packages which we'll need to download for a minimal installation 
     3# of Fedora Core 7. 
     4# 
     5 
     6 
     7MAKEDEV 
     8SysVinit 
     9audit-libs 
     10basesystem 
     11bash 
     12beecrypt 
     13bzip2-libs 
     14chkconfig 
     15coreutils 
     16cracklib 
     17cracklib-dicts 
     18db4 
     19device-mapper 
     20e2fsprogs 
     21e2fsprogs-libs 
     22elfutils-libelf 
     23ethtool 
     24expat 
     25filesystem 
     26findutils 
     27gawk 
     28gdbm 
     29glib2 
     30glibc 
     31glibc-common 
     32grep 
     33info 
     34initscripts 
     35iproute 
     36iputils 
     37krb5-libs 
     38libacl 
     39libattr 
     40libcap 
     41libgcc 
     42libidn 
     43keyutils-libs 
     44libselinux 
     45libsepol 
     46libstdc++ 
     47libsysfs 
     48libtermcap 
     49libxml2 
     50libxml2-python 
     51mcstrans 
     52mingetty 
     53mktemp 
     54module-init-tools 
     55ncurses 
     56neon 
     57net-tools 
     58openssl 
     59pam 
     60pcre 
     61popt 
     62procps 
     63psmisc 
     64python 
     65python-elementtree 
     66python-libs 
     67python-numeric 
     68python-sqlite 
     69python-urlgrabber 
     70readline 
     71rpm 
     72rpm-libs 
     73rpm-python 
     74sed 
     75setup 
     76shadow-utils 
     77sqlite 
     78sysklogd 
     79termcap 
     80tzdata 
     81udev 
     82util-linux 
     83yum 
     84yum-metadata-parser 
     85zlib 
  • etc/fedora-8.packages

    diff -ruN rinse-1.7.orig/etc/fedora-8.packages rinse-1.7/etc/fedora-8.packages
    old new  
     1# 
     2#  Packages which we'll need to download for a minimal installation 
     3# of Fedora Core 8. 
     4# 
     5 
     6 
     7MAKEDEV 
     8SysVinit 
     9audit-libs 
     10basesystem 
     11bash 
     12beecrypt 
     13bzip2-libs 
     14chkconfig 
     15coreutils 
     16cracklib 
     17cracklib-dicts 
     18db4 
     19device-mapper 
     20e2fsprogs 
     21e2fsprogs-libs 
     22elfutils-libelf 
     23ethtool 
     24expat 
     25filesystem 
     26findutils 
     27gawk 
     28gdbm 
     29glib2 
     30glibc 
     31glibc-common 
     32grep 
     33info 
     34initscripts 
     35iproute 
     36iputils 
     37krb5-libs 
     38libacl 
     39libattr 
     40libcap 
     41libgcc 
     42libidn 
     43keyutils-libs 
     44libselinux 
     45libsepol 
     46libstdc++ 
     47libsysfs 
     48libtermcap 
     49libxml2 
     50libxml2-python 
     51mcstrans 
     52mingetty 
     53mktemp 
     54module-init-tools 
     55ncurses 
     56neon 
     57net-tools 
     58openssl 
     59pam 
     60pcre 
     61popt 
     62procps 
     63psmisc 
     64python 
     65python-elementtree 
     66python-libs 
     67python-numeric 
     68python-sqlite 
     69python-urlgrabber 
     70readline 
     71rpm 
     72rpm-libs 
     73rpm-python 
     74sed 
     75setup 
     76shadow-utils 
     77sqlite 
     78sysklogd 
     79termcap 
     80tzdata 
     81udev 
     82util-linux 
     83yum 
     84yum-metadata-parser 
     85zlib 
  • etc/fedora-9.packages

    diff -ruN rinse-1.7.orig/etc/fedora-9.packages rinse-1.7/etc/fedora-9.packages
    old new  
     1audit-libs 
     2basesystem 
     3bash 
     4bzip2-libs 
     5chkconfig 
     6ConsoleKit-libs 
     7coreutils 
     8cpio 
     9cracklib 
     10cracklib-dicts 
     11crontabs 
     12cyrus-sasl-lib 
     13db4 
     14dbus 
     15dbus-libs 
     16device-mapper 
     17device-mapper-libs 
     18dhclient 
     19dirmngr 
     20e2fsprogs 
     21e2fsprogs-libs 
     22elfutils-libelf 
     23ethtool 
     24event-compat-sysv 
     25expat 
     26fedora-release 
     27fedora-release-notes 
     28filesystem 
     29findutils 
     30gamin 
     31gawk 
     32gdbm 
     33glib2 
     34glibc 
     35glibc-common 
     36gnupg2 
     37gpgme 
     38grep 
     39info 
     40initscripts 
     41iproute 
     42iputils 
     43keyutils-libs 
     44krb5-libs 
     45libacl 
     46libattr 
     47libcap 
     48libcurl 
     49libgcc 
     50libgcrypt 
     51libgpg-error 
     52libidn 
     53libksba 
     54libselinux 
     55libsepol 
     56libstdc++ 
     57libsysfs 
     58libusb 
     59libvolume_id 
     60libxml2 
     61linux-atm-libs 
     62logrotate 
     63MAKEDEV 
     64mingetty 
     65module-init-tools 
     66ncurses 
     67ncurses-base 
     68ncurses-libs 
     69net-tools 
     70nspr 
     71nss 
     72openldap 
     73openssl 
     74pam 
     75pcre 
     76pinentry 
     77popt 
     78procps 
     79psmisc 
     80pth 
     81pygpgme 
     82python 
     83python-iniparse 
     84python-libs 
     85python-urlgrabber 
     86readline 
     87rpm 
     88rpm-libs 
     89rpm-python 
     90rsyslog 
     91sed 
     92setup 
     93shadow-utils 
     94sqlite 
     95sysvinit-tools 
     96tzdata 
     97udev 
     98upstart 
     99util-linux-ng 
     100vim-minimal 
     101yum 
     102yum-metadata-parser 
     103zlib 
  • etc/fedora-core-10.packages

    diff -ruN rinse-1.7.orig/etc/fedora-core-10.packages rinse-1.7/etc/fedora-core-10.packages
    old new  
    1 audit-libs 
    2 basesystem 
    3 bash 
    4 bzip2-libs 
    5 chkconfig 
    6 compat-db45 
    7 ConsoleKit-libs 
    8 coreutils 
    9 cpio 
    10 cracklib 
    11 cracklib-dicts 
    12 crontabs 
    13 cyrus-sasl-lib 
    14 db4 
    15 dbus 
    16 dbus-libs 
    17 device-mapper 
    18 device-mapper-libs 
    19 dhclient 
    20 dirmngr 
    21 e2fsprogs 
    22 e2fsprogs-libs 
    23 elfutils-libelf 
    24 ethtool 
    25 expat 
    26 fedora-release 
    27 fedora-release-notes 
    28 file 
    29 file-libs 
    30 filesystem 
    31 findutils 
    32 gamin 
    33 gawk 
    34 gdbm 
    35 glib2 
    36 glibc 
    37 glibc-common 
    38 gnupg2 
    39 gpgme 
    40 grep 
    41 info 
    42 initscripts 
    43 iproute 
    44 iputils 
    45 keyutils-libs 
    46 krb5-libs 
    47 libacl 
    48 libattr 
    49 libcap 
    50 libcurl 
    51 libgcc 
    52 libgcrypt 
    53 libgpg-error 
    54 libidn 
    55 libksba 
    56 libselinux 
    57 libsepol 
    58 libstdc++ 
    59 libusb 
    60 libvolume_id 
    61 libxml2 
    62 linux-atm-libs 
    63 logrotate 
    64 lua 
    65 MAKEDEV 
    66 mingetty 
    67 module-init-tools 
    68 ncurses 
    69 ncurses-base 
    70 ncurses-libs 
    71 net-tools 
    72 nspr 
    73 nss 
    74 openldap 
    75 openssl 
    76 pam 
    77 passwd 
    78 pcre 
    79 pinentry 
    80 popt 
    81 procps 
    82 psmisc 
    83 pth 
    84 pygpgme 
    85 python 
    86 python-iniparse 
    87 python-libs 
    88 python-urlgrabber 
    89 readline 
    90 rpm 
    91 rpm-libs 
    92 rpm-python 
    93 rsyslog 
    94 sed 
    95 setup 
    96 shadow-utils 
    97 sqlite 
    98 sysvinit-tools 
    99 tzdata 
    100 udev 
    101 upstart 
    102 util-linux-ng 
    103 vim-minimal 
    104 yum 
    105 yum-metadata-parser 
    106 zlib 
  • etc/fedora-core-7.packages

    diff -ruN rinse-1.7.orig/etc/fedora-core-7.packages rinse-1.7/etc/fedora-core-7.packages
    old new  
    1 # 
    2 #  Packages which we'll need to download for a minimal installation 
    3 # of Fedora Core 7. 
    4 # 
    5  
    6  
    7 MAKEDEV 
    8 SysVinit 
    9 audit-libs 
    10 basesystem 
    11 bash 
    12 beecrypt 
    13 bzip2-libs 
    14 chkconfig 
    15 coreutils 
    16 cracklib 
    17 cracklib-dicts 
    18 db4 
    19 device-mapper 
    20 e2fsprogs 
    21 e2fsprogs-libs 
    22 elfutils-libelf 
    23 ethtool 
    24 expat 
    25 filesystem 
    26 findutils 
    27 gawk 
    28 gdbm 
    29 glib2 
    30 glibc 
    31 glibc-common 
    32 grep 
    33 info 
    34 initscripts 
    35 iproute 
    36 iputils 
    37 krb5-libs 
    38 libacl 
    39 libattr 
    40 libcap 
    41 libgcc 
    42 libidn 
    43 keyutils-libs 
    44 libselinux 
    45 libsepol 
    46 libstdc++ 
    47 libsysfs 
    48 libtermcap 
    49 libxml2 
    50 libxml2-python 
    51 mcstrans 
    52 mingetty 
    53 mktemp 
    54 module-init-tools 
    55 ncurses 
    56 neon 
    57 net-tools 
    58 openssl 
    59 pam 
    60 pcre 
    61 popt 
    62 procps 
    63 psmisc 
    64 python 
    65 python-elementtree 
    66 python-libs 
    67 python-numeric 
    68 python-sqlite 
    69 python-urlgrabber 
    70 readline 
    71 rpm 
    72 rpm-libs 
    73 rpm-python 
    74 sed 
    75 setup 
    76 shadow-utils 
    77 sqlite 
    78 sysklogd 
    79 termcap 
    80 tzdata 
    81 udev 
    82 util-linux 
    83 yum 
    84 yum-metadata-parser 
    85 zlib 
  • etc/fedora-core-8.packages

    diff -ruN rinse-1.7.orig/etc/fedora-core-8.packages rinse-1.7/etc/fedora-core-8.packages
    old new  
    1 # 
    2 #  Packages which we'll need to download for a minimal installation 
    3 # of Fedora Core 8. 
    4 # 
    5  
    6  
    7 MAKEDEV 
    8 SysVinit 
    9 audit-libs 
    10 basesystem 
    11 bash 
    12 beecrypt 
    13 bzip2-libs 
    14 chkconfig 
    15 coreutils 
    16 cracklib 
    17 cracklib-dicts 
    18 db4 
    19 device-mapper 
    20 e2fsprogs 
    21 e2fsprogs-libs 
    22 elfutils-libelf 
    23 ethtool 
    24 expat 
    25 filesystem 
    26 findutils 
    27 gawk 
    28 gdbm 
    29 glib2 
    30 glibc 
    31 glibc-common 
    32 grep 
    33 info 
    34 initscripts 
    35 iproute 
    36 iputils 
    37 krb5-libs 
    38 libacl 
    39 libattr 
    40 libcap 
    41 libgcc 
    42 libidn 
    43 keyutils-libs 
    44 libselinux 
    45 libsepol 
    46 libstdc++ 
    47 libsysfs 
    48 libtermcap 
    49 libxml2 
    50 libxml2-python 
    51 mcstrans 
    52 mingetty 
    53 mktemp 
    54 module-init-tools 
    55 ncurses 
    56 neon 
    57 net-tools 
    58 openssl 
    59 pam 
    60 pcre 
    61 popt 
    62 procps 
    63 psmisc 
    64 python 
    65 python-elementtree 
    66 python-libs 
    67 python-numeric 
    68 python-sqlite 
    69 python-urlgrabber 
    70 readline 
    71 rpm 
    72 rpm-libs 
    73 rpm-python 
    74 sed 
    75 setup 
    76 shadow-utils 
    77 sqlite 
    78 sysklogd 
    79 termcap 
    80 tzdata 
    81 udev 
    82 util-linux 
    83 yum 
    84 yum-metadata-parser 
    85 zlib 
  • etc/fedora-core-9.packages

    diff -ruN rinse-1.7.orig/etc/fedora-core-9.packages rinse-1.7/etc/fedora-core-9.packages
    old new  
    1 audit-libs 
    2 basesystem 
    3 bash 
    4 bzip2-libs 
    5 chkconfig 
    6 ConsoleKit-libs 
    7 coreutils 
    8 cpio 
    9 cracklib 
    10 cracklib-dicts 
    11 crontabs 
    12 cyrus-sasl-lib 
    13 db4 
    14 dbus 
    15 dbus-libs 
    16 device-mapper 
    17 device-mapper-libs 
    18 dhclient 
    19 dirmngr 
    20 e2fsprogs 
    21 e2fsprogs-libs 
    22 elfutils-libelf 
    23 ethtool 
    24 event-compat-sysv 
    25 expat 
    26 fedora-release 
    27 fedora-release-notes 
    28 filesystem 
    29 findutils 
    30 gamin 
    31 gawk 
    32 gdbm 
    33 glib2 
    34 glibc 
    35 glibc-common 
    36 gnupg2 
    37 gpgme 
    38 grep 
    39 info 
    40 initscripts 
    41 iproute 
    42 iputils 
    43 keyutils-libs 
    44 krb5-libs 
    45 libacl 
    46 libattr 
    47 libcap 
    48 libcurl 
    49 libgcc 
    50 libgcrypt 
    51 libgpg-error 
    52 libidn 
    53 libksba 
    54 libselinux 
    55 libsepol 
    56 libstdc++ 
    57 libsysfs 
    58 libusb 
    59 libvolume_id 
    60 libxml2 
    61 linux-atm-libs 
    62 logrotate 
    63 MAKEDEV 
    64 mingetty 
    65 module-init-tools 
    66 ncurses 
    67 ncurses-base 
    68 ncurses-libs 
    69 net-tools 
    70 nspr 
    71 nss 
    72 openldap 
    73 openssl 
    74 pam 
    75 pcre 
    76 pinentry 
    77 popt 
    78 procps 
    79 psmisc 
    80 pth 
    81 pygpgme 
    82 python 
    83 python-iniparse 
    84 python-libs 
    85 python-urlgrabber 
    86 readline 
    87 rpm 
    88 rpm-libs 
    89 rpm-python 
    90 rsyslog 
    91 sed 
    92 setup 
    93 shadow-utils 
    94 sqlite 
    95 sysvinit-tools 
    96 tzdata 
    97 udev 
    98 upstart 
    99 util-linux-ng 
    100 vim-minimal 
    101 yum 
    102 yum-metadata-parser 
    103 zlib 
  • etc/opensuse-11.0.packages

    diff -ruN rinse-1.7.orig/etc/opensuse-11.0.packages rinse-1.7/etc/opensuse-11.0.packages
    old new  
    7272libzio 
    7373libzypp 
    7474login 
     75makedev 
    7576mingetty 
    7677module-init-tools 
    7778ncurses-utils 
  • etc/opensuse-11.1.packages

    diff -ruN rinse-1.7.orig/etc/opensuse-11.1.packages rinse-1.7/etc/opensuse-11.1.packages
    old new  
    7878libzio 
    7979libzypp 
    8080login 
     81makedev 
    8182mingetty 
    8283module-init-tools 
    8384ncurses-utils 
  • etc/opensuse-11.2.packages

    diff -ruN rinse-1.7.orig/etc/opensuse-11.2.packages rinse-1.7/etc/opensuse-11.2.packages
    old new  
     1# 
     2#  Packages which we'll need to download for a minimal installation 
     3# OpenSuSE 11.1 
     4# 
     5 
     6 
     7aaa_base 
     8audit-libs 
     9bash 
     10boost-license 
     11bzip2 
     12ConsoleKit 
     13coreutils 
     14coreutils-lang 
     15cpio 
     16cpio-lang 
     17cracklib 
     18cracklib-dict-small 
     19cyrus-sasl 
     20dbus-1 
     21dbus-1-glib 
     22device-mapper 
     23diffutils 
     24dirmngr 
     25e2fsprogs 
     26ethtool 
     27expat 
     28filesystem 
     29fillup 
     30findutils 
     31gawk 
     32gdbm 
     33glib2 
     34glib2-lang 
     35glib2-branding-upstream 
     36glibc 
     37gpg2 
     38gpg2-lang 
     39grep 
     40gzip 
     41hal 
     42info 
     43insserv 
     44keyutils-libs 
     45krb5 
     46libacl 
     47libattr 
     48libboost_signals1_36_0 
     49libbz2-1 
     50libcom_err2 
     51libcurl4 
     52libdb-4_5 
     53libexpat1 
     54libgcc43 
     55libgcrypt11 
     56libglib-2_0-0 
     57libgobject-2_0-0 
     58libgthread-2_0-0 
     59libgpg-error0 
     60libidn 
     61libksba 
     62libldap-2_4-2 
     63libncurses5 
     64libnscd 
     65libopenssl0_9_8 
     66libreadline5 
     67libreiserfs 
     68libselinux1 
     69libsepol1 
     70libsmbios2 
     71libstdc++43 
     72libusb-0_1-4 
     73libuuid1 
     74libvolume_id1 
     75libxcrypt 
     76libxml2 
     77libxml2-python 
     78libzio 
     79libzypp 
     80login 
     81makedev 
     82mingetty 
     83module-init-tools 
     84ncurses-utils 
     85neon 
     86net-tools 
     87openSUSE-release 
     88openSUSE-release-ftp 
     89openslp 
     90pam 
     91pam-config 
     92pam-modules 
     93parted 
     94pciutils 
     95pcre 
     96perl-base 
     97permissions 
     98pinentry 
     99pm-utils 
     100pmtools 
     101PolicyKit 
     102popt 
     103procps 
     104psmisc 
     105pth 
     106pwdutils 
     107python 
     108python-urlgrabber 
     109rpm 
     110rpm-python 
     111satsolver-tools 
     112sed 
     113setserial 
     114sysvinit 
     115termcap 
     116terminfo-base 
     117udev 
     118util-linux 
     119uuid-runtime 
     120zlib 
     121zypper 
     122 
     123# New to 11.2 
     124libreadline6 
     125libaugeas0 
     126libstdc++44 
     127libgcc44 
     128liblua5_1 
     129libpopt0 
     130libelf1 
     131liblzma0 
  • etc/opensuse-11.3.packages

    diff -ruN rinse-1.7.orig/etc/opensuse-11.3.packages rinse-1.7/etc/opensuse-11.3.packages
    old new  
     1# 
     2#  Packages which we'll need to download for a minimal installation 
     3# OpenSuSE 11.1 
     4# 
     5 
     6 
     7aaa_base 
     8audit-libs 
     9bash 
     10boost-license 
     11bzip2 
     12ConsoleKit 
     13coreutils 
     14coreutils-lang 
     15cpio 
     16cpio-lang 
     17cracklib 
     18cracklib-dict-small 
     19cyrus-sasl 
     20dbus-1 
     21dbus-1-glib 
     22device-mapper 
     23diffutils 
     24dirmngr 
     25e2fsprogs 
     26ethtool 
     27expat 
     28filesystem 
     29fillup 
     30findutils 
     31gawk 
     32gdbm 
     33glib2 
     34glib2-lang 
     35glib2-branding-upstream 
     36glibc 
     37gpg2 
     38gpg2-lang 
     39grep 
     40gzip 
     41hal 
     42info 
     43insserv 
     44keyutils-libs 
     45krb5 
     46libacl 
     47libattr 
     48libboost_signals1_36_0 
     49libbz2-1 
     50libcom_err2 
     51libcurl4 
     52libdb-4_5 
     53libexpat1 
     54libgcc43 
     55libgcrypt11 
     56libglib-2_0-0 
     57libgobject-2_0-0 
     58libgthread-2_0-0 
     59libgpg-error0 
     60libidn 
     61libksba 
     62libldap-2_4-2 
     63libncurses5 
     64libnscd 
     65libopenssl0_9_8 
     66libreadline5 
     67libreiserfs 
     68libselinux1 
     69libsepol1 
     70libsmbios2 
     71libstdc++43 
     72libusb-0_1-4 
     73libuuid1 
     74libvolume_id1 
     75libxcrypt 
     76libxml2 
     77libxml2-python 
     78libzio 
     79libzypp 
     80login 
     81makedev 
     82mingetty 
     83module-init-tools 
     84ncurses-utils 
     85neon 
     86net-tools 
     87openSUSE-release 
     88openSUSE-release-ftp 
     89openslp 
     90pam 
     91pam-config 
     92pam-modules 
     93parted 
     94pciutils 
     95pcre 
     96perl-base 
     97permissions 
     98pinentry 
     99pm-utils 
     100pmtools 
     101popt 
     102procps 
     103psmisc 
     104pth 
     105pwdutils 
     106python 
     107python-urlgrabber 
     108rpm 
     109rpm-python 
     110satsolver-tools 
     111sed 
     112setserial 
     113sysvinit 
     114termcap 
     115terminfo-base 
     116udev 
     117util-linux 
     118uuid-runtime 
     119zlib 
     120zypper 
     121 
     122# New to 11.2 
     123libreadline6 
     124libaugeas0 
     125liblua5_1 
     126libpopt0 
     127libelf1 
     128liblzma0 
     129 
     130# New to 11.3 
     131libstdc++45 
     132libgcc45 
     133libopenssl1_0_0 
     134libassuan0 
     135libssh2-1 
     136libudev0 
  • etc/rinse.conf

    diff -ruN rinse-1.7.orig/etc/rinse.conf rinse-1.7/etc/rinse.conf
    old new  
    1111 
    1212 
    1313[centos-4] 
    14 mirror       = http://mirror.bytemark.co.uk/centos/4/os/i386/CentOS/RPMS/ 
    15 mirror.amd64 = http://mirror.bytemark.co.uk/centos/4/os/x86_64/CentOS/RPMS/ 
     14mirror       = http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/ 
     15mirror.amd64 = http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/ 
    1616 
    1717 
    1818[centos-5] 
    19 mirror       = http://mirror.bytemark.co.uk/centos/5/os/i386/CentOS/ 
    20 mirror.amd64 = http://mirror.bytemark.co.uk/centos/5/os/x86_64/CentOS/ 
     19mirror       = http://mirror.centos.org/centos/5/os/i386/CentOS/ 
     20mirror.amd64 = http://mirror.centos.org/centos/5/os/x86_64/CentOS/ 
    2121 
    2222 
    2323[fedora-core-4] 
     
    3535mirror.amd64 = http://ftp.heanet.ie/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/ 
    3636 
    3737 
    38 [fedora-core-7] 
    39 mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/7/Fedora/i386/os/Fedora/ 
    40 mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/7/Fedora/x86_64/os/Fedora/ 
     38[fedora-7] 
     39mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/7/Fedora/i386/os/Fedora/ 
     40mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/7/Fedora/x86_64/os/Fedora/ 
    4141 
    4242 
    43 [fedora-core-8] 
    44 mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/8/Fedora/i386/os/Packages/ 
    45 mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/8/Fedora/x86_64/os/Packages/ 
     43[fedora-8] 
     44mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Fedora/i386/os/Packages/ 
     45mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Fedora/x86_64/os/Packages/ 
    4646 
    4747 
     48[fedora-9] 
     49mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/i386/os/Packages/ 
     50mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/x86_64/os/Packages/ 
    4851 
    49 [fedora-core-9] 
    50 mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/9/Fedora/i386/os/Packages/ 
    51 mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/9/Fedora/x86_64/os/Packages/ 
    5252 
     53[fedora-10] 
     54mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Fedora/i386/os/Packages/ 
     55mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Fedora/x86_64/os/Packages/ 
    5356 
    54 [fedora-core-10] 
    55 mirror       = http://mirrors.vexs.net/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/ 
    56 mirror.amd64 = http://mirrors.vexs.net/pub/fedora/linux/releases/10/Fedora/x86_64/os/Packages/ 
     57 
     58[fedora-12] 
     59mirror       = http://mirrors.kernel.org/fedora/releases/12/Fedora/i386/os/Packages/ 
     60mirror.amd64 = http://mirrors.kernel.org/fedora/releases/12/Fedora/x86_64/os/Packages/ 
     61 
     62 
     63[fedora-13] 
     64mirror       = http://mirrors.kernel.org/fedora/releases/13/Fedora/i386/os/Packages/ 
     65mirror.amd64 = http://mirrors.kernel.org/fedora/releases/13/Fedora/x86_64/os/Packages/ 
     66 
     67[fedora-14] 
     68mirror       = http://mirrors.kernel.org/fedora/releases/14/Fedora/i386/os/Packages/ 
     69mirror.amd64 = http://mirrors.kernel.org/fedora/releases/14/Fedora/x86_64/os/Packages/ 
    5770 
    5871 
    5972[opensuse-10.1] 
     
    7285 
    7386 
    7487[opensuse-11.0] 
    75 mirror       = http://download.opensuse.org/distribution/11.0/repo/oss/suse/i686/ 
     88mirror       = http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/ 
    7689mirror.amd64 = http://download.opensuse.org/distribution/11.0/repo/oss/suse/x86_64/ 
    7790 
    7891 
    7992[opensuse-11.1] 
    80 mirror       = http://download.opensuse.org/distribution/11.1/repo/oss/suse/i686/ 
     93mirror       = http://download.opensuse.org/distribution/11.1/repo/oss/suse/i586/ 
    8194mirror.amd64 = http://download.opensuse.org/distribution/11.1/repo/oss/suse/x86_64/ 
    8295 
     96 
     97[opensuse-11.2] 
     98mirror       = http://download.opensuse.org/distribution/11.2/repo/oss/suse/i586/ 
     99mirror.amd64 = http://download.opensuse.org/distribution/11.2/repo/oss/suse/x86_64/ 
     100 
     101[opensuse-11.3] 
     102mirror       = http://download.opensuse.org/distribution/11.3/repo/oss/suse/i586/ 
     103mirror.amd64 = http://download.opensuse.org/distribution/11.3/repo/oss/suse/x86_64/ 
  • scripts/centos-5/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/centos-5/post-install.sh rinse-1.7/scripts/centos-5/post-install.sh
    old new  
    2929done 
    3030 
    3131# 
     32#  Record arch, if present. 
     33# 
     34if [ -d $prefix/etc/rpm ]; then 
     35 
     36    # 
     37    #  If i386 then record this 
     38    # 
     39    if [ "$arch" = "i386" ]; then 
     40        echo "i686-centos-linux-gnu" >> $prefix/etc/rpm/platform 
     41    fi 
     42fi 
     43 
     44# 
    3245#  4.  Run "yum install yum". 
    3346# 
    3447echo "  Mounting /proc" 
  • scripts/fedora-10/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-10/post-install.sh rinse-1.7/scripts/fedora-10/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6 
     7 
     8prefix=$1 
     9 
     10if [ ! -d "${prefix}" ]; then 
     11  echo "Serious error - the named directory doesn't exist." 
     12  exit 
     13fi 
     14 
     15 
     16 
     17# 
     18#  1.  Make sure there is a resolv.conf file present, such that 
     19#     DNS lookups succeed. 
     20# 
     21echo "  Creating resolv.conf" 
     22if [ ! -d "${prefix}/etc/" ]; then 
     23    mkdir -p "${prefix}/etc/" 
     24fi 
     25cp /etc/resolv.conf "${prefix}/etc/" 
     26 
     27 
     28# 
     29#  2.  Copy the cached .RPM files into the yum directory, so that 
     30#     yum doesn't need to make them again. 
     31# 
     32echo "  Setting up YUM cache" 
     33if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
     34    mkdir -p ${prefix}/var/cache/yum/core/packages/ 
     35fi 
     36if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
     37    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
     38fi 
     39 
     40for i in ${prefix}/*.rpm ; do 
     41    cp $i ${prefix}/var/cache/yum/core/packages/ 
     42    cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
     43done 
     44 
     45 
     46 
     47# 
     48#  3.  Ensure that Yum has a working configuration file. 
     49# 
     50arch=i386 
     51if [ $ARCH = "amd64" ] ; then 
     52    arch=x86_64 
     53fi 
     54 
     55echo "  Creating yum.conf" 
     56cat > ${prefix}/etc/yum.conf <<EOF 
     57[main] 
     58cachedir=/var/cache/yum 
     59debuglevel=1 
     60reposdir=/dev/null 
     61logfile=/var/log/yum.log 
     62retries=20 
     63obsoletes=1 
     64gpgcheck=0 
     65assumeyes=1 
     66 
     67# repos 
     68 
     69[core] 
     70name=core 
     71baseurl=$mirror 
     72 
     73EOF 
     74 
     75 
     76# 
     77#  4.  Run "yum install yum". 
     78# 
     79echo "  Mounting /proc" 
     80if [ ! -d "${prefix}/proc" ]; then 
     81    mkdir -p "${prefix}/proc" 
     82fi 
     83mount -o bind /proc ${prefix}/proc 
     84 
     85echo "  Priming the yum cache" 
     86if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
     87    mkdir -p ${prefix}/var/cache/yum/core/packages 
     88fi 
     89cp /var/cache/rinse/fedora-10.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
     90 
     91echo "  Bootstrapping yum" 
     92chroot ${prefix} /sbin/ldconfig 
     93chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
     94chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
     95chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
     96 
     97 
     98# 
     99#  5.  Clean up 
     100# 
     101echo "  Cleaning up" 
     102chroot ${prefix} /usr/bin/yum clean all 
     103 
     104umount ${prefix}/proc 
     105 
     106 
     107# 
     108#  6.  Remove the .rpm files from the prefix root. 
     109# 
     110echo "  Final tidy..." 
     111for i in ${prefix}/*.rpm; do 
     112    rm -f $i 
     113done 
     114find ${prefix} -name '*.rpmorig' -delete 
     115find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-11/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-11/post-install.sh rinse-1.7/scripts/fedora-11/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6 
     7 
     8prefix=$1 
     9 
     10if [ ! -d "${prefix}" ]; then 
     11  echo "Serious error - the named directory doesn't exist." 
     12  exit 
     13fi 
     14 
     15 
     16 
     17# 
     18#  1.  Make sure there is a resolv.conf file present, such that 
     19#     DNS lookups succeed. 
     20# 
     21echo "  Creating resolv.conf" 
     22if [ ! -d "${prefix}/etc/" ]; then 
     23    mkdir -p "${prefix}/etc/" 
     24fi 
     25cp /etc/resolv.conf "${prefix}/etc/" 
     26 
     27 
     28# 
     29#  2.  Copy the cached .RPM files into the yum directory, so that 
     30#     yum doesn't need to make them again. 
     31# 
     32echo "  Setting up YUM cache" 
     33if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
     34    mkdir -p ${prefix}/var/cache/yum/core/packages/ 
     35fi 
     36if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
     37    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
     38fi 
     39 
     40for i in ${prefix}/*.rpm ; do 
     41    cp $i ${prefix}/var/cache/yum/core/packages/ 
     42    cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
     43done 
     44 
     45 
     46 
     47# 
     48#  3.  Ensure that Yum has a working configuration file. 
     49# 
     50arch=i386 
     51if [ $ARCH = "amd64" ] ; then 
     52    arch=x86_64 
     53fi 
     54 
     55echo "  Creating yum.conf" 
     56cat > ${prefix}/etc/yum.conf <<EOF 
     57[main] 
     58cachedir=/var/cache/yum 
     59debuglevel=1 
     60reposdir=/dev/null 
     61logfile=/var/log/yum.log 
     62retries=20 
     63obsoletes=1 
     64gpgcheck=0 
     65assumeyes=1 
     66 
     67# repos 
     68 
     69[core] 
     70name=core 
     71baseurl=$mirror 
     72 
     73EOF 
     74 
     75 
     76# 
     77#  4.  Run "yum install yum". 
     78# 
     79echo "  Mounting /proc" 
     80if [ ! -d "${prefix}/proc" ]; then 
     81    mkdir -p "${prefix}/proc" 
     82fi 
     83mount -o bind /proc ${prefix}/proc 
     84 
     85echo "  Priming the yum cache" 
     86if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
     87    mkdir -p ${prefix}/var/cache/yum/core/packages 
     88fi 
     89cp /var/cache/rinse/fedora-11.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
     90 
     91echo "  Bootstrapping yum" 
     92chroot ${prefix} /sbin/ldconfig 
     93chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
     94chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
     95chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
     96 
     97 
     98# 
     99#  5.  Clean up 
     100# 
     101echo "  Cleaning up" 
     102chroot ${prefix} /usr/bin/yum clean all 
     103 
     104umount ${prefix}/proc 
     105 
     106 
     107# 
     108#  6.  Remove the .rpm files from the prefix root. 
     109# 
     110echo "  Final tidy..." 
     111for i in ${prefix}/*.rpm; do 
     112    rm -f $i 
     113done 
     114find ${prefix} -name '*.rpmorig' -delete 
     115find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-12/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-12/post-install.sh rinse-1.7/scripts/fedora-12/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6 
     7 
     8prefix=$1 
     9 
     10if [ ! -d "${prefix}" ]; then 
     11  echo "Serious error - the named directory doesn't exist." 
     12  exit 
     13fi 
     14 
     15 
     16 
     17# 
     18#  1.  Make sure there is a resolv.conf file present, such that 
     19#     DNS lookups succeed. 
     20# 
     21echo "  Creating resolv.conf" 
     22if [ ! -d "${prefix}/etc/" ]; then 
     23    mkdir -p "${prefix}/etc/" 
     24fi 
     25cp /etc/resolv.conf "${prefix}/etc/" 
     26 
     27 
     28# 
     29#  2.  Copy the cached .RPM files into the yum directory, so that 
     30#     yum doesn't need to make them again. 
     31# 
     32echo "  Setting up YUM cache" 
     33if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
     34    mkdir -p ${prefix}/var/cache/yum/core/packages/ 
     35fi 
     36if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
     37    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
     38fi 
     39 
     40for i in ${prefix}/*.rpm ; do 
     41    cp $i ${prefix}/var/cache/yum/core/packages/ 
     42    cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
     43done 
     44 
     45 
     46 
     47# 
     48#  3.  Ensure that Yum has a working configuration file. 
     49# 
     50arch=i386 
     51if [ $ARCH = "amd64" ] ; then 
     52    arch=x86_64 
     53fi 
     54 
     55# A correct mirror URL does not contain /Packages on the end 
     56mirror=`dirname $mirror` 
     57 
     58echo "  Creating initial yum.conf" 
     59cat > ${prefix}/etc/yum.conf <<EOF 
     60[main] 
     61reposdir=/dev/null 
     62logfile=/var/log/yum.log 
     63 
     64[core] 
     65name=core 
     66baseurl=$mirror 
     67EOF 
     68 
     69 
     70# 
     71#  4.  Run "yum install yum". 
     72# 
     73echo "  Mounting /proc" 
     74if [ ! -d "${prefix}/proc" ]; then 
     75    mkdir -p "${prefix}/proc" 
     76fi 
     77mount -o bind /proc ${prefix}/proc 
     78 
     79echo "  Priming the yum cache" 
     80if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
     81    mkdir -p ${prefix}/var/cache/yum/core/packages 
     82fi 
     83cp /var/cache/rinse/fedora-12.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
     84 
     85echo "  Bootstrapping yum" 
     86chroot ${prefix} /sbin/ldconfig 
     87chroot ${prefix} /sbin/MAKEDEV urandom 
     88chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
     89chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
     90chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
     91 
     92# Can use regular repositories now 
     93echo "  Creating final yum.conf" 
     94cat > ${prefix}/etc/yum.conf <<EOF 
     95[main] 
     96logfile=/var/log/yum.log 
     97gpgcheck=1 
     98 
     99# PUT YOUR REPOS HERE OR IN separate files named file.repo 
     100# in /etc/yum.repos.d 
     101EOF 
     102 
     103 
     104# 
     105#  5.  Clean up 
     106# 
     107echo "  Cleaning up" 
     108chroot ${prefix} /usr/bin/yum clean all 
     109 
     110umount ${prefix}/proc 
     111 
     112 
     113# 
     114#  6.  Remove the .rpm files from the prefix root. 
     115# 
     116echo "  Final tidy..." 
     117for i in ${prefix}/*.rpm; do 
     118    rm -f $i 
     119done 
     120find ${prefix} -name '*.rpmorig' -delete 
     121find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-13/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-13/post-install.sh rinse-1.7/scripts/fedora-13/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6 
     7 
     8prefix=$1 
     9 
     10if [ ! -d "${prefix}" ]; then 
     11  echo "Serious error - the named directory doesn't exist." 
     12  exit 
     13fi 
     14 
     15 
     16 
     17# 
     18#  1.  Make sure there is a resolv.conf file present, such that 
     19#     DNS lookups succeed. 
     20# 
     21echo "  Creating resolv.conf" 
     22if [ ! -d "${prefix}/etc/" ]; then 
     23    mkdir -p "${prefix}/etc/" 
     24fi 
     25cp /etc/resolv.conf "${prefix}/etc/" 
     26 
     27 
     28# 
     29#  2.  Copy the cached .RPM files into the yum directory, so that 
     30#     yum doesn't need to make them again. 
     31# 
     32echo "  Setting up YUM cache" 
     33if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
     34    mkdir -p ${prefix}/var/cache/yum/core/packages/ 
     35fi 
     36if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
     37    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
     38fi 
     39 
     40for i in ${prefix}/*.rpm ; do 
     41    cp $i ${prefix}/var/cache/yum/core/packages/ 
     42    cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
     43done 
     44 
     45 
     46 
     47# 
     48#  3.  Ensure that Yum has a working configuration file. 
     49# 
     50arch=i386 
     51if [ $ARCH = "amd64" ] ; then 
     52    arch=x86_64 
     53fi 
     54 
     55# A correct mirror URL does not contain /Packages on the end 
     56mirror=`dirname $mirror` 
     57 
     58echo "  Creating initial yum.conf" 
     59cat > ${prefix}/etc/yum.conf <<EOF 
     60[main] 
     61reposdir=/dev/null 
     62logfile=/var/log/yum.log 
     63 
     64[core] 
     65name=core 
     66baseurl=$mirror 
     67EOF 
     68 
     69 
     70# 
     71#  4.  Run "yum install yum". 
     72# 
     73echo "  Mounting /proc" 
     74if [ ! -d "${prefix}/proc" ]; then 
     75    mkdir -p "${prefix}/proc" 
     76fi 
     77mount -o bind /proc ${prefix}/proc 
     78 
     79echo "  Priming the yum cache" 
     80if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
     81    mkdir -p ${prefix}/var/cache/yum/core/packages 
     82fi 
     83cp /var/cache/rinse/fedora-13.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
     84 
     85echo "  Bootstrapping yum" 
     86chroot ${prefix} /sbin/ldconfig 
     87chroot ${prefix} /sbin/MAKEDEV urandom 
     88chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
     89chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
     90chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
     91 
     92# Can use regular repositories now 
     93echo "  Creating final yum.conf" 
     94cat > ${prefix}/etc/yum.conf <<EOF 
     95[main] 
     96logfile=/var/log/yum.log 
     97gpgcheck=1 
     98 
     99# PUT YOUR REPOS HERE OR IN separate files named file.repo 
     100# in /etc/yum.repos.d 
     101EOF 
     102 
     103 
     104# 
     105#  5.  Clean up 
     106# 
     107echo "  Cleaning up" 
     108chroot ${prefix} /usr/bin/yum clean all 
     109 
     110umount ${prefix}/proc 
     111 
     112 
     113# 
     114#  6.  Remove the .rpm files from the prefix root. 
     115# 
     116echo "  Final tidy..." 
     117for i in ${prefix}/*.rpm; do 
     118    rm -f $i 
     119done 
     120find ${prefix} -name '*.rpmorig' -delete 
     121find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-14/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-14/post-install.sh rinse-1.7/scripts/fedora-14/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6 
     7 
     8prefix=$1 
     9 
     10if [ ! -d "${prefix}" ]; then 
     11  echo "Serious error - the named directory doesn't exist." 
     12  exit 
     13fi 
     14 
     15 
     16 
     17# 
     18#  1.  Make sure there is a resolv.conf file present, such that 
     19#     DNS lookups succeed. 
     20# 
     21echo "  Creating resolv.conf" 
     22if [ ! -d "${prefix}/etc/" ]; then 
     23    mkdir -p "${prefix}/etc/" 
     24fi 
     25cp /etc/resolv.conf "${prefix}/etc/" 
     26 
     27 
     28# 
     29#  2.  Copy the cached .RPM files into the yum directory, so that 
     30#     yum doesn't need to make them again. 
     31# 
     32echo "  Setting up YUM cache" 
     33if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
     34    mkdir -p ${prefix}/var/cache/yum/core/packages/ 
     35fi 
     36if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
     37    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
     38fi 
     39 
     40for i in ${prefix}/*.rpm ; do 
     41    cp $i ${prefix}/var/cache/yum/core/packages/ 
     42    cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
     43done 
     44 
     45 
     46 
     47# 
     48#  3.  Ensure that Yum has a working configuration file. 
     49# 
     50arch=i386 
     51if [ $ARCH = "amd64" ] ; then 
     52    arch=x86_64 
     53fi 
     54 
     55# A correct mirror URL does not contain /Packages on the end 
     56mirror=`dirname $mirror` 
     57 
     58echo "  Creating initial yum.conf" 
     59cat > ${prefix}/etc/yum.conf <<EOF 
     60[main] 
     61reposdir=/dev/null 
     62logfile=/var/log/yum.log 
     63 
     64[core] 
     65name=core 
     66baseurl=$mirror 
     67EOF 
     68 
     69 
     70# 
     71#  4.  Run "yum install yum". 
     72# 
     73echo "  Mounting /proc" 
     74if [ ! -d "${prefix}/proc" ]; then 
     75    mkdir -p "${prefix}/proc" 
     76fi 
     77mount -o bind /proc ${prefix}/proc 
     78 
     79echo "  Priming the yum cache" 
     80if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
     81    mkdir -p ${prefix}/var/cache/yum/core/packages 
     82fi 
     83cp /var/cache/rinse/fedora-14.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
     84 
     85echo "  Bootstrapping yum" 
     86chroot ${prefix} /sbin/ldconfig 
     87chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
     88chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
     89chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
     90 
     91# Can use regular repositories now 
     92echo "  Creating final yum.conf" 
     93cat > ${prefix}/etc/yum.conf <<EOF 
     94[main] 
     95logfile=/var/log/yum.log 
     96gpgcheck=1 
     97 
     98# PUT YOUR REPOS HERE OR IN separate files named file.repo 
     99# in /etc/yum.repos.d 
     100EOF 
     101 
     102 
     103# 
     104#  5.  Clean up 
     105# 
     106echo "  Cleaning up" 
     107chroot ${prefix} /usr/bin/yum clean all 
     108 
     109umount ${prefix}/proc 
     110 
     111 
     112# 
     113#  6.  Remove the .rpm files from the prefix root. 
     114# 
     115echo "  Final tidy..." 
     116for i in ${prefix}/*.rpm; do 
     117    rm -f $i 
     118done 
     119find ${prefix} -name '*.rpmorig' -delete 
     120find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-7/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-7/post-install.sh rinse-1.7/scripts/fedora-7/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6 
     7 
     8prefix=$1 
     9 
     10if [ ! -d "${prefix}" ]; then 
     11  echo "Serious error - the named directory doesn't exist." 
     12  exit 
     13fi 
     14 
     15 
     16 
     17# 
     18#  1.  Make sure there is a resolv.conf file present, such that 
     19#     DNS lookups succeed. 
     20# 
     21echo "  Creating resolv.conf" 
     22if [ ! -d "${prefix}/etc/" ]; then 
     23    mkdir -p "${prefix}/etc/" 
     24fi 
     25cp /etc/resolv.conf "${prefix}/etc/" 
     26 
     27 
     28# 
     29#  2.  Copy the cached .RPM files into the yum directory, so that 
     30#     yum doesn't need to make them again. 
     31# 
     32echo "  Setting up YUM cache" 
     33if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
     34    mkdir -p ${prefix}/var/cache/yum/core/packages/ 
     35fi 
     36if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
     37    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
     38fi 
     39 
     40for i in ${prefix}/*.rpm ; do 
     41    cp $i ${prefix}/var/cache/yum/core/packages/ 
     42    cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
     43done 
     44 
     45 
     46 
     47# 
     48#  3.  Ensure that Yum has a working configuration file. 
     49# 
     50arch=i386 
     51if [ $ARCH = "amd64" ] ; then 
     52    arch=x86_64 
     53fi 
     54 
     55echo "  Creating yum.conf" 
     56cat > ${prefix}/etc/yum.conf <<EOF 
     57[main] 
     58cachedir=/var/cache/yum 
     59debuglevel=1 
     60reposdir=/dev/null 
     61logfile=/var/log/yum.log 
     62retries=20 
     63obsoletes=1 
     64gpgcheck=0 
     65assumeyes=1 
     66 
     67# repos 
     68 
     69[core] 
     70name=core 
     71baseurl=$mirror 
     72 
     73[updates-released] 
     74name=updates 
     75baseurl=$mirror 
     76EOF 
     77 
     78 
     79# 
     80#  4.  Run "yum install yum". 
     81# 
     82echo "  Mounting /proc" 
     83if [ ! -d "${prefix}/proc" ]; then 
     84    mkdir -p "${prefix}/proc" 
     85fi 
     86mount -o bind /proc ${prefix}/proc 
     87 
     88echo "  Bootstrapping yum" 
     89chroot ${prefix} /sbin/ldconfig 
     90chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
     91chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
     92chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
     93 
     94 
     95# 
     96#  5.  Clean up 
     97# 
     98echo "  Cleaning up" 
     99chroot ${prefix} /usr/bin/yum clean all 
     100 
     101umount ${prefix}/proc 
     102 
     103 
     104# 
     105#  6.  Remove the .rpm files from the prefix root. 
     106# 
     107echo "  Final tidy..." 
     108for i in ${prefix}/*.rpm; do 
     109    rm -f $i 
     110done 
     111find ${prefix} -name '*.rpmorig' -delete 
     112find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-8/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-8/post-install.sh rinse-1.7/scripts/fedora-8/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6 
     7 
     8prefix=$1 
     9 
     10if [ ! -d "${prefix}" ]; then 
     11  echo "Serious error - the named directory doesn't exist." 
     12  exit 
     13fi 
     14 
     15 
     16 
     17# 
     18#  1.  Make sure there is a resolv.conf file present, such that 
     19#     DNS lookups succeed. 
     20# 
     21echo "  Creating resolv.conf" 
     22if [ ! -d "${prefix}/etc/" ]; then 
     23    mkdir -p "${prefix}/etc/" 
     24fi 
     25cp /etc/resolv.conf "${prefix}/etc/" 
     26 
     27 
     28# 
     29#  2.  Copy the cached .RPM files into the yum directory, so that 
     30#     yum doesn't need to make them again. 
     31# 
     32echo "  Setting up YUM cache" 
     33if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
     34    mkdir -p ${prefix}/var/cache/yum/core/packages/ 
     35fi 
     36if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
     37    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
     38fi 
     39 
     40for i in ${prefix}/*.rpm ; do 
     41    cp $i ${prefix}/var/cache/yum/core/packages/ 
     42    cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
     43done 
     44 
     45 
     46 
     47# 
     48#  3.  Ensure that Yum has a working configuration file. 
     49# 
     50arch=i386 
     51if [ $ARCH = "amd64" ] ; then 
     52    arch=x86_64 
     53fi 
     54 
     55echo "  Creating yum.conf" 
     56cat > ${prefix}/etc/yum.conf <<EOF 
     57[main] 
     58cachedir=/var/cache/yum 
     59debuglevel=1 
     60reposdir=/dev/null 
     61logfile=/var/log/yum.log 
     62retries=20 
     63obsoletes=1 
     64gpgcheck=0 
     65assumeyes=1 
     66 
     67# repos 
     68 
     69[core] 
     70name=core 
     71baseurl=$mirror 
     72 
     73[updates-released] 
     74name=updates 
     75baseurl=$mirror 
     76EOF 
     77 
     78 
     79# 
     80#  4.  Run "yum install yum". 
     81# 
     82echo "  Mounting /proc" 
     83if [ ! -d "${prefix}/proc" ]; then 
     84    mkdir -p "${prefix}/proc" 
     85fi 
     86mount -o bind /proc ${prefix}/proc 
     87 
     88echo "  Priming the yum cache" 
     89if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
     90    mkdir -p ${prefix}/var/cache/yum/core/packages 
     91fi 
     92cp /var/cache/rinse/fedora-8.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
     93 
     94echo "  Bootstrapping yum" 
     95chroot ${prefix} /sbin/ldconfig 
     96chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
     97chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
     98chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
     99 
     100 
     101# 
     102#  5.  Clean up 
     103# 
     104echo "  Cleaning up" 
     105chroot ${prefix} /usr/bin/yum clean all 
     106 
     107umount ${prefix}/proc 
     108 
     109 
     110# 
     111#  6.  Remove the .rpm files from the prefix root. 
     112# 
     113echo "  Final tidy..." 
     114for i in ${prefix}/*.rpm; do 
     115    rm -f $i 
     116done 
     117find ${prefix} -name '*.rpmorig' -delete 
     118find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-9/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-9/post-install.sh rinse-1.7/scripts/fedora-9/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6 
     7 
     8prefix=$1 
     9 
     10if [ ! -d "${prefix}" ]; then 
     11  echo "Serious error - the named directory doesn't exist." 
     12  exit 
     13fi 
     14 
     15 
     16 
     17# 
     18#  1.  Make sure there is a resolv.conf file present, such that 
     19#     DNS lookups succeed. 
     20# 
     21echo "  Creating resolv.conf" 
     22if [ ! -d "${prefix}/etc/" ]; then 
     23    mkdir -p "${prefix}/etc/" 
     24fi 
     25cp /etc/resolv.conf "${prefix}/etc/" 
     26 
     27 
     28# 
     29#  2.  Copy the cached .RPM files into the yum directory, so that 
     30#     yum doesn't need to make them again. 
     31# 
     32echo "  Setting up YUM cache" 
     33if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
     34    mkdir -p ${prefix}/var/cache/yum/core/packages/ 
     35fi 
     36if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
     37    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
     38fi 
     39 
     40for i in ${prefix}/*.rpm ; do 
     41    cp $i ${prefix}/var/cache/yum/core/packages/ 
     42    cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
     43done 
     44 
     45 
     46 
     47# 
     48#  3.  Ensure that Yum has a working configuration file. 
     49# 
     50arch=i386 
     51if [ $ARCH = "amd64" ] ; then 
     52    arch=x86_64 
     53fi 
     54 
     55echo "  Creating yum.conf" 
     56cat > ${prefix}/etc/yum.conf <<EOF 
     57[main] 
     58cachedir=/var/cache/yum 
     59debuglevel=1 
     60reposdir=/dev/null 
     61logfile=/var/log/yum.log 
     62retries=20 
     63obsoletes=1 
     64gpgcheck=0 
     65assumeyes=1 
     66 
     67# repos 
     68 
     69[core] 
     70name=core 
     71baseurl=$mirror 
     72 
     73EOF 
     74 
     75 
     76# 
     77#  4.  Run "yum install yum". 
     78# 
     79echo "  Mounting /proc" 
     80if [ ! -d "${prefix}/proc" ]; then 
     81    mkdir -p "${prefix}/proc" 
     82fi 
     83mount -o bind /proc ${prefix}/proc 
     84 
     85echo "  Priming the yum cache" 
     86if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
     87    mkdir -p ${prefix}/var/cache/yum/core/packages 
     88fi 
     89cp /var/cache/rinse/fedora-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
     90 
     91echo "  Bootstrapping yum" 
     92chroot ${prefix} /sbin/ldconfig 
     93chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
     94chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
     95chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
     96 
     97 
     98# 
     99#  5.  Clean up 
     100# 
     101echo "  Cleaning up" 
     102chroot ${prefix} /usr/bin/yum clean all 
     103 
     104umount ${prefix}/proc 
     105 
     106 
     107# 
     108#  6.  Remove the .rpm files from the prefix root. 
     109# 
     110echo "  Final tidy..." 
     111for i in ${prefix}/*.rpm; do 
     112    rm -f $i 
     113done 
     114find ${prefix} -name '*.rpmorig' -delete 
     115find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-core-10/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-core-10/post-install.sh rinse-1.7/scripts/fedora-core-10/post-install.sh
    old new  
    1 #!/bin/sh 
    2 # 
    3 #  Customise the distribution post-install. 
    4 # 
    5  
    6  
    7  
    8 prefix=$1 
    9  
    10 if [ ! -d "${prefix}" ]; then 
    11   echo "Serious error - the named directory doesn't exist." 
    12   exit 
    13 fi 
    14  
    15  
    16  
    17 # 
    18 #  1.  Make sure there is a resolv.conf file present, such that 
    19 #     DNS lookups succeed. 
    20 # 
    21 echo "  Creating resolv.conf" 
    22 if [ ! -d "${prefix}/etc/" ]; then 
    23     mkdir -p "${prefix}/etc/" 
    24 fi 
    25 cp /etc/resolv.conf "${prefix}/etc/" 
    26  
    27  
    28 # 
    29 #  2.  Copy the cached .RPM files into the yum directory, so that 
    30 #     yum doesn't need to make them again. 
    31 # 
    32 echo "  Setting up YUM cache" 
    33 if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
    34     mkdir -p ${prefix}/var/cache/yum/core/packages/ 
    35 fi 
    36 if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
    37     mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
    38 fi 
    39  
    40 for i in ${prefix}/*.rpm ; do 
    41     cp $i ${prefix}/var/cache/yum/core/packages/ 
    42     cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
    43 done 
    44  
    45  
    46  
    47 # 
    48 #  3.  Ensure that Yum has a working configuration file. 
    49 # 
    50 arch=i386 
    51 if [ $ARCH = "amd64" ] ; then 
    52     arch=x86_64 
    53 fi 
    54  
    55 echo "  Creating yum.conf" 
    56 cat > ${prefix}/etc/yum.conf <<EOF 
    57 [main] 
    58 cachedir=/var/cache/yum 
    59 debuglevel=1 
    60 reposdir=/dev/null 
    61 logfile=/var/log/yum.log 
    62 retries=20 
    63 obsoletes=1 
    64 gpgcheck=0 
    65 assumeyes=1 
    66  
    67 # repos 
    68  
    69 [core] 
    70 name=core 
    71 baseurl=$mirror 
    72  
    73 EOF 
    74  
    75  
    76 # 
    77 #  4.  Run "yum install yum". 
    78 # 
    79 echo "  Mounting /proc" 
    80 if [ ! -d "${prefix}/proc" ]; then 
    81     mkdir -p "${prefix}/proc" 
    82 fi 
    83 mount -o bind /proc ${prefix}/proc 
    84  
    85 echo "  Priming the yum cache" 
    86 if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
    87     mkdir -p ${prefix}/var/cache/yum/core/packages 
    88 fi 
    89 cp /var/cache/rinse/fedora-core-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
    90  
    91 echo "  Bootstrapping yum" 
    92 chroot ${prefix} /sbin/ldconfig 
    93 chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
    94 chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
    95 chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
    96  
    97  
    98 # 
    99 #  5.  Clean up 
    100 # 
    101 echo "  Cleaning up" 
    102 chroot ${prefix} /usr/bin/yum clean all 
    103  
    104 umount ${prefix}/proc 
    105  
    106  
    107 # 
    108 #  6.  Remove the .rpm files from the prefix root. 
    109 # 
    110 echo "  Final tidy..." 
    111 for i in ${prefix}/*.rpm; do 
    112     rm -f $i 
    113 done 
    114 find ${prefix} -name '*.rpmorig' -delete 
    115 find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-core-7/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-core-7/post-install.sh rinse-1.7/scripts/fedora-core-7/post-install.sh
    old new  
    1 #!/bin/sh 
    2 # 
    3 #  Customise the distribution post-install. 
    4 # 
    5  
    6  
    7  
    8 prefix=$1 
    9  
    10 if [ ! -d "${prefix}" ]; then 
    11   echo "Serious error - the named directory doesn't exist." 
    12   exit 
    13 fi 
    14  
    15  
    16  
    17 # 
    18 #  1.  Make sure there is a resolv.conf file present, such that 
    19 #     DNS lookups succeed. 
    20 # 
    21 echo "  Creating resolv.conf" 
    22 if [ ! -d "${prefix}/etc/" ]; then 
    23     mkdir -p "${prefix}/etc/" 
    24 fi 
    25 cp /etc/resolv.conf "${prefix}/etc/" 
    26  
    27  
    28 # 
    29 #  2.  Copy the cached .RPM files into the yum directory, so that 
    30 #     yum doesn't need to make them again. 
    31 # 
    32 echo "  Setting up YUM cache" 
    33 if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
    34     mkdir -p ${prefix}/var/cache/yum/core/packages/ 
    35 fi 
    36 if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
    37     mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
    38 fi 
    39  
    40 for i in ${prefix}/*.rpm ; do 
    41     cp $i ${prefix}/var/cache/yum/core/packages/ 
    42     cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
    43 done 
    44  
    45  
    46  
    47 # 
    48 #  3.  Ensure that Yum has a working configuration file. 
    49 # 
    50 arch=i386 
    51 if [ $ARCH = "amd64" ] ; then 
    52     arch=x86_64 
    53 fi 
    54  
    55 echo "  Creating yum.conf" 
    56 cat > ${prefix}/etc/yum.conf <<EOF 
    57 [main] 
    58 cachedir=/var/cache/yum 
    59 debuglevel=1 
    60 reposdir=/dev/null 
    61 logfile=/var/log/yum.log 
    62 retries=20 
    63 obsoletes=1 
    64 gpgcheck=0 
    65 assumeyes=1 
    66  
    67 # repos 
    68  
    69 [core] 
    70 name=core 
    71 baseurl=$mirror 
    72  
    73 [updates-released] 
    74 name=updates 
    75 baseurl=$mirror 
    76 EOF 
    77  
    78  
    79 # 
    80 #  4.  Run "yum install yum". 
    81 # 
    82 echo "  Mounting /proc" 
    83 if [ ! -d "${prefix}/proc" ]; then 
    84     mkdir -p "${prefix}/proc" 
    85 fi 
    86 mount -o bind /proc ${prefix}/proc 
    87  
    88 echo "  Bootstrapping yum" 
    89 chroot ${prefix} /sbin/ldconfig 
    90 chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
    91 chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
    92 chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
    93  
    94  
    95 # 
    96 #  5.  Clean up 
    97 # 
    98 echo "  Cleaning up" 
    99 chroot ${prefix} /usr/bin/yum clean all 
    100  
    101 umount ${prefix}/proc 
    102  
    103  
    104 # 
    105 #  6.  Remove the .rpm files from the prefix root. 
    106 # 
    107 echo "  Final tidy..." 
    108 for i in ${prefix}/*.rpm; do 
    109     rm -f $i 
    110 done 
    111 find ${prefix} -name '*.rpmorig' -delete 
    112 find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-core-8/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-core-8/post-install.sh rinse-1.7/scripts/fedora-core-8/post-install.sh
    old new  
    1 #!/bin/sh 
    2 # 
    3 #  Customise the distribution post-install. 
    4 # 
    5  
    6  
    7  
    8 prefix=$1 
    9  
    10 if [ ! -d "${prefix}" ]; then 
    11   echo "Serious error - the named directory doesn't exist." 
    12   exit 
    13 fi 
    14  
    15  
    16  
    17 # 
    18 #  1.  Make sure there is a resolv.conf file present, such that 
    19 #     DNS lookups succeed. 
    20 # 
    21 echo "  Creating resolv.conf" 
    22 if [ ! -d "${prefix}/etc/" ]; then 
    23     mkdir -p "${prefix}/etc/" 
    24 fi 
    25 cp /etc/resolv.conf "${prefix}/etc/" 
    26  
    27  
    28 # 
    29 #  2.  Copy the cached .RPM files into the yum directory, so that 
    30 #     yum doesn't need to make them again. 
    31 # 
    32 echo "  Setting up YUM cache" 
    33 if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
    34     mkdir -p ${prefix}/var/cache/yum/core/packages/ 
    35 fi 
    36 if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
    37     mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
    38 fi 
    39  
    40 for i in ${prefix}/*.rpm ; do 
    41     cp $i ${prefix}/var/cache/yum/core/packages/ 
    42     cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
    43 done 
    44  
    45  
    46  
    47 # 
    48 #  3.  Ensure that Yum has a working configuration file. 
    49 # 
    50 arch=i386 
    51 if [ $ARCH = "amd64" ] ; then 
    52     arch=x86_64 
    53 fi 
    54  
    55 echo "  Creating yum.conf" 
    56 cat > ${prefix}/etc/yum.conf <<EOF 
    57 [main] 
    58 cachedir=/var/cache/yum 
    59 debuglevel=1 
    60 reposdir=/dev/null 
    61 logfile=/var/log/yum.log 
    62 retries=20 
    63 obsoletes=1 
    64 gpgcheck=0 
    65 assumeyes=1 
    66  
    67 # repos 
    68  
    69 [core] 
    70 name=core 
    71 baseurl=$mirror 
    72  
    73 [updates-released] 
    74 name=updates 
    75 baseurl=$mirror 
    76 EOF 
    77  
    78  
    79 # 
    80 #  4.  Run "yum install yum". 
    81 # 
    82 echo "  Mounting /proc" 
    83 if [ ! -d "${prefix}/proc" ]; then 
    84     mkdir -p "${prefix}/proc" 
    85 fi 
    86 mount -o bind /proc ${prefix}/proc 
    87  
    88 echo "  Priming the yum cache" 
    89 if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
    90     mkdir -p ${prefix}/var/cache/yum/core/packages 
    91 fi 
    92 cp /var/cache/rinse/fedora-core-8.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
    93  
    94 echo "  Bootstrapping yum" 
    95 chroot ${prefix} /sbin/ldconfig 
    96 chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
    97 chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
    98 chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
    99  
    100  
    101 # 
    102 #  5.  Clean up 
    103 # 
    104 echo "  Cleaning up" 
    105 chroot ${prefix} /usr/bin/yum clean all 
    106  
    107 umount ${prefix}/proc 
    108  
    109  
    110 # 
    111 #  6.  Remove the .rpm files from the prefix root. 
    112 # 
    113 echo "  Final tidy..." 
    114 for i in ${prefix}/*.rpm; do 
    115     rm -f $i 
    116 done 
    117 find ${prefix} -name '*.rpmorig' -delete 
    118 find ${prefix} -name '*.rpmnew' -delete 
  • scripts/fedora-core-9/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/fedora-core-9/post-install.sh rinse-1.7/scripts/fedora-core-9/post-install.sh
    old new  
    1 #!/bin/sh 
    2 # 
    3 #  Customise the distribution post-install. 
    4 # 
    5  
    6  
    7  
    8 prefix=$1 
    9  
    10 if [ ! -d "${prefix}" ]; then 
    11   echo "Serious error - the named directory doesn't exist." 
    12   exit 
    13 fi 
    14  
    15  
    16  
    17 # 
    18 #  1.  Make sure there is a resolv.conf file present, such that 
    19 #     DNS lookups succeed. 
    20 # 
    21 echo "  Creating resolv.conf" 
    22 if [ ! -d "${prefix}/etc/" ]; then 
    23     mkdir -p "${prefix}/etc/" 
    24 fi 
    25 cp /etc/resolv.conf "${prefix}/etc/" 
    26  
    27  
    28 # 
    29 #  2.  Copy the cached .RPM files into the yum directory, so that 
    30 #     yum doesn't need to make them again. 
    31 # 
    32 echo "  Setting up YUM cache" 
    33 if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then 
    34     mkdir -p ${prefix}/var/cache/yum/core/packages/ 
    35 fi 
    36 if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then 
    37     mkdir -p ${prefix}/var/cache/yum/updates-released/packages/ 
    38 fi 
    39  
    40 for i in ${prefix}/*.rpm ; do 
    41     cp $i ${prefix}/var/cache/yum/core/packages/ 
    42     cp $i ${prefix}/var/cache/yum/updates-released/packages/ 
    43 done 
    44  
    45  
    46  
    47 # 
    48 #  3.  Ensure that Yum has a working configuration file. 
    49 # 
    50 arch=i386 
    51 if [ $ARCH = "amd64" ] ; then 
    52     arch=x86_64 
    53 fi 
    54  
    55 echo "  Creating yum.conf" 
    56 cat > ${prefix}/etc/yum.conf <<EOF 
    57 [main] 
    58 cachedir=/var/cache/yum 
    59 debuglevel=1 
    60 reposdir=/dev/null 
    61 logfile=/var/log/yum.log 
    62 retries=20 
    63 obsoletes=1 
    64 gpgcheck=0 
    65 assumeyes=1 
    66  
    67 # repos 
    68  
    69 [core] 
    70 name=core 
    71 baseurl=$mirror 
    72  
    73 EOF 
    74  
    75  
    76 # 
    77 #  4.  Run "yum install yum". 
    78 # 
    79 echo "  Mounting /proc" 
    80 if [ ! -d "${prefix}/proc" ]; then 
    81     mkdir -p "${prefix}/proc" 
    82 fi 
    83 mount -o bind /proc ${prefix}/proc 
    84  
    85 echo "  Priming the yum cache" 
    86 if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then 
    87     mkdir -p ${prefix}/var/cache/yum/core/packages 
    88 fi 
    89 cp /var/cache/rinse/fedora-core-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/ 
    90  
    91 echo "  Bootstrapping yum" 
    92 chroot ${prefix} /sbin/ldconfig 
    93 chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null 
    94 chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null 
    95 chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null 
    96  
    97  
    98 # 
    99 #  5.  Clean up 
    100 # 
    101 echo "  Cleaning up" 
    102 chroot ${prefix} /usr/bin/yum clean all 
    103  
    104 umount ${prefix}/proc 
    105  
    106  
    107 # 
    108 #  6.  Remove the .rpm files from the prefix root. 
    109 # 
    110 echo "  Final tidy..." 
    111 for i in ${prefix}/*.rpm; do 
    112     rm -f $i 
    113 done 
    114 find ${prefix} -name '*.rpmorig' -delete 
    115 find ${prefix} -name '*.rpmnew' -delete 
  • scripts/opensuse-11.1/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/opensuse-11.1/post-install.sh rinse-1.7/scripts/opensuse-11.1/post-install.sh
    old new  
    5959 
    6060EOF 
    6161 
     62if [ $ARCH = "i386" ] ; then 
     63        echo "  Setting architecture to i686" 
     64        sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf 
     65fi 
     66 
    6267 
    6368# 
    6469#  4.  Run "zypper install zypper". 
     
    7378chroot ${prefix} /sbin/ldconfig 
    7479chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null 
    7580chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null 
    76 chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install dhclient    2>/dev/null 
     81chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null 
    7782chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null 
    7883 
    7984 
     
    8287# 
    8388echo "  Cleaning up" 
    8489chroot ${prefix} /usr/bin/zypper clean 
    85  
    8690umount ${prefix}/proc 
    8791 
     92echo "  Ending uuidd" 
     93pkill uuidd 
    8894 
    8995# 
    9096#  6.  Remove the .rpm files from the prefix root. 
  • scripts/opensuse-11.2/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/opensuse-11.2/post-install.sh rinse-1.7/scripts/opensuse-11.2/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6prefix=$1 
     7 
     8if [ ! -d "${prefix}" ]; then 
     9  echo "Serious error - the named directory doesn't exist." 
     10  exit 
     11fi 
     12 
     13 
     14# There's no pre-existing /dev/zero nor is there one from the packages that are already unpacked. 
     15echo "  Creating devices in /dev" 
     16if ! [ -e "${prefix}/dev/zero" ]; then 
     17    mknod -m 666 "${prefix}/dev/zero" c 1 5 
     18fi 
     19 
     20# 
     21#  1.  Make sure there is a resolv.conf file present, such that 
     22#     DNS lookups succeed. 
     23# 
     24echo "  Creating resolv.conf" 
     25if [ ! -d "${prefix}/etc/" ]; then 
     26    mkdir -p "${prefix}/etc/" 
     27fi 
     28cp /etc/resolv.conf "${prefix}/etc/" 
     29 
     30 
     31# 
     32#  2.  Copy the cached .RPM files into the zypper directory, so that 
     33#     zypper doesn't need to fetch them again. 
     34# 
     35echo "  Setting up zypper cache" 
     36 
     37if [ ! -d "${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}" ]; then 
     38    mkdir -p ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch} 
     39fi 
     40cp ${cache_dir}/${dist}.${ARCH}/* ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch} 
     41 
     42 
     43# 
     44#  3.  Ensure that zypper has a working configuration file. 
     45# 
     46arch=i386 
     47if [ $ARCH = "amd64" ] ; then 
     48    arch=x86_64 
     49fi 
     50 
     51echo "  Creating zypper repo entry" 
     52[ -d "${prefix}/etc/zypp/repos.d" ] || mkdir -p ${prefix}/etc/zypp/repos.d 
     53cat > ${prefix}/etc/zypp/repos.d/${dist}.repo <<EOF 
     54[opensuse] 
     55name=${dist} 
     56baseurl=$(dirname $(dirname ${mirror})) 
     57enabled=1 
     58gpgcheck=1 
     59 
     60EOF 
     61 
     62if [ $ARCH = "i386" ] ; then 
     63        echo "  Setting architecture to i686" 
     64        sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf 
     65fi 
     66 
     67 
     68# 
     69#  4.  Run "zypper install zypper". 
     70# 
     71echo "  Mounting /proc" 
     72if [ ! -d "${prefix}/proc" ]; then 
     73    mkdir -p "${prefix}/proc" 
     74fi 
     75mount -o bind /proc ${prefix}/proc 
     76 
     77echo "  Bootstrapping zypper" 
     78chroot ${prefix} /sbin/ldconfig 
     79chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null 
     80chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null 
     81chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null 
     82chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install syslog-ng   2>/dev/null 
     83chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null 
     84 
     85 
     86# 
     87#  5.  Clean up 
     88# 
     89echo "  Cleaning up" 
     90chroot ${prefix} /usr/bin/zypper clean 
     91umount ${prefix}/proc 
     92 
     93echo "  Ending uuidd" 
     94pkill uuidd 
     95 
     96# 
     97#  6.  Remove the .rpm files from the prefix root. 
     98# 
     99echo "  Final tidy..." 
     100for i in ${prefix}/*.rpm; do 
     101    rm -f $i 
     102done 
     103find ${prefix} -name '*.rpmorig' -delete 
     104find ${prefix} -name '*.rpmnew' -delete 
  • scripts/opensuse-11.3/post-install.sh

    diff -ruN rinse-1.7.orig/scripts/opensuse-11.3/post-install.sh rinse-1.7/scripts/opensuse-11.3/post-install.sh
    old new  
     1#!/bin/sh 
     2# 
     3#  Customise the distribution post-install. 
     4# 
     5 
     6prefix=$1 
     7 
     8if [ ! -d "${prefix}" ]; then 
     9  echo "Serious error - the named directory doesn't exist." 
     10  exit 
     11fi 
     12 
     13 
     14# There's no pre-existing /dev/zero nor is there one from the packages that are already unpacked. 
     15echo "  Creating devices in /dev" 
     16if ! [ -e "${prefix}/dev/zero" ]; then 
     17    mknod -m 666 "${prefix}/dev/zero" c 1 5 
     18fi 
     19 
     20# 
     21#  1.  Make sure there is a resolv.conf file present, such that 
     22#     DNS lookups succeed. 
     23# 
     24echo "  Creating resolv.conf" 
     25if [ ! -d "${prefix}/etc/" ]; then 
     26    mkdir -p "${prefix}/etc/" 
     27fi 
     28cp /etc/resolv.conf "${prefix}/etc/" 
     29 
     30 
     31# 
     32#  2.  Copy the cached .RPM files into the zypper directory, so that 
     33#     zypper doesn't need to fetch them again. 
     34# 
     35echo "  Setting up zypper cache" 
     36 
     37if [ ! -d "${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}" ]; then 
     38    mkdir -p ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch} 
     39fi 
     40cp ${cache_dir}/${dist}.${ARCH}/* ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch} 
     41 
     42 
     43# 
     44#  3.  Ensure that zypper has a working configuration file. 
     45# 
     46arch=i386 
     47if [ $ARCH = "amd64" ] ; then 
     48    arch=x86_64 
     49fi 
     50 
     51echo "  Creating zypper repo entry" 
     52[ -d "${prefix}/etc/zypp/repos.d" ] || mkdir -p ${prefix}/etc/zypp/repos.d 
     53cat > ${prefix}/etc/zypp/repos.d/${dist}.repo <<EOF 
     54[opensuse] 
     55name=${dist} 
     56baseurl=$(dirname $(dirname ${mirror})) 
     57enabled=1 
     58gpgcheck=1 
     59 
     60EOF 
     61 
     62if [ $ARCH = "i386" ] ; then 
     63        echo "  Setting architecture to i686" 
     64        sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf 
     65fi 
     66 
     67 
     68# 
     69#  4.  Run "zypper install zypper". 
     70# 
     71echo "  Mounting /proc" 
     72if [ ! -d "${prefix}/proc" ]; then 
     73    mkdir -p "${prefix}/proc" 
     74fi 
     75mount -o bind /proc ${prefix}/proc 
     76 
     77echo "  Bootstrapping zypper" 
     78chroot ${prefix} /sbin/ldconfig 
     79 
     80# Need key trusted to prevent warnings during package install 
     81chroot ${prefix} /usr/bin/zypper -n --gpg-auto-import-keys refresh --force-download 
     82 
     83# Need these two to be properly installed to prevent numerous errors during installation of other packages 
     84chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install PolicyKit permissions 2>/dev/null 
     85 
     86chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null 
     87chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null 
     88chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null 
     89chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install syslog-ng   2>/dev/null 
     90chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null 
     91 
     92 
     93# 
     94#  5.  Clean up 
     95# 
     96echo "  Cleaning up" 
     97chroot ${prefix} /usr/bin/zypper clean 
     98umount ${prefix}/proc 
     99 
     100echo "  Ending uuidd" 
     101pkill uuidd 
     102 
     103# 
     104#  6.  Remove the .rpm files from the prefix root. 
     105# 
     106echo "  Final tidy..." 
     107for i in ${prefix}/*.rpm; do 
     108    rm -f $i 
     109done 
     110find ${prefix} -name '*.rpmorig' -delete 
     111find ${prefix} -name '*.rpmnew' -delete 
Note: See TracBrowser for help on using the repository browser.