move bootmanager (was alpina) support files into this repository
[bootmanager.git] / support-files / BootstrapRPM / custom.sh
diff --git a/support-files/BootstrapRPM/custom.sh b/support-files/BootstrapRPM/custom.sh
new file mode 100755 (executable)
index 0000000..ee85b3d
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# make sure the yum rpm is in extra-rpms/stage3rpms
+if [ ! -e extra-rpms/stage3rpms/yum-*planetlab.noarch.rpm ]; then
+    echo "yum RPM doesn't exist in extra-rpms/stage3rpms/"
+    echo "see extra-rpms/stage3rpms/README_EXTERNAL_RPMS."
+    exit 1
+fi
+
+# make sure the pycurl rpm is in extra-rpms/stage3rpms
+if [ ! -e extra-rpms/stage3rpms/pycurl-*.i386.rpm ]; then
+    echo "pycurl RPM doesn't exist in extra-rpms/stage3rpms/"
+    echo "see extra-rpms/stage3rpms/README_EXTERNAL_RPMS."
+    exit 1
+fi
+
+echo "Adding all extra rpms to extract directory..."
+cp -vr extra-rpms/* rpm-extract/
+
+for i in `ls extra-rpms/`; do
+    echo $i >> keep-files
+done
+
+exit 0
+