diff -ruN rinse-1.7.orig/bin/rinse rinse-1.7/bin/rinse
--- rinse-1.7.orig/bin/rinse	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/bin/rinse	2011-02-23 01:31:09.000000000 +0900
@@ -868,6 +868,12 @@
                 $arch = 'x86_64';
             }
 
+            # 32bit packages come in a variety of specific formats now  
+            if ( $CONFIG{ 'arch' } eq 'i386' )
+            {
+                $arch = 'i386|i586|i686';
+            }
+
             if ( $#remainder_parts != 2 ||
                  $remainder_parts[0] ne '' ||
                  $remainder_parts[1] !~ /^[\d\w][\d\w.+]*$/ ||
diff -ruN rinse-1.7.orig/etc/fedora-10.packages rinse-1.7/etc/fedora-10.packages
--- rinse-1.7.orig/etc/fedora-10.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/fedora-10.packages	2011-02-23 01:04:31.000000000 +0900
@@ -0,0 +1,106 @@
+audit-libs
+basesystem
+bash
+bzip2-libs
+chkconfig
+compat-db45
+ConsoleKit-libs
+coreutils
+cpio
+cracklib
+cracklib-dicts
+crontabs
+cyrus-sasl-lib
+db4
+dbus
+dbus-libs
+device-mapper
+device-mapper-libs
+dhclient
+dirmngr
+e2fsprogs
+e2fsprogs-libs
+elfutils-libelf
+ethtool
+expat
+fedora-release
+fedora-release-notes
+file
+file-libs
+filesystem
+findutils
+gamin
+gawk
+gdbm
+glib2
+glibc
+glibc-common
+gnupg2
+gpgme
+grep
+info
+initscripts
+iproute
+iputils
+keyutils-libs
+krb5-libs
+libacl
+libattr
+libcap
+libcurl
+libgcc
+libgcrypt
+libgpg-error
+libidn
+libksba
+libselinux
+libsepol
+libstdc++
+libusb
+libvolume_id
+libxml2
+linux-atm-libs
+logrotate
+lua
+MAKEDEV
+mingetty
+module-init-tools
+ncurses
+ncurses-base
+ncurses-libs
+net-tools
+nspr
+nss
+openldap
+openssl
+pam
+passwd
+pcre
+pinentry
+popt
+procps
+psmisc
+pth
+pygpgme
+python
+python-iniparse
+python-libs
+python-urlgrabber
+readline
+rpm
+rpm-libs
+rpm-python
+rsyslog
+sed
+setup
+shadow-utils
+sqlite
+sysvinit-tools
+tzdata
+udev
+upstart
+util-linux-ng
+vim-minimal
+yum
+yum-metadata-parser
+zlib
diff -ruN rinse-1.7.orig/etc/fedora-11.packages rinse-1.7/etc/fedora-11.packages
--- rinse-1.7.orig/etc/fedora-11.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/fedora-11.packages	2011-02-23 01:11:57.000000000 +0900
@@ -0,0 +1,106 @@
+audit-libs
+basesystem
+bash
+bzip2-libs
+chkconfig
+compat-db45
+ConsoleKit-libs
+coreutils
+cpio
+cracklib
+cracklib-dicts
+crontabs
+cyrus-sasl-lib
+db4
+dbus
+dbus-libs
+device-mapper
+device-mapper-libs
+dhclient
+dirmngr
+e2fsprogs
+e2fsprogs-libs
+elfutils-libelf
+ethtool
+expat
+fedora-release
+fedora-release-notes
+file
+file-libs
+filesystem
+findutils
+gamin
+gawk
+gdbm
+glib2
+glibc
+glibc-common
+gnupg2
+gpgme
+grep
+info
+initscripts
+iproute
+iputils
+keyutils-libs
+krb5-libs
+libacl
+libattr
+libcap
+libcurl
+libgcc
+libgcrypt
+libgpg-error
+libidn
+libksba
+libselinux
+libsepol
+libstdc++
+libusb
+libvolume_id
+libxml2
+linux-atm-libs
+logrotate
+lua
+MAKEDEV
+mingetty
+module-init-tools
+ncurses
+ncurses-base
+ncurses-libs
+net-tools
+nspr
+nss
+openldap
+openssl
+pam
+passwd
+pcre
+pinentry
+popt
+procps
+psmisc
+pth
+pygpgme
+python
+python-iniparse
+python-libs
+python-urlgrabber
+readline
+rpm
+rpm-libs
+rpm-python
+rsyslog
+sed
+setup
+shadow-utils
+sqlite
+sysvinit-tools
+tzdata
+udev
+upstart
+util-linux-ng
+vim-minimal
+yum
+yum-metadata-parser
+zlib
diff -ruN rinse-1.7.orig/etc/fedora-12.packages rinse-1.7/etc/fedora-12.packages
--- rinse-1.7.orig/etc/fedora-12.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/fedora-12.packages	2011-02-23 01:04:31.000000000 +0900
@@ -0,0 +1,115 @@
+audit-libs
+basesystem
+bash
+bzip2-libs
+chkconfig
+ConsoleKit-libs
+coreutils
+cpio
+cracklib
+cracklib-dicts
+crontabs
+cyrus-sasl-lib
+db4
+dbus
+dbus-libs
+device-mapper
+device-mapper-libs
+dhclient
+dirmngr
+e2fsprogs
+e2fsprogs-libs
+elfutils-libelf
+ethtool
+expat
+fedora-release
+fedora-release-notes
+file
+file-libs
+filesystem
+findutils
+gamin
+gawk
+gdbm
+glib2
+glibc
+glibc-common
+gnupg2
+gpgme
+grep
+info
+initscripts
+iproute
+iputils
+keyutils-libs
+krb5-libs
+libacl
+libattr
+libcap
+libcurl
+libgcc
+libgcrypt
+libgpg-error
+libidn
+libksba
+libselinux
+libsepol
+libstdc++
+libusb
+libxml2
+linux-atm-libs
+logrotate
+lua
+MAKEDEV
+mingetty
+module-init-tools
+ncurses
+ncurses-base
+ncurses-libs
+net-tools
+nspr
+nss
+openldap
+openssl
+pam
+passwd
+pcre
+pinentry
+popt
+procps
+psmisc
+pth
+pygpgme
+python
+python-iniparse
+python-libs
+python-urlgrabber
+readline
+rpm
+rpm-libs
+rpm-python
+rsyslog
+sed
+setup
+shadow-utils
+sqlite
+sysvinit-tools
+tzdata
+udev
+upstart
+util-linux-ng
+vim-minimal
+yum
+yum-metadata-parser
+zlib
+
+# New to v12
+xz-libs
+nss-util
+python-pycurl
+libssh2
+libcom_err
+nss-softokn-freebl
+nss-softokn
+# Required or else login failse
+libcap-ng
diff -ruN rinse-1.7.orig/etc/fedora-13.packages rinse-1.7/etc/fedora-13.packages
--- rinse-1.7.orig/etc/fedora-13.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/fedora-13.packages	2011-02-23 01:04:31.000000000 +0900
@@ -0,0 +1,118 @@
+audit-libs
+basesystem
+bash
+bzip2-libs
+chkconfig
+ConsoleKit-libs
+coreutils
+cpio
+cracklib
+cracklib-dicts
+crontabs
+cyrus-sasl-lib
+db4
+dbus
+dbus-libs
+device-mapper
+device-mapper-libs
+dhclient
+dirmngr
+e2fsprogs
+e2fsprogs-libs
+elfutils-libelf
+ethtool
+expat
+fedora-release
+fedora-release-notes
+file
+file-libs
+filesystem
+findutils
+gamin
+gawk
+gdbm
+glib2
+glibc
+glibc-common
+gnupg2
+gpgme
+grep
+info
+initscripts
+iproute
+iputils
+keyutils-libs
+krb5-libs
+libacl
+libattr
+libcap
+libcurl
+libgcc
+libgcrypt
+libgpg-error
+libidn
+libksba
+libselinux
+libsepol
+libstdc++
+libusb
+libxml2
+linux-atm-libs
+logrotate
+lua
+MAKEDEV
+mingetty
+module-init-tools
+ncurses
+ncurses-base
+ncurses-libs
+net-tools
+nspr
+nss
+openldap
+openssl
+pam
+passwd
+pcre
+pinentry
+popt
+procps
+psmisc
+pth
+pygpgme
+python
+python-iniparse
+python-libs
+python-urlgrabber
+readline
+rpm
+rpm-libs
+rpm-python
+rsyslog
+sed
+setup
+shadow-utils
+sqlite
+sysvinit-tools
+tzdata
+udev
+upstart
+util-linux-ng
+vim-minimal
+yum
+yum-metadata-parser
+zlib
+
+# New to v12
+xz-libs
+nss-util
+python-pycurl
+libssh2
+libcom_err
+nss-softokn-freebl
+nss-softokn
+# Required or else login failse
+libcap-ng
+
+# New to v13
+c-ares
diff -ruN rinse-1.7.orig/etc/fedora-14.packages rinse-1.7/etc/fedora-14.packages
--- rinse-1.7.orig/etc/fedora-14.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/fedora-14.packages	2011-02-23 01:21:35.000000000 +0900
@@ -0,0 +1,114 @@
+audit-libs
+basesystem
+bash
+bzip2-libs
+chkconfig
+ConsoleKit-libs
+coreutils
+cpio
+cracklib
+cracklib-dicts
+crontabs
+cyrus-sasl-lib
+db4
+dbus
+dbus-libs
+device-mapper
+device-mapper-libs
+dhclient
+e2fsprogs
+e2fsprogs-libs
+elfutils-libelf
+expat
+fedora-release
+fedora-release-notes
+file
+file-libs
+filesystem
+findutils
+gamin
+gawk
+gdbm
+glib2
+glibc
+glibc-common
+gnupg2
+gpgme
+grep
+info
+initscripts
+iproute
+iputils
+keyutils-libs
+krb5-libs
+libacl
+libattr
+libcap
+libcurl
+libgcc
+libgcrypt
+libgpg-error
+libidn
+libselinux
+libsepol
+libstdc++
+libusb
+libxml2
+linux-atm-libs
+logrotate
+lua
+mingetty
+module-init-tools
+ncurses
+ncurses-base
+ncurses-libs
+net-tools
+nspr
+nss
+openldap
+openssl
+pam
+passwd
+pcre
+pinentry
+popt
+procps
+psmisc
+pth
+pygpgme
+python
+python-iniparse
+python-libs
+python-urlgrabber
+readline
+rpm
+rpm-libs
+rpm-python
+rsyslog
+sed
+setup
+shadow-utils
+sqlite
+sysvinit-tools
+tzdata
+udev
+upstart
+util-linux-ng
+vim-minimal
+yum
+yum-metadata-parser
+zlib
+
+# New to v12
+xz-libs
+nss-util
+python-pycurl
+libssh2
+libcom_err
+nss-softokn-freebl
+nss-softokn
+# Required or else login failse
+libcap-ng
+
+# New to v13
+c-ares
diff -ruN rinse-1.7.orig/etc/fedora-7.packages rinse-1.7/etc/fedora-7.packages
--- rinse-1.7.orig/etc/fedora-7.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/fedora-7.packages	2011-02-23 01:04:31.000000000 +0900
@@ -0,0 +1,85 @@
+#
+#  Packages which we'll need to download for a minimal installation
+# of Fedora Core 7.
+#
+
+
+MAKEDEV
+SysVinit
+audit-libs
+basesystem
+bash
+beecrypt
+bzip2-libs
+chkconfig
+coreutils
+cracklib
+cracklib-dicts
+db4
+device-mapper
+e2fsprogs
+e2fsprogs-libs
+elfutils-libelf
+ethtool
+expat
+filesystem
+findutils
+gawk
+gdbm
+glib2
+glibc
+glibc-common
+grep
+info
+initscripts
+iproute
+iputils
+krb5-libs
+libacl
+libattr
+libcap
+libgcc
+libidn
+keyutils-libs
+libselinux
+libsepol
+libstdc++
+libsysfs
+libtermcap
+libxml2
+libxml2-python
+mcstrans
+mingetty
+mktemp
+module-init-tools
+ncurses
+neon
+net-tools
+openssl
+pam
+pcre
+popt
+procps
+psmisc
+python
+python-elementtree
+python-libs
+python-numeric
+python-sqlite
+python-urlgrabber
+readline
+rpm
+rpm-libs
+rpm-python
+sed
+setup
+shadow-utils
+sqlite
+sysklogd
+termcap
+tzdata
+udev
+util-linux
+yum
+yum-metadata-parser
+zlib
diff -ruN rinse-1.7.orig/etc/fedora-8.packages rinse-1.7/etc/fedora-8.packages
--- rinse-1.7.orig/etc/fedora-8.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/fedora-8.packages	2011-02-23 01:04:31.000000000 +0900
@@ -0,0 +1,85 @@
+#
+#  Packages which we'll need to download for a minimal installation
+# of Fedora Core 8.
+#
+
+
+MAKEDEV
+SysVinit
+audit-libs
+basesystem
+bash
+beecrypt
+bzip2-libs
+chkconfig
+coreutils
+cracklib
+cracklib-dicts
+db4
+device-mapper
+e2fsprogs
+e2fsprogs-libs
+elfutils-libelf
+ethtool
+expat
+filesystem
+findutils
+gawk
+gdbm
+glib2
+glibc
+glibc-common
+grep
+info
+initscripts
+iproute
+iputils
+krb5-libs
+libacl
+libattr
+libcap
+libgcc
+libidn
+keyutils-libs
+libselinux
+libsepol
+libstdc++
+libsysfs
+libtermcap
+libxml2
+libxml2-python
+mcstrans
+mingetty
+mktemp
+module-init-tools
+ncurses
+neon
+net-tools
+openssl
+pam
+pcre
+popt
+procps
+psmisc
+python
+python-elementtree
+python-libs
+python-numeric
+python-sqlite
+python-urlgrabber
+readline
+rpm
+rpm-libs
+rpm-python
+sed
+setup
+shadow-utils
+sqlite
+sysklogd
+termcap
+tzdata
+udev
+util-linux
+yum
+yum-metadata-parser
+zlib
diff -ruN rinse-1.7.orig/etc/fedora-9.packages rinse-1.7/etc/fedora-9.packages
--- rinse-1.7.orig/etc/fedora-9.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/fedora-9.packages	2011-02-23 01:04:31.000000000 +0900
@@ -0,0 +1,103 @@
+audit-libs
+basesystem
+bash
+bzip2-libs
+chkconfig
+ConsoleKit-libs
+coreutils
+cpio
+cracklib
+cracklib-dicts
+crontabs
+cyrus-sasl-lib
+db4
+dbus
+dbus-libs
+device-mapper
+device-mapper-libs
+dhclient
+dirmngr
+e2fsprogs
+e2fsprogs-libs
+elfutils-libelf
+ethtool
+event-compat-sysv
+expat
+fedora-release
+fedora-release-notes
+filesystem
+findutils
+gamin
+gawk
+gdbm
+glib2
+glibc
+glibc-common
+gnupg2
+gpgme
+grep
+info
+initscripts
+iproute
+iputils
+keyutils-libs
+krb5-libs
+libacl
+libattr
+libcap
+libcurl
+libgcc
+libgcrypt
+libgpg-error
+libidn
+libksba
+libselinux
+libsepol
+libstdc++
+libsysfs
+libusb
+libvolume_id
+libxml2
+linux-atm-libs
+logrotate
+MAKEDEV
+mingetty
+module-init-tools
+ncurses
+ncurses-base
+ncurses-libs
+net-tools
+nspr
+nss
+openldap
+openssl
+pam
+pcre
+pinentry
+popt
+procps
+psmisc
+pth
+pygpgme
+python
+python-iniparse
+python-libs
+python-urlgrabber
+readline
+rpm
+rpm-libs
+rpm-python
+rsyslog
+sed
+setup
+shadow-utils
+sqlite
+sysvinit-tools
+tzdata
+udev
+upstart
+util-linux-ng
+vim-minimal
+yum
+yum-metadata-parser
+zlib
diff -ruN rinse-1.7.orig/etc/fedora-core-10.packages rinse-1.7/etc/fedora-core-10.packages
--- rinse-1.7.orig/etc/fedora-core-10.packages	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/etc/fedora-core-10.packages	1970-01-01 09:00:00.000000000 +0900
@@ -1,106 +0,0 @@
-audit-libs
-basesystem
-bash
-bzip2-libs
-chkconfig
-compat-db45
-ConsoleKit-libs
-coreutils
-cpio
-cracklib
-cracklib-dicts
-crontabs
-cyrus-sasl-lib
-db4
-dbus
-dbus-libs
-device-mapper
-device-mapper-libs
-dhclient
-dirmngr
-e2fsprogs
-e2fsprogs-libs
-elfutils-libelf
-ethtool
-expat
-fedora-release
-fedora-release-notes
-file
-file-libs
-filesystem
-findutils
-gamin
-gawk
-gdbm
-glib2
-glibc
-glibc-common
-gnupg2
-gpgme
-grep
-info
-initscripts
-iproute
-iputils
-keyutils-libs
-krb5-libs
-libacl
-libattr
-libcap
-libcurl
-libgcc
-libgcrypt
-libgpg-error
-libidn
-libksba
-libselinux
-libsepol
-libstdc++
-libusb
-libvolume_id
-libxml2
-linux-atm-libs
-logrotate
-lua
-MAKEDEV
-mingetty
-module-init-tools
-ncurses
-ncurses-base
-ncurses-libs
-net-tools
-nspr
-nss
-openldap
-openssl
-pam
-passwd
-pcre
-pinentry
-popt
-procps
-psmisc
-pth
-pygpgme
-python
-python-iniparse
-python-libs
-python-urlgrabber
-readline
-rpm
-rpm-libs
-rpm-python
-rsyslog
-sed
-setup
-shadow-utils
-sqlite
-sysvinit-tools
-tzdata
-udev
-upstart
-util-linux-ng
-vim-minimal
-yum
-yum-metadata-parser
-zlib
diff -ruN rinse-1.7.orig/etc/fedora-core-7.packages rinse-1.7/etc/fedora-core-7.packages
--- rinse-1.7.orig/etc/fedora-core-7.packages	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/etc/fedora-core-7.packages	1970-01-01 09:00:00.000000000 +0900
@@ -1,85 +0,0 @@
-#
-#  Packages which we'll need to download for a minimal installation
-# of Fedora Core 7.
-#
-
-
-MAKEDEV
-SysVinit
-audit-libs
-basesystem
-bash
-beecrypt
-bzip2-libs
-chkconfig
-coreutils
-cracklib
-cracklib-dicts
-db4
-device-mapper
-e2fsprogs
-e2fsprogs-libs
-elfutils-libelf
-ethtool
-expat
-filesystem
-findutils
-gawk
-gdbm
-glib2
-glibc
-glibc-common
-grep
-info
-initscripts
-iproute
-iputils
-krb5-libs
-libacl
-libattr
-libcap
-libgcc
-libidn
-keyutils-libs
-libselinux
-libsepol
-libstdc++
-libsysfs
-libtermcap
-libxml2
-libxml2-python
-mcstrans
-mingetty
-mktemp
-module-init-tools
-ncurses
-neon
-net-tools
-openssl
-pam
-pcre
-popt
-procps
-psmisc
-python
-python-elementtree
-python-libs
-python-numeric
-python-sqlite
-python-urlgrabber
-readline
-rpm
-rpm-libs
-rpm-python
-sed
-setup
-shadow-utils
-sqlite
-sysklogd
-termcap
-tzdata
-udev
-util-linux
-yum
-yum-metadata-parser
-zlib
diff -ruN rinse-1.7.orig/etc/fedora-core-8.packages rinse-1.7/etc/fedora-core-8.packages
--- rinse-1.7.orig/etc/fedora-core-8.packages	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/etc/fedora-core-8.packages	1970-01-01 09:00:00.000000000 +0900
@@ -1,85 +0,0 @@
-#
-#  Packages which we'll need to download for a minimal installation
-# of Fedora Core 8.
-#
-
-
-MAKEDEV
-SysVinit
-audit-libs
-basesystem
-bash
-beecrypt
-bzip2-libs
-chkconfig
-coreutils
-cracklib
-cracklib-dicts
-db4
-device-mapper
-e2fsprogs
-e2fsprogs-libs
-elfutils-libelf
-ethtool
-expat
-filesystem
-findutils
-gawk
-gdbm
-glib2
-glibc
-glibc-common
-grep
-info
-initscripts
-iproute
-iputils
-krb5-libs
-libacl
-libattr
-libcap
-libgcc
-libidn
-keyutils-libs
-libselinux
-libsepol
-libstdc++
-libsysfs
-libtermcap
-libxml2
-libxml2-python
-mcstrans
-mingetty
-mktemp
-module-init-tools
-ncurses
-neon
-net-tools
-openssl
-pam
-pcre
-popt
-procps
-psmisc
-python
-python-elementtree
-python-libs
-python-numeric
-python-sqlite
-python-urlgrabber
-readline
-rpm
-rpm-libs
-rpm-python
-sed
-setup
-shadow-utils
-sqlite
-sysklogd
-termcap
-tzdata
-udev
-util-linux
-yum
-yum-metadata-parser
-zlib
diff -ruN rinse-1.7.orig/etc/fedora-core-9.packages rinse-1.7/etc/fedora-core-9.packages
--- rinse-1.7.orig/etc/fedora-core-9.packages	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/etc/fedora-core-9.packages	1970-01-01 09:00:00.000000000 +0900
@@ -1,103 +0,0 @@
-audit-libs
-basesystem
-bash
-bzip2-libs
-chkconfig
-ConsoleKit-libs
-coreutils
-cpio
-cracklib
-cracklib-dicts
-crontabs
-cyrus-sasl-lib
-db4
-dbus
-dbus-libs
-device-mapper
-device-mapper-libs
-dhclient
-dirmngr
-e2fsprogs
-e2fsprogs-libs
-elfutils-libelf
-ethtool
-event-compat-sysv
-expat
-fedora-release
-fedora-release-notes
-filesystem
-findutils
-gamin
-gawk
-gdbm
-glib2
-glibc
-glibc-common
-gnupg2
-gpgme
-grep
-info
-initscripts
-iproute
-iputils
-keyutils-libs
-krb5-libs
-libacl
-libattr
-libcap
-libcurl
-libgcc
-libgcrypt
-libgpg-error
-libidn
-libksba
-libselinux
-libsepol
-libstdc++
-libsysfs
-libusb
-libvolume_id
-libxml2
-linux-atm-libs
-logrotate
-MAKEDEV
-mingetty
-module-init-tools
-ncurses
-ncurses-base
-ncurses-libs
-net-tools
-nspr
-nss
-openldap
-openssl
-pam
-pcre
-pinentry
-popt
-procps
-psmisc
-pth
-pygpgme
-python
-python-iniparse
-python-libs
-python-urlgrabber
-readline
-rpm
-rpm-libs
-rpm-python
-rsyslog
-sed
-setup
-shadow-utils
-sqlite
-sysvinit-tools
-tzdata
-udev
-upstart
-util-linux-ng
-vim-minimal
-yum
-yum-metadata-parser
-zlib
diff -ruN rinse-1.7.orig/etc/opensuse-11.0.packages rinse-1.7/etc/opensuse-11.0.packages
--- rinse-1.7.orig/etc/opensuse-11.0.packages	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/etc/opensuse-11.0.packages	2011-02-23 01:32:13.000000000 +0900
@@ -72,6 +72,7 @@
 libzio
 libzypp
 login
+makedev
 mingetty
 module-init-tools
 ncurses-utils
diff -ruN rinse-1.7.orig/etc/opensuse-11.1.packages rinse-1.7/etc/opensuse-11.1.packages
--- rinse-1.7.orig/etc/opensuse-11.1.packages	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/etc/opensuse-11.1.packages	2011-02-23 01:32:15.000000000 +0900
@@ -78,6 +78,7 @@
 libzio
 libzypp
 login
+makedev
 mingetty
 module-init-tools
 ncurses-utils
diff -ruN rinse-1.7.orig/etc/opensuse-11.2.packages rinse-1.7/etc/opensuse-11.2.packages
--- rinse-1.7.orig/etc/opensuse-11.2.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/opensuse-11.2.packages	2011-02-23 01:22:03.000000000 +0900
@@ -0,0 +1,131 @@
+#
+#  Packages which we'll need to download for a minimal installation
+# OpenSuSE 11.1
+#
+
+
+aaa_base
+audit-libs
+bash
+boost-license
+bzip2
+ConsoleKit
+coreutils
+coreutils-lang
+cpio
+cpio-lang
+cracklib
+cracklib-dict-small
+cyrus-sasl
+dbus-1
+dbus-1-glib
+device-mapper
+diffutils
+dirmngr
+e2fsprogs
+ethtool
+expat
+filesystem
+fillup
+findutils
+gawk
+gdbm
+glib2
+glib2-lang
+glib2-branding-upstream
+glibc
+gpg2
+gpg2-lang
+grep
+gzip
+hal
+info
+insserv
+keyutils-libs
+krb5
+libacl
+libattr
+libboost_signals1_36_0
+libbz2-1
+libcom_err2
+libcurl4
+libdb-4_5
+libexpat1
+libgcc43
+libgcrypt11
+libglib-2_0-0
+libgobject-2_0-0
+libgthread-2_0-0
+libgpg-error0
+libidn
+libksba
+libldap-2_4-2
+libncurses5
+libnscd
+libopenssl0_9_8
+libreadline5
+libreiserfs
+libselinux1
+libsepol1
+libsmbios2
+libstdc++43
+libusb-0_1-4
+libuuid1
+libvolume_id1
+libxcrypt
+libxml2
+libxml2-python
+libzio
+libzypp
+login
+makedev
+mingetty
+module-init-tools
+ncurses-utils
+neon
+net-tools
+openSUSE-release
+openSUSE-release-ftp
+openslp
+pam
+pam-config
+pam-modules
+parted
+pciutils
+pcre
+perl-base
+permissions
+pinentry
+pm-utils
+pmtools
+PolicyKit
+popt
+procps
+psmisc
+pth
+pwdutils
+python
+python-urlgrabber
+rpm
+rpm-python
+satsolver-tools
+sed
+setserial
+sysvinit
+termcap
+terminfo-base
+udev
+util-linux
+uuid-runtime
+zlib
+zypper
+
+# New to 11.2
+libreadline6
+libaugeas0
+libstdc++44
+libgcc44
+liblua5_1
+libpopt0
+libelf1
+liblzma0
diff -ruN rinse-1.7.orig/etc/opensuse-11.3.packages rinse-1.7/etc/opensuse-11.3.packages
--- rinse-1.7.orig/etc/opensuse-11.3.packages	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/etc/opensuse-11.3.packages	2011-02-23 01:22:17.000000000 +0900
@@ -0,0 +1,136 @@
+#
+#  Packages which we'll need to download for a minimal installation
+# OpenSuSE 11.1
+#
+
+
+aaa_base
+audit-libs
+bash
+boost-license
+bzip2
+ConsoleKit
+coreutils
+coreutils-lang
+cpio
+cpio-lang
+cracklib
+cracklib-dict-small
+cyrus-sasl
+dbus-1
+dbus-1-glib
+device-mapper
+diffutils
+dirmngr
+e2fsprogs
+ethtool
+expat
+filesystem
+fillup
+findutils
+gawk
+gdbm
+glib2
+glib2-lang
+glib2-branding-upstream
+glibc
+gpg2
+gpg2-lang
+grep
+gzip
+hal
+info
+insserv
+keyutils-libs
+krb5
+libacl
+libattr
+libboost_signals1_36_0
+libbz2-1
+libcom_err2
+libcurl4
+libdb-4_5
+libexpat1
+libgcc43
+libgcrypt11
+libglib-2_0-0
+libgobject-2_0-0
+libgthread-2_0-0
+libgpg-error0
+libidn
+libksba
+libldap-2_4-2
+libncurses5
+libnscd
+libopenssl0_9_8
+libreadline5
+libreiserfs
+libselinux1
+libsepol1
+libsmbios2
+libstdc++43
+libusb-0_1-4
+libuuid1
+libvolume_id1
+libxcrypt
+libxml2
+libxml2-python
+libzio
+libzypp
+login
+makedev
+mingetty
+module-init-tools
+ncurses-utils
+neon
+net-tools
+openSUSE-release
+openSUSE-release-ftp
+openslp
+pam
+pam-config
+pam-modules
+parted
+pciutils
+pcre
+perl-base
+permissions
+pinentry
+pm-utils
+pmtools
+popt
+procps
+psmisc
+pth
+pwdutils
+python
+python-urlgrabber
+rpm
+rpm-python
+satsolver-tools
+sed
+setserial
+sysvinit
+termcap
+terminfo-base
+udev
+util-linux
+uuid-runtime
+zlib
+zypper
+
+# New to 11.2
+libreadline6
+libaugeas0
+liblua5_1
+libpopt0
+libelf1
+liblzma0
+
+# New to 11.3
+libstdc++45
+libgcc45
+libopenssl1_0_0
+libassuan0
+libssh2-1
+libudev0
diff -ruN rinse-1.7.orig/etc/rinse.conf rinse-1.7/etc/rinse.conf
--- rinse-1.7.orig/etc/rinse.conf	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/etc/rinse.conf	2011-02-23 01:34:37.000000000 +0900
@@ -11,13 +11,13 @@
 
 
 [centos-4]
-mirror       = http://mirror.bytemark.co.uk/centos/4/os/i386/CentOS/RPMS/
-mirror.amd64 = http://mirror.bytemark.co.uk/centos/4/os/x86_64/CentOS/RPMS/
+mirror       = http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/
+mirror.amd64 = http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/
 
 
 [centos-5]
-mirror       = http://mirror.bytemark.co.uk/centos/5/os/i386/CentOS/
-mirror.amd64 = http://mirror.bytemark.co.uk/centos/5/os/x86_64/CentOS/
+mirror       = http://mirror.centos.org/centos/5/os/i386/CentOS/
+mirror.amd64 = http://mirror.centos.org/centos/5/os/x86_64/CentOS/
 
 
 [fedora-core-4]
@@ -35,25 +35,38 @@
 mirror.amd64 = http://ftp.heanet.ie/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/
 
 
-[fedora-core-7]
-mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/7/Fedora/i386/os/Fedora/
-mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/7/Fedora/x86_64/os/Fedora/
+[fedora-7]
+mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/7/Fedora/i386/os/Fedora/
+mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/7/Fedora/x86_64/os/Fedora/
 
 
-[fedora-core-8]
-mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/8/Fedora/i386/os/Packages/
-mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/8/Fedora/x86_64/os/Packages/
+[fedora-8]
+mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Fedora/i386/os/Packages/
+mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Fedora/x86_64/os/Packages/
 
 
+[fedora-9]
+mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/i386/os/Packages/
+mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/x86_64/os/Packages/
 
-[fedora-core-9]
-mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/9/Fedora/i386/os/Packages/
-mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/9/Fedora/x86_64/os/Packages/
 
+[fedora-10]
+mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Fedora/i386/os/Packages/
+mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Fedora/x86_64/os/Packages/
 
-[fedora-core-10]
-mirror       = http://mirrors.vexs.net/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/
-mirror.amd64 = http://mirrors.vexs.net/pub/fedora/linux/releases/10/Fedora/x86_64/os/Packages/
+
+[fedora-12]
+mirror       = http://mirrors.kernel.org/fedora/releases/12/Fedora/i386/os/Packages/
+mirror.amd64 = http://mirrors.kernel.org/fedora/releases/12/Fedora/x86_64/os/Packages/
+
+
+[fedora-13]
+mirror       = http://mirrors.kernel.org/fedora/releases/13/Fedora/i386/os/Packages/
+mirror.amd64 = http://mirrors.kernel.org/fedora/releases/13/Fedora/x86_64/os/Packages/
+
+[fedora-14]
+mirror       = http://mirrors.kernel.org/fedora/releases/14/Fedora/i386/os/Packages/
+mirror.amd64 = http://mirrors.kernel.org/fedora/releases/14/Fedora/x86_64/os/Packages/
 
 
 [opensuse-10.1]
@@ -72,11 +85,19 @@
 
 
 [opensuse-11.0]
-mirror       = http://download.opensuse.org/distribution/11.0/repo/oss/suse/i686/
+mirror       = http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/
 mirror.amd64 = http://download.opensuse.org/distribution/11.0/repo/oss/suse/x86_64/
 
 
 [opensuse-11.1]
-mirror       = http://download.opensuse.org/distribution/11.1/repo/oss/suse/i686/
+mirror       = http://download.opensuse.org/distribution/11.1/repo/oss/suse/i586/
 mirror.amd64 = http://download.opensuse.org/distribution/11.1/repo/oss/suse/x86_64/
 
+
+[opensuse-11.2]
+mirror       = http://download.opensuse.org/distribution/11.2/repo/oss/suse/i586/
+mirror.amd64 = http://download.opensuse.org/distribution/11.2/repo/oss/suse/x86_64/
+
+[opensuse-11.3]
+mirror       = http://download.opensuse.org/distribution/11.3/repo/oss/suse/i586/
+mirror.amd64 = http://download.opensuse.org/distribution/11.3/repo/oss/suse/x86_64/
diff -ruN rinse-1.7.orig/scripts/centos-5/post-install.sh rinse-1.7/scripts/centos-5/post-install.sh
--- rinse-1.7.orig/scripts/centos-5/post-install.sh	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/scripts/centos-5/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -29,6 +29,19 @@
 done
 
 #
+#  Record arch, if present.
+#
+if [ -d $prefix/etc/rpm ]; then
+
+    #
+    #  If i386 then record this
+    #
+    if [ "$arch" = "i386" ]; then
+        echo "i686-centos-linux-gnu" >> $prefix/etc/rpm/platform
+    fi
+fi
+
+#
 #  4.  Run "yum install yum".
 #
 echo "  Mounting /proc"
diff -ruN rinse-1.7.orig/scripts/fedora-10/post-install.sh rinse-1.7/scripts/fedora-10/post-install.sh
--- rinse-1.7.orig/scripts/fedora-10/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/fedora-10/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,115 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the yum directory, so that
+#     yum doesn't need to make them again.
+#
+echo "  Setting up YUM cache"
+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages/
+fi
+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
+fi
+
+for i in ${prefix}/*.rpm ; do
+    cp $i ${prefix}/var/cache/yum/core/packages/
+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
+done
+
+
+
+#
+#  3.  Ensure that Yum has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+echo "  Creating yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+cachedir=/var/cache/yum
+debuglevel=1
+reposdir=/dev/null
+logfile=/var/log/yum.log
+retries=20
+obsoletes=1
+gpgcheck=0
+assumeyes=1
+
+# repos
+
+[core]
+name=core
+baseurl=$mirror
+
+EOF
+
+
+#
+#  4.  Run "yum install yum".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Priming the yum cache"
+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages
+fi
+cp /var/cache/rinse/fedora-10.$ARCH/* ${prefix}/var/cache/yum/core/packages/
+
+echo "  Bootstrapping yum"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/yum clean all
+
+umount ${prefix}/proc
+
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-11/post-install.sh rinse-1.7/scripts/fedora-11/post-install.sh
--- rinse-1.7.orig/scripts/fedora-11/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/fedora-11/post-install.sh	2011-02-23 01:24:38.000000000 +0900
@@ -0,0 +1,115 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the yum directory, so that
+#     yum doesn't need to make them again.
+#
+echo "  Setting up YUM cache"
+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages/
+fi
+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
+fi
+
+for i in ${prefix}/*.rpm ; do
+    cp $i ${prefix}/var/cache/yum/core/packages/
+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
+done
+
+
+
+#
+#  3.  Ensure that Yum has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+echo "  Creating yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+cachedir=/var/cache/yum
+debuglevel=1
+reposdir=/dev/null
+logfile=/var/log/yum.log
+retries=20
+obsoletes=1
+gpgcheck=0
+assumeyes=1
+
+# repos
+
+[core]
+name=core
+baseurl=$mirror
+
+EOF
+
+
+#
+#  4.  Run "yum install yum".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Priming the yum cache"
+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages
+fi
+cp /var/cache/rinse/fedora-11.$ARCH/* ${prefix}/var/cache/yum/core/packages/
+
+echo "  Bootstrapping yum"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/yum clean all
+
+umount ${prefix}/proc
+
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-12/post-install.sh rinse-1.7/scripts/fedora-12/post-install.sh
--- rinse-1.7.orig/scripts/fedora-12/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/fedora-12/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,121 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the yum directory, so that
+#     yum doesn't need to make them again.
+#
+echo "  Setting up YUM cache"
+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages/
+fi
+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
+fi
+
+for i in ${prefix}/*.rpm ; do
+    cp $i ${prefix}/var/cache/yum/core/packages/
+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
+done
+
+
+
+#
+#  3.  Ensure that Yum has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+# A correct mirror URL does not contain /Packages on the end
+mirror=`dirname $mirror`
+
+echo "  Creating initial yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+reposdir=/dev/null
+logfile=/var/log/yum.log
+
+[core]
+name=core
+baseurl=$mirror
+EOF
+
+
+#
+#  4.  Run "yum install yum".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Priming the yum cache"
+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages
+fi
+cp /var/cache/rinse/fedora-12.$ARCH/* ${prefix}/var/cache/yum/core/packages/
+
+echo "  Bootstrapping yum"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /sbin/MAKEDEV urandom
+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
+
+# Can use regular repositories now
+echo "  Creating final yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+logfile=/var/log/yum.log
+gpgcheck=1
+
+# PUT YOUR REPOS HERE OR IN separate files named file.repo
+# in /etc/yum.repos.d
+EOF
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/yum clean all
+
+umount ${prefix}/proc
+
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-13/post-install.sh rinse-1.7/scripts/fedora-13/post-install.sh
--- rinse-1.7.orig/scripts/fedora-13/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/fedora-13/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,121 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the yum directory, so that
+#     yum doesn't need to make them again.
+#
+echo "  Setting up YUM cache"
+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages/
+fi
+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
+fi
+
+for i in ${prefix}/*.rpm ; do
+    cp $i ${prefix}/var/cache/yum/core/packages/
+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
+done
+
+
+
+#
+#  3.  Ensure that Yum has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+# A correct mirror URL does not contain /Packages on the end
+mirror=`dirname $mirror`
+
+echo "  Creating initial yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+reposdir=/dev/null
+logfile=/var/log/yum.log
+
+[core]
+name=core
+baseurl=$mirror
+EOF
+
+
+#
+#  4.  Run "yum install yum".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Priming the yum cache"
+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages
+fi
+cp /var/cache/rinse/fedora-13.$ARCH/* ${prefix}/var/cache/yum/core/packages/
+
+echo "  Bootstrapping yum"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /sbin/MAKEDEV urandom
+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
+
+# Can use regular repositories now
+echo "  Creating final yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+logfile=/var/log/yum.log
+gpgcheck=1
+
+# PUT YOUR REPOS HERE OR IN separate files named file.repo
+# in /etc/yum.repos.d
+EOF
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/yum clean all
+
+umount ${prefix}/proc
+
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-14/post-install.sh rinse-1.7/scripts/fedora-14/post-install.sh
--- rinse-1.7.orig/scripts/fedora-14/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/fedora-14/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,120 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the yum directory, so that
+#     yum doesn't need to make them again.
+#
+echo "  Setting up YUM cache"
+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages/
+fi
+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
+fi
+
+for i in ${prefix}/*.rpm ; do
+    cp $i ${prefix}/var/cache/yum/core/packages/
+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
+done
+
+
+
+#
+#  3.  Ensure that Yum has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+# A correct mirror URL does not contain /Packages on the end
+mirror=`dirname $mirror`
+
+echo "  Creating initial yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+reposdir=/dev/null
+logfile=/var/log/yum.log
+
+[core]
+name=core
+baseurl=$mirror
+EOF
+
+
+#
+#  4.  Run "yum install yum".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Priming the yum cache"
+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages
+fi
+cp /var/cache/rinse/fedora-14.$ARCH/* ${prefix}/var/cache/yum/core/packages/
+
+echo "  Bootstrapping yum"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
+
+# Can use regular repositories now
+echo "  Creating final yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+logfile=/var/log/yum.log
+gpgcheck=1
+
+# PUT YOUR REPOS HERE OR IN separate files named file.repo
+# in /etc/yum.repos.d
+EOF
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/yum clean all
+
+umount ${prefix}/proc
+
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-7/post-install.sh rinse-1.7/scripts/fedora-7/post-install.sh
--- rinse-1.7.orig/scripts/fedora-7/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/fedora-7/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,112 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the yum directory, so that
+#     yum doesn't need to make them again.
+#
+echo "  Setting up YUM cache"
+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages/
+fi
+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
+fi
+
+for i in ${prefix}/*.rpm ; do
+    cp $i ${prefix}/var/cache/yum/core/packages/
+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
+done
+
+
+
+#
+#  3.  Ensure that Yum has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+echo "  Creating yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+cachedir=/var/cache/yum
+debuglevel=1
+reposdir=/dev/null
+logfile=/var/log/yum.log
+retries=20
+obsoletes=1
+gpgcheck=0
+assumeyes=1
+
+# repos
+
+[core]
+name=core
+baseurl=$mirror
+
+[updates-released]
+name=updates
+baseurl=$mirror
+EOF
+
+
+#
+#  4.  Run "yum install yum".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Bootstrapping yum"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/yum clean all
+
+umount ${prefix}/proc
+
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-8/post-install.sh rinse-1.7/scripts/fedora-8/post-install.sh
--- rinse-1.7.orig/scripts/fedora-8/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/fedora-8/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,118 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the yum directory, so that
+#     yum doesn't need to make them again.
+#
+echo "  Setting up YUM cache"
+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages/
+fi
+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
+fi
+
+for i in ${prefix}/*.rpm ; do
+    cp $i ${prefix}/var/cache/yum/core/packages/
+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
+done
+
+
+
+#
+#  3.  Ensure that Yum has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+echo "  Creating yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+cachedir=/var/cache/yum
+debuglevel=1
+reposdir=/dev/null
+logfile=/var/log/yum.log
+retries=20
+obsoletes=1
+gpgcheck=0
+assumeyes=1
+
+# repos
+
+[core]
+name=core
+baseurl=$mirror
+
+[updates-released]
+name=updates
+baseurl=$mirror
+EOF
+
+
+#
+#  4.  Run "yum install yum".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Priming the yum cache"
+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages
+fi
+cp /var/cache/rinse/fedora-8.$ARCH/* ${prefix}/var/cache/yum/core/packages/
+
+echo "  Bootstrapping yum"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/yum clean all
+
+umount ${prefix}/proc
+
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-9/post-install.sh rinse-1.7/scripts/fedora-9/post-install.sh
--- rinse-1.7.orig/scripts/fedora-9/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/fedora-9/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,115 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the yum directory, so that
+#     yum doesn't need to make them again.
+#
+echo "  Setting up YUM cache"
+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages/
+fi
+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
+fi
+
+for i in ${prefix}/*.rpm ; do
+    cp $i ${prefix}/var/cache/yum/core/packages/
+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
+done
+
+
+
+#
+#  3.  Ensure that Yum has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+echo "  Creating yum.conf"
+cat > ${prefix}/etc/yum.conf <<EOF
+[main]
+cachedir=/var/cache/yum
+debuglevel=1
+reposdir=/dev/null
+logfile=/var/log/yum.log
+retries=20
+obsoletes=1
+gpgcheck=0
+assumeyes=1
+
+# repos
+
+[core]
+name=core
+baseurl=$mirror
+
+EOF
+
+
+#
+#  4.  Run "yum install yum".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Priming the yum cache"
+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
+    mkdir -p ${prefix}/var/cache/yum/core/packages
+fi
+cp /var/cache/rinse/fedora-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/
+
+echo "  Bootstrapping yum"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/yum clean all
+
+umount ${prefix}/proc
+
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-core-10/post-install.sh rinse-1.7/scripts/fedora-core-10/post-install.sh
--- rinse-1.7.orig/scripts/fedora-core-10/post-install.sh	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/scripts/fedora-core-10/post-install.sh	1970-01-01 09:00:00.000000000 +0900
@@ -1,115 +0,0 @@
-#!/bin/sh
-#
-#  Customise the distribution post-install.
-#
-
-
-
-prefix=$1
-
-if [ ! -d "${prefix}" ]; then
-  echo "Serious error - the named directory doesn't exist."
-  exit
-fi
-
-
-
-#
-#  1.  Make sure there is a resolv.conf file present, such that
-#     DNS lookups succeed.
-#
-echo "  Creating resolv.conf"
-if [ ! -d "${prefix}/etc/" ]; then
-    mkdir -p "${prefix}/etc/"
-fi
-cp /etc/resolv.conf "${prefix}/etc/"
-
-
-#
-#  2.  Copy the cached .RPM files into the yum directory, so that
-#     yum doesn't need to make them again.
-#
-echo "  Setting up YUM cache"
-if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
-    mkdir -p ${prefix}/var/cache/yum/core/packages/
-fi
-if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
-    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
-fi
-
-for i in ${prefix}/*.rpm ; do
-    cp $i ${prefix}/var/cache/yum/core/packages/
-    cp $i ${prefix}/var/cache/yum/updates-released/packages/
-done
-
-
-
-#
-#  3.  Ensure that Yum has a working configuration file.
-#
-arch=i386
-if [ $ARCH = "amd64" ] ; then
-    arch=x86_64
-fi
-
-echo "  Creating yum.conf"
-cat > ${prefix}/etc/yum.conf <<EOF
-[main]
-cachedir=/var/cache/yum
-debuglevel=1
-reposdir=/dev/null
-logfile=/var/log/yum.log
-retries=20
-obsoletes=1
-gpgcheck=0
-assumeyes=1
-
-# repos
-
-[core]
-name=core
-baseurl=$mirror
-
-EOF
-
-
-#
-#  4.  Run "yum install yum".
-#
-echo "  Mounting /proc"
-if [ ! -d "${prefix}/proc" ]; then
-    mkdir -p "${prefix}/proc"
-fi
-mount -o bind /proc ${prefix}/proc
-
-echo "  Priming the yum cache"
-if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
-    mkdir -p ${prefix}/var/cache/yum/core/packages
-fi
-cp /var/cache/rinse/fedora-core-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/
-
-echo "  Bootstrapping yum"
-chroot ${prefix} /sbin/ldconfig
-chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
-chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
-chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
-
-
-#
-#  5.  Clean up
-#
-echo "  Cleaning up"
-chroot ${prefix} /usr/bin/yum clean all
-
-umount ${prefix}/proc
-
-
-#
-#  6.  Remove the .rpm files from the prefix root.
-#
-echo "  Final tidy..."
-for i in ${prefix}/*.rpm; do
-    rm -f $i
-done
-find ${prefix} -name '*.rpmorig' -delete
-find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-core-7/post-install.sh rinse-1.7/scripts/fedora-core-7/post-install.sh
--- rinse-1.7.orig/scripts/fedora-core-7/post-install.sh	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/scripts/fedora-core-7/post-install.sh	1970-01-01 09:00:00.000000000 +0900
@@ -1,112 +0,0 @@
-#!/bin/sh
-#
-#  Customise the distribution post-install.
-#
-
-
-
-prefix=$1
-
-if [ ! -d "${prefix}" ]; then
-  echo "Serious error - the named directory doesn't exist."
-  exit
-fi
-
-
-
-#
-#  1.  Make sure there is a resolv.conf file present, such that
-#     DNS lookups succeed.
-#
-echo "  Creating resolv.conf"
-if [ ! -d "${prefix}/etc/" ]; then
-    mkdir -p "${prefix}/etc/"
-fi
-cp /etc/resolv.conf "${prefix}/etc/"
-
-
-#
-#  2.  Copy the cached .RPM files into the yum directory, so that
-#     yum doesn't need to make them again.
-#
-echo "  Setting up YUM cache"
-if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
-    mkdir -p ${prefix}/var/cache/yum/core/packages/
-fi
-if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
-    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
-fi
-
-for i in ${prefix}/*.rpm ; do
-    cp $i ${prefix}/var/cache/yum/core/packages/
-    cp $i ${prefix}/var/cache/yum/updates-released/packages/
-done
-
-
-
-#
-#  3.  Ensure that Yum has a working configuration file.
-#
-arch=i386
-if [ $ARCH = "amd64" ] ; then
-    arch=x86_64
-fi
-
-echo "  Creating yum.conf"
-cat > ${prefix}/etc/yum.conf <<EOF
-[main]
-cachedir=/var/cache/yum
-debuglevel=1
-reposdir=/dev/null
-logfile=/var/log/yum.log
-retries=20
-obsoletes=1
-gpgcheck=0
-assumeyes=1
-
-# repos
-
-[core]
-name=core
-baseurl=$mirror
-
-[updates-released]
-name=updates
-baseurl=$mirror
-EOF
-
-
-#
-#  4.  Run "yum install yum".
-#
-echo "  Mounting /proc"
-if [ ! -d "${prefix}/proc" ]; then
-    mkdir -p "${prefix}/proc"
-fi
-mount -o bind /proc ${prefix}/proc
-
-echo "  Bootstrapping yum"
-chroot ${prefix} /sbin/ldconfig
-chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
-chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
-chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
-
-
-#
-#  5.  Clean up
-#
-echo "  Cleaning up"
-chroot ${prefix} /usr/bin/yum clean all
-
-umount ${prefix}/proc
-
-
-#
-#  6.  Remove the .rpm files from the prefix root.
-#
-echo "  Final tidy..."
-for i in ${prefix}/*.rpm; do
-    rm -f $i
-done
-find ${prefix} -name '*.rpmorig' -delete
-find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-core-8/post-install.sh rinse-1.7/scripts/fedora-core-8/post-install.sh
--- rinse-1.7.orig/scripts/fedora-core-8/post-install.sh	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/scripts/fedora-core-8/post-install.sh	1970-01-01 09:00:00.000000000 +0900
@@ -1,118 +0,0 @@
-#!/bin/sh
-#
-#  Customise the distribution post-install.
-#
-
-
-
-prefix=$1
-
-if [ ! -d "${prefix}" ]; then
-  echo "Serious error - the named directory doesn't exist."
-  exit
-fi
-
-
-
-#
-#  1.  Make sure there is a resolv.conf file present, such that
-#     DNS lookups succeed.
-#
-echo "  Creating resolv.conf"
-if [ ! -d "${prefix}/etc/" ]; then
-    mkdir -p "${prefix}/etc/"
-fi
-cp /etc/resolv.conf "${prefix}/etc/"
-
-
-#
-#  2.  Copy the cached .RPM files into the yum directory, so that
-#     yum doesn't need to make them again.
-#
-echo "  Setting up YUM cache"
-if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
-    mkdir -p ${prefix}/var/cache/yum/core/packages/
-fi
-if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
-    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
-fi
-
-for i in ${prefix}/*.rpm ; do
-    cp $i ${prefix}/var/cache/yum/core/packages/
-    cp $i ${prefix}/var/cache/yum/updates-released/packages/
-done
-
-
-
-#
-#  3.  Ensure that Yum has a working configuration file.
-#
-arch=i386
-if [ $ARCH = "amd64" ] ; then
-    arch=x86_64
-fi
-
-echo "  Creating yum.conf"
-cat > ${prefix}/etc/yum.conf <<EOF
-[main]
-cachedir=/var/cache/yum
-debuglevel=1
-reposdir=/dev/null
-logfile=/var/log/yum.log
-retries=20
-obsoletes=1
-gpgcheck=0
-assumeyes=1
-
-# repos
-
-[core]
-name=core
-baseurl=$mirror
-
-[updates-released]
-name=updates
-baseurl=$mirror
-EOF
-
-
-#
-#  4.  Run "yum install yum".
-#
-echo "  Mounting /proc"
-if [ ! -d "${prefix}/proc" ]; then
-    mkdir -p "${prefix}/proc"
-fi
-mount -o bind /proc ${prefix}/proc
-
-echo "  Priming the yum cache"
-if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
-    mkdir -p ${prefix}/var/cache/yum/core/packages
-fi
-cp /var/cache/rinse/fedora-core-8.$ARCH/* ${prefix}/var/cache/yum/core/packages/
-
-echo "  Bootstrapping yum"
-chroot ${prefix} /sbin/ldconfig
-chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
-chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
-chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
-
-
-#
-#  5.  Clean up
-#
-echo "  Cleaning up"
-chroot ${prefix} /usr/bin/yum clean all
-
-umount ${prefix}/proc
-
-
-#
-#  6.  Remove the .rpm files from the prefix root.
-#
-echo "  Final tidy..."
-for i in ${prefix}/*.rpm; do
-    rm -f $i
-done
-find ${prefix} -name '*.rpmorig' -delete
-find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/fedora-core-9/post-install.sh rinse-1.7/scripts/fedora-core-9/post-install.sh
--- rinse-1.7.orig/scripts/fedora-core-9/post-install.sh	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/scripts/fedora-core-9/post-install.sh	1970-01-01 09:00:00.000000000 +0900
@@ -1,115 +0,0 @@
-#!/bin/sh
-#
-#  Customise the distribution post-install.
-#
-
-
-
-prefix=$1
-
-if [ ! -d "${prefix}" ]; then
-  echo "Serious error - the named directory doesn't exist."
-  exit
-fi
-
-
-
-#
-#  1.  Make sure there is a resolv.conf file present, such that
-#     DNS lookups succeed.
-#
-echo "  Creating resolv.conf"
-if [ ! -d "${prefix}/etc/" ]; then
-    mkdir -p "${prefix}/etc/"
-fi
-cp /etc/resolv.conf "${prefix}/etc/"
-
-
-#
-#  2.  Copy the cached .RPM files into the yum directory, so that
-#     yum doesn't need to make them again.
-#
-echo "  Setting up YUM cache"
-if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
-    mkdir -p ${prefix}/var/cache/yum/core/packages/
-fi
-if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
-    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
-fi
-
-for i in ${prefix}/*.rpm ; do
-    cp $i ${prefix}/var/cache/yum/core/packages/
-    cp $i ${prefix}/var/cache/yum/updates-released/packages/
-done
-
-
-
-#
-#  3.  Ensure that Yum has a working configuration file.
-#
-arch=i386
-if [ $ARCH = "amd64" ] ; then
-    arch=x86_64
-fi
-
-echo "  Creating yum.conf"
-cat > ${prefix}/etc/yum.conf <<EOF
-[main]
-cachedir=/var/cache/yum
-debuglevel=1
-reposdir=/dev/null
-logfile=/var/log/yum.log
-retries=20
-obsoletes=1
-gpgcheck=0
-assumeyes=1
-
-# repos
-
-[core]
-name=core
-baseurl=$mirror
-
-EOF
-
-
-#
-#  4.  Run "yum install yum".
-#
-echo "  Mounting /proc"
-if [ ! -d "${prefix}/proc" ]; then
-    mkdir -p "${prefix}/proc"
-fi
-mount -o bind /proc ${prefix}/proc
-
-echo "  Priming the yum cache"
-if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
-    mkdir -p ${prefix}/var/cache/yum/core/packages
-fi
-cp /var/cache/rinse/fedora-core-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/
-
-echo "  Bootstrapping yum"
-chroot ${prefix} /sbin/ldconfig
-chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
-chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
-chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
-
-
-#
-#  5.  Clean up
-#
-echo "  Cleaning up"
-chroot ${prefix} /usr/bin/yum clean all
-
-umount ${prefix}/proc
-
-
-#
-#  6.  Remove the .rpm files from the prefix root.
-#
-echo "  Final tidy..."
-for i in ${prefix}/*.rpm; do
-    rm -f $i
-done
-find ${prefix} -name '*.rpmorig' -delete
-find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/opensuse-11.1/post-install.sh rinse-1.7/scripts/opensuse-11.1/post-install.sh
--- rinse-1.7.orig/scripts/opensuse-11.1/post-install.sh	2009-04-22 03:38:40.000000000 +0900
+++ rinse-1.7/scripts/opensuse-11.1/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -59,6 +59,11 @@
 
 EOF
 
+if [ $ARCH = "i386" ] ; then
+	echo "  Setting architecture to i686"
+	sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+fi
+
 
 #
 #  4.  Run "zypper install zypper".
@@ -73,7 +78,7 @@
 chroot ${prefix} /sbin/ldconfig
 chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null
 chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null
-chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install dhclient    2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null
 chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null
 
 
@@ -82,9 +87,10 @@
 #
 echo "  Cleaning up"
 chroot ${prefix} /usr/bin/zypper clean
-
 umount ${prefix}/proc
 
+echo "  Ending uuidd"
+pkill uuidd
 
 #
 #  6.  Remove the .rpm files from the prefix root.
diff -ruN rinse-1.7.orig/scripts/opensuse-11.2/post-install.sh rinse-1.7/scripts/opensuse-11.2/post-install.sh
--- rinse-1.7.orig/scripts/opensuse-11.2/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/opensuse-11.2/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,104 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+# There's no pre-existing /dev/zero nor is there one from the packages that are already unpacked.
+echo "  Creating devices in /dev"
+if ! [ -e "${prefix}/dev/zero" ]; then
+    mknod -m 666 "${prefix}/dev/zero" c 1 5
+fi
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the zypper directory, so that
+#     zypper doesn't need to fetch them again.
+#
+echo "  Setting up zypper cache"
+
+if [ ! -d "${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}" ]; then
+    mkdir -p ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}
+fi
+cp ${cache_dir}/${dist}.${ARCH}/* ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}
+
+
+#
+#  3.  Ensure that zypper has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+echo "  Creating zypper repo entry"
+[ -d "${prefix}/etc/zypp/repos.d" ] || mkdir -p ${prefix}/etc/zypp/repos.d
+cat > ${prefix}/etc/zypp/repos.d/${dist}.repo <<EOF
+[opensuse]
+name=${dist}
+baseurl=$(dirname $(dirname ${mirror}))
+enabled=1
+gpgcheck=1
+
+EOF
+
+if [ $ARCH = "i386" ] ; then
+	echo "  Setting architecture to i686"
+	sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+fi
+
+
+#
+#  4.  Run "zypper install zypper".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Bootstrapping zypper"
+chroot ${prefix} /sbin/ldconfig
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install syslog-ng   2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/zypper clean
+umount ${prefix}/proc
+
+echo "  Ending uuidd"
+pkill uuidd
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
diff -ruN rinse-1.7.orig/scripts/opensuse-11.3/post-install.sh rinse-1.7/scripts/opensuse-11.3/post-install.sh
--- rinse-1.7.orig/scripts/opensuse-11.3/post-install.sh	1970-01-01 09:00:00.000000000 +0900
+++ rinse-1.7/scripts/opensuse-11.3/post-install.sh	2010-11-24 17:04:23.000000000 +0900
@@ -0,0 +1,111 @@
+#!/bin/sh
+#
+#  Customise the distribution post-install.
+#
+
+prefix=$1
+
+if [ ! -d "${prefix}" ]; then
+  echo "Serious error - the named directory doesn't exist."
+  exit
+fi
+
+
+# There's no pre-existing /dev/zero nor is there one from the packages that are already unpacked.
+echo "  Creating devices in /dev"
+if ! [ -e "${prefix}/dev/zero" ]; then
+    mknod -m 666 "${prefix}/dev/zero" c 1 5
+fi
+
+#
+#  1.  Make sure there is a resolv.conf file present, such that
+#     DNS lookups succeed.
+#
+echo "  Creating resolv.conf"
+if [ ! -d "${prefix}/etc/" ]; then
+    mkdir -p "${prefix}/etc/"
+fi
+cp /etc/resolv.conf "${prefix}/etc/"
+
+
+#
+#  2.  Copy the cached .RPM files into the zypper directory, so that
+#     zypper doesn't need to fetch them again.
+#
+echo "  Setting up zypper cache"
+
+if [ ! -d "${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}" ]; then
+    mkdir -p ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}
+fi
+cp ${cache_dir}/${dist}.${ARCH}/* ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}
+
+
+#
+#  3.  Ensure that zypper has a working configuration file.
+#
+arch=i386
+if [ $ARCH = "amd64" ] ; then
+    arch=x86_64
+fi
+
+echo "  Creating zypper repo entry"
+[ -d "${prefix}/etc/zypp/repos.d" ] || mkdir -p ${prefix}/etc/zypp/repos.d
+cat > ${prefix}/etc/zypp/repos.d/${dist}.repo <<EOF
+[opensuse]
+name=${dist}
+baseurl=$(dirname $(dirname ${mirror}))
+enabled=1
+gpgcheck=1
+
+EOF
+
+if [ $ARCH = "i386" ] ; then
+	echo "  Setting architecture to i686"
+	sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+fi
+
+
+#
+#  4.  Run "zypper install zypper".
+#
+echo "  Mounting /proc"
+if [ ! -d "${prefix}/proc" ]; then
+    mkdir -p "${prefix}/proc"
+fi
+mount -o bind /proc ${prefix}/proc
+
+echo "  Bootstrapping zypper"
+chroot ${prefix} /sbin/ldconfig
+
+# Need key trusted to prevent warnings during package install
+chroot ${prefix} /usr/bin/zypper -n --gpg-auto-import-keys refresh --force-download
+
+# Need these two to be properly installed to prevent numerous errors during installation of other packages
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install PolicyKit permissions 2>/dev/null
+
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install syslog-ng   2>/dev/null
+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null
+
+
+#
+#  5.  Clean up
+#
+echo "  Cleaning up"
+chroot ${prefix} /usr/bin/zypper clean
+umount ${prefix}/proc
+
+echo "  Ending uuidd"
+pkill uuidd
+
+#
+#  6.  Remove the .rpm files from the prefix root.
+#
+echo "  Final tidy..."
+for i in ${prefix}/*.rpm; do
+    rm -f $i
+done
+find ${prefix} -name '*.rpmorig' -delete
+find ${prefix} -name '*.rpmnew' -delete
