From: Thierry Parmentelat Date: Fri, 27 Jun 2008 07:42:49 +0000 (+0000) Subject: merged changeset 9712 into trunk X-Git-Tag: 4.2-rc21~32 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4ef448e9f6f7593e6e9e8987a3658d0ee5483f99;p=build.git merged changeset 9712 into trunk --- diff --git a/build.common b/build.common index 9cd25f2a..d566e09d 100644 --- a/build.common +++ b/build.common @@ -395,7 +395,9 @@ EOF corename="" fi - cat >$vroot/etc/yum.conf < $yum_conf <>$vroot/etc/yum.conf <> $yum_conf <>$vroot/etc/yum.conf <> $yum_conf < /dev/null && yum_options="$yum_options --verbose" + yum_options="$yum_options -y" + yum_options="$yum_options -c $yum_conf" + yum_options="$yum_options --installroot=$vroot" + exclude_arg="" for exclude in $pkgs_excludes; do exclude_arg="$exclude_arg --exclude $exclude" @@ -462,13 +474,12 @@ fi # glibc must be specified explicitly for the correct arch to be # chosen. echo "* Installing glibc" - yum -c $vroot/etc/yum.conf --installroot=$vroot -y $exclude_arg install glibc + yum $yum_options $exclude_arg install glibc # Go, baby, go if [ -n "$pkgs_packages" ] ; then echo "* Installing optional packages" $pkgs_packages - yum -c $vroot/etc/yum.conf --installroot=$vroot -y $exclude_arg \ - install $pkgs_packages + yum $yum_options $exclude_arg install $pkgs_packages if ! rpm --root $vroot -q $pkgs_packages >/dev/null ; then echo "* Warning: Missing packages" rpm --root $vroot -q $pkgs_packages | grep "not installed" @@ -479,8 +490,7 @@ fi ## call yum sequentially to get finer-grained info on dependencies for grp in $pkgs_groups ; do echo "* Installing optional group $grp" - yum -c $vroot/etc/yum.conf --installroot=$vroot -y $exclude_arg \ - groupinstall "$grp" + yum $yum_options $exclude_arg groupinstall "$grp" done fi @@ -499,7 +509,7 @@ fi # Clean yum cache echo "* Cleaning up" - yum -c $vroot/etc/yum.conf --installroot=$vroot -y clean all + yum $yum_options clean all # Clean RPM state rm -f $vroot/var/lib/rpm/__db* @@ -510,6 +520,9 @@ fi ln -s /usr/share/zoneinfo/UTC $vroot/etc/localtime fi + echo "Dumping current list of rpms in /etc/mkfedora-rpms.txt" + chroot $vroot rpm -aq | sort > $vroot/etc/mkfedora-rpms.txt + # remove trap handler, as we are about to call it directly. trap - ERR INT diff --git a/config.planetlab/bootcd.pkgs b/config.planetlab/bootcd.pkgs index 8690a341..ff8b245e 100644 --- a/config.planetlab/bootcd.pkgs +++ b/config.planetlab/bootcd.pkgs @@ -2,7 +2,7 @@ groupname: PlanetLabBootcd groupdesc: PlanetLab BootCD # This is the replacement for the former mkfedora -k. The following packages # will get excluded from the stock fedora repos, as we need to use ours -kexclude: kernel* iptables iproute +kexclude: kernel* util-vserver* iptables iproute # from prep.sh, was hardwired as packagelist package: filesystem package: udev diff --git a/config.planetlab/bootstrapfs.pkgs b/config.planetlab/bootstrapfs.pkgs index 6dedaf94..553dfb86 100644 --- a/config.planetlab/bootstrapfs.pkgs +++ b/config.planetlab/bootstrapfs.pkgs @@ -4,7 +4,7 @@ groupname: PlanetLab groupdesc: PlanetLab Node Root # This is the replacement for the former mkfedora -k. The following packages # will get excluded from the stock fedora repos, as we need to use ours -kexclude: kernel* iptables iproute +kexclude: kernel* util-vserver* iptables iproute # package: kernel package: udev diff --git a/config.planetlab/vserver.pkgs b/config.planetlab/vserver.pkgs index 219dd6ec..75fcb1bf 100644 --- a/config.planetlab/vserver.pkgs +++ b/config.planetlab/vserver.pkgs @@ -2,7 +2,7 @@ groupname: PlanetLabSlice groupdesc: PlanetLab Slice Reference Image # This is the replacement for the former mkfedora -k. The following packages # will get excluded from the stock fedora repos, as we need to use ours -kexclude: kernel* iptables iproute +kexclude: kernel* util-vserver* iptables iproute # define packages package: bash package: coreutils