git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8417342
)
add stub nodebase package to nodeimage
author
Stephen Soltesz
<stephen.soltesz@gmail.com>
Wed, 1 May 2013 01:15:01 +0000
(21:15 -0400)
committer
Stephen Soltesz
<stephen.soltesz@gmail.com>
Wed, 1 May 2013 01:15:01 +0000
(21:15 -0400)
config.mlab/nodeimage.post
patch
|
blob
|
history
diff --git
a/config.mlab/nodeimage.post
b/config.mlab/nodeimage.post
index
9107287
..
697173c
100644
(file)
--- a/
config.mlab/nodeimage.post
+++ b/
config.mlab/nodeimage.post
@@
-67,3
+67,21
@@
EOF
# NOTE: Force package into crucial-rpm-list for NodeUpdate
echo "nodebase" > ${vdir}/etc/planetlab/crucial-rpm-list
# 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