# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
-# $Id: prep.sh,v 1.9 2006/07/20 19:59:51 mlhuang Exp $
+# $Id: prep.sh,v 1.13 2006/08/21 20:45:23 mlhuang Exp $
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
# Packages to install
packagelist=(
-dev
+udev
dhclient
bash
coreutils
dos2unix
bind-utils
sharutils
+vconfig
)
# Unnecessary junk
junk=(
-boot
lib/obsolete
lib/tls
usr/share/cracklib
# Disable all services in reference image
chroot $bootcd sh -c "/sbin/chkconfig --list | awk '{ print \$1 }' | xargs -i /sbin/chkconfig {} off"
+# Install ipnmac (for SuperMicro machines with IPMI)
+echo "* Installing IPMI utilities"
+install -D -m 755 ipnmac/ipnmac.x86 $bootcd/usr/sbin/ipnmac
+
# Install configuration files
echo "* Installing configuration files"
for file in fstab mtab modprobe.conf inittab hosts sysctl.conf ; do
fi
done
+# Don't need /boot anymore
+rm -rf $bootcd/boot
+
# initramfs requires that /init be present
ln -sf /sbin/init $bootcd/init