X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.sh;h=eed21a97e243822824c0a58143b950848b07191c;hb=a1ff506de8d127c7ec2cad45d278ef86399b54e0;hp=194c74722ccffb66282fadb6ac389a47031413b1;hpb=410e611d4a63b0d69fd1ddcf45b791697eb7ade7;p=bootcd.git diff --git a/build.sh b/build.sh index 194c747..eed21a9 100755 --- a/build.sh +++ b/build.sh @@ -128,6 +128,12 @@ EOF echo "install boot cd base rpms" yum -c yum.conf --installroot=$CD_ROOT -y groupinstall $BOOTCD_YUM_GROUP + # Clean yum cache + yum -c yum.conf --installroot=$VROOT -y clean all + + # Remove stale RPM locks + rm -f $VROOT/var/lib/rpm/__db* + # Retrieve all of the packagereq declarations in the BootCD group of the yumgroups.xml file echo "checking to make sure rpms were installed" packages=$(curl $yumgroups | sed -n -e '/BootCD<\/name>/,//{ s/.*\(.*\)<\/packagereq>/\1/p }')