# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
-# $Id: prep.sh,v 1.13.6.1 2007/08/30 16:38:59 mef Exp $
+# $Id$
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
pldistro=planetlab
[ -n "$@" ] && pldistro=$1
-# Packages to install : see <pldistro>-<fcdistro>-bootcd.lst
+# Packages to install : see <pldistro>-bootcd.lst
# Unnecessary junk
junk=(
rpmquery --specfile bootcd.spec --queryformat '%{VERSION}\n' | head -1 >build/version.txt
# Install base system
-lst=${pldistro}-${pl_DISTRO_NAME}-bootcd.lst
-options=$(pl_getPackagesOptions $lst)
+lst=${pldistro}-bootcd.lst
+options=$(pl_getPackagesOptions2 ${pl_DISTRO_NAME} $lst)
pl_setup_chroot $bootcd $options -k
echo "* Installing fallback node configuration file"
install -D -m 644 conf_files/default-net.cnf $bootcd/usr/boot/default-net.cnf
-# Build pcitable for hardware detection
-echo "* Building pcitable for hardware detection"
-pci_map_file=$(find $bootcd/lib/modules/ -name modules.pcimap | head -1)
-module_dep_file=$(find $bootcd/lib/modules/ -name modules.dep | head -1)
-pci_table=$bootcd/usr/share/hwdata/pcitable
-$srcdir/BootManager/source/merge_hw_tables.py \
- $module_dep_file $pci_map_file $pci_table $bootcd/etc/pl_pcitable
-
# Copy /etc/passwd out
install -D -m 644 $bootcd/etc/passwd build/passwd