add stub nodebase package to nodeimage
authorStephen Soltesz <stephen.soltesz@gmail.com>
Wed, 1 May 2013 01:15:01 +0000 (21:15 -0400)
committerStephen Soltesz <stephen.soltesz@gmail.com>
Wed, 1 May 2013 01:15:01 +0000 (21:15 -0400)
config.mlab/nodeimage.post

index 9107287..697173c 100644 (file)
@@ -67,3 +67,21 @@ EOF
 
 # NOTE: Force package into crucial-rpm-list for NodeUpdate
 echo "nodebase" > ${vdir}/etc/planetlab/crucial-rpm-list
+cat <<EOF > /tmp/nodebase.spec
+Summary: Dummy Package for initial nodebase
+Name: nodebase
+Version: 0.1
+Release: 0
+Group: System Environment/Base
+License: Apache 2.0
+BuildArch: noarch
+
+%description
+This meta-package with no content allows 'yum update' to work on the m-lab
+nodebase. 
+
+%files
+EOF
+rpmbuild -bb /tmp/nodebase.spec
+cp /root/rpmbuild/RPMS/noarch/mlab-nodebase-0.1-0.noarch.rpm ${vdir}/root/
+chroot ${vdir} rpm -ihv /root/mlab-nodebase-0.1-0.noarch.rpm