/usr/lib/rinse/centos-5/post-install.sh is in rinse 3.2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | #!/bin/sh
#
#
prefix=$1
if [ ! -d "${prefix}" ]; then
echo "Serious error - the named directory doesn't exist."
exit
fi
touch ${prefix}/etc/mtab
# rpm's can now be removed
rm -f ${prefix}/*.rpm
#
# BUGFIX:
#
echo "BUGFIX"
mkdir -p ${prefix}/usr/lib/python2.4/site-packages/urlgrabber.skx
for i in ${prefix}/usr/lib/python2.4/site-packages/urlgrabber/keepalive.*; do
mv $i ${prefix}/usr/lib/python2.4/site-packages/urlgrabber.skx/
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
#
# Run "yum install yum".
#
echo " Bootstrapping yum"
chroot ${prefix} /usr/bin/yum -y install yum vim-minimal dhclient 2>/dev/null
#
# make 'passwd' work.
#
echo " Authfix"
chroot ${prefix} /usr/bin/yum -y install authconfig
chroot ${prefix} /usr/bin/authconfig --enableshadow --update
#
# 5. Clean up
#
echo " Cleaning up"
chroot ${prefix} /usr/bin/yum clean all
umount ${prefix}/proc
umount ${prefix}/sys
#
# 6. Remove the .rpm files from the prefix root.
#
echo " Final tidy..."
find ${prefix} -name '*.rpmorig' -delete
find ${prefix} -name '*.rpmnew' -delete
# Install modprobe
if [ -e "${prefix}/etc/modprobe.d/modprobe.conf.dist" ]; then
cp "${prefix}/etc/modprobe.d/modprobe.conf.dist" "${prefix}/etc/modprobe.conf"
fi
|