git://git.onelab.eu
/
bootcd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge to HEAD as of 2006-08-21
[bootcd.git]
/
prep.sh
diff --git
a/prep.sh
b/prep.sh
index
2a94d45
..
e1164aa
100755
(executable)
--- a/
prep.sh
+++ b/
prep.sh
@@
-8,7
+8,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
# 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
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
@@
-32,7
+32,7
@@
basearch=i386
# Packages to install
packagelist=(
# Packages to install
packagelist=(
-dev
+
u
dev
dhclient
bash
coreutils
dhclient
bash
coreutils
@@
-73,11
+73,11
@@
dosfstools
dos2unix
bind-utils
sharutils
dos2unix
bind-utils
sharutils
+vconfig
)
# Unnecessary junk
junk=(
)
# Unnecessary junk
junk=(
-boot
lib/obsolete
lib/tls
usr/share/cracklib
lib/obsolete
lib/tls
usr/share/cracklib
@@
-168,6
+168,10
@@
popd
# Disable all services in reference image
chroot $bootcd sh -c "/sbin/chkconfig --list | awk '{ print \$1 }' | xargs -i /sbin/chkconfig {} off"
# 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
# Install configuration files
echo "* Installing configuration files"
for file in fstab mtab modprobe.conf inittab hosts sysctl.conf ; do
@@
-206,6
+210,9
@@
for kernel in $bootcd/boot/vmlinuz-* ; do
fi
done
fi
done
+# Don't need /boot anymore
+rm -rf $bootcd/boot
+
# initramfs requires that /init be present
ln -sf /sbin/init $bootcd/init
# initramfs requires that /init be present
ln -sf /sbin/init $bootcd/init