# "Parse" out the packages and groups into the options passed to mkfedora
# -k = exclude kernel* packages
-lst="${pldistro}-base.lst"
-popts=$(pl_getPackagesOptions2 ${pl_DISTRO_NAME} $lst)
-gopts=$(pl_getGroupsOptions2 ${pl_DISTRO_NAME} $lst)
+pkgsfile=$(pl_locateDistroFile ../build/ ${pldistro} bootstrapfs.pkgs)
-options="${popts} ${gopts} -k"
-
-echo "+++++++++++++OPTIONS = ${options}"
+echo "+++++++++++++pkgsfile=$pkgsfile (and -k)"
# Populate a minimal /dev and then the files for the base PlanetLab-Bootstrap content
vref=${PWD}/base
install -d -m 755 ${vref}
-pl_mkfedora ${vref} ${options}
+pl_mkfedora ${vref} -k -f $pkgsfile
-for lst in ${pldistro}-filesystems/*.lst ; do
- NAME=$(basename $lst .lst)
+for pkgs in ../build/config.${pldistro}/bootstrapfs-*.pkgs ; do
+ NAME=$(basename $pkgs .pkgs | sed -e s,bootstrapfs-,,)
echo "--------START BUILDING PlanetLab-Bootstrap-${NAME}: $(date)"
# "Parse" out the packages and groups for yum
- packages=$(pl_getPackages2 ${pl_DISTRO_NAME} $lst)
- groups=$(pl_getGroups2 ${pl_DISTRO_NAME} $lst)
- echo "${NAME} has the following packages and groups: ${packages} ${groups}"
+ packages=$(pl_getPackages ${pl_DISTRO_NAME} $pkgs)
+ groups=$(pl_getGroups ${pl_DISTRO_NAME} $pkgs)
+ echo "${NAME} has the following packages : ${packages}"
+ echo "${NAME} has the following groups : ${groups}"
vdir=${PWD}/${pldistro}-filesystems/${NAME}
rm -rf ${vdir}/*
+++ /dev/null
-# Install the "PlanetLab" group. This requires that the PlanetLab
-# build system install the appropriate yumgroups.xml file (currently
-# build/groups/v4_yumgroups.xml) in $RPM_BUILD_DIR/../RPMS/ and that
-# mkfedora runs either yum-arch or createrepo on that directory. dev
-# is specified explicitly because of a stupid bug in its %post script
-# that causes its installation to fail; see the mkfedora script for a
-# full explanation. coreutils and python are specified explicitly
-# because groupinstall does not honor Requires(pre) dependencies
-# properly, most %pre scripts require coreutils to be installed first,
-# and some of our %post scripts require python.
-
-package: python
-group: PlanetLab
\ No newline at end of file