Commit 4daa3c9d authored by Thomas Lange's avatar Thomas Lange

add slc-5 post script

parent 5a410dc0
# Scientific Linux CERN (SLC5)
if [ ! -d "${prefix}" ]; then
echo "Serious error - the named directory doesn't exist."
# rpm's can now be removed
rm -f ${prefix}/*.rpm
touch ${prefix}/etc/mtab
echo " Bootstrapping yum"
chroot ${prefix} /usr/bin/yum -y install yum vim-minimal dhclient 2>/dev/null
echo " cleaning up..."
chroot ${prefix} /usr/bin/yum clean all
umount ${prefix}/proc
umount ${prefix}/sys
# Install modprobe
if [ -e "${prefix}/etc/modprobe.d/modprobe.conf.dist" ]; then
cp "${prefix}/etc/modprobe.d/modprobe.conf.dist" "${prefix}/etc/modprobe.conf"
echo " : done."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment