summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2016-10-27 12:38:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-27 12:38:02 +0000
commit0799bce0ce6fb46cbf1c5a2d3b505627d963428a (patch)
tree7a070959b180a23566af0fb6b891b869327397ea
parentf7a740476332fffca2bea98dadb2ab454154bb6b (diff)
parente37746b93c622ddddeb44bc5791c8da4a98fff7f (diff)
Merge "Update cirros image"
-rw-r--r--build/install/apt-ftparchive-deb.conf6
-rw-r--r--build/install/apt-ftparchive-release.conf10
-rwxr-xr-xbuild/install/install.sh16
-rw-r--r--build/patch-packages/Makefile2
-rw-r--r--build/patch-packages/cirros_testvm/Makefile31
-rwxr-xr-xbuild/patch-packages/tools/deb_pack2
6 files changed, 48 insertions, 19 deletions
diff --git a/build/install/apt-ftparchive-deb.conf b/build/install/apt-ftparchive-deb.conf
index 0d15aec6f..edcb1f2a4 100644
--- a/build/install/apt-ftparchive-deb.conf
+++ b/build/install/apt-ftparchive-deb.conf
@@ -17,15 +17,13 @@ TreeDefault {
};
BinDirectory "pool/main" {
- Packages "dists/trusty/main/binary-amd64/Packages";
- BinOverride "./indices/override.trusty.main";
- ExtraOverride "./indices/override.trusty.extra.main";
+ Packages "dists/mos9.0/main/binary-amd64/Packages";
};
Default {
Packages {
Extensions ".deb";
- Compress ". gzip";
+ Compress ". gzip bzip2";
};
};
diff --git a/build/install/apt-ftparchive-release.conf b/build/install/apt-ftparchive-release.conf
index 02706bd7d..e40ff68b4 100644
--- a/build/install/apt-ftparchive-release.conf
+++ b/build/install/apt-ftparchive-release.conf
@@ -8,11 +8,11 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-APT::FTPArchive::Release::Origin "Ubuntu";
-APT::FTPArchive::Release::Label "Ubuntu";
-APT::FTPArchive::Release::Suite "trusty";
-APT::FTPArchive::Release::Version "1.04";
-APT::FTPArchive::Release::Codename "trusty";
+APT::FTPArchive::Release::Origin "Mirantis";
+APT::FTPArchive::Release::Label "mos9.0";
+APT::FTPArchive::Release::Suite "mos9.0";
+APT::FTPArchive::Release::Version "14.04";
+APT::FTPArchive::Release::Codename "mos9.0";
APT::FTPArchive::Release::Architectures "amd64";
APT::FTPArchive::Release::Components "main";
APT::FTPArchive::Release::Description "Ubuntu Trusty Tahr 14.04 LTS";
diff --git a/build/install/install.sh b/build/install/install.sh
index 866d30419..d1a49f35f 100755
--- a/build/install/install.sh
+++ b/build/install/install.sh
@@ -393,8 +393,7 @@ copy_packages() {
printf "\n\n" | tee -a $REPORTFILE
for line in `cat $TOP/patch-packages/release/patch-replacements`
do
- echo "Did not expect a line here, not supported"
- exit 1
+ echo "Processing $line ..."
frompkg=`echo $line | cut -d ">" -f 1`
topkg=`echo $line | cut -d ">" -f 2`
echo "CM: Applying patch to $frompkg" | tee -a $REPORTFILE
@@ -414,9 +413,11 @@ copy_packages() {
exit 1
else
echo "Adding $topkg to repo"
- cp $TOP/patch-packages/release/packages/$topkg .
+ pkg_dest=$(dirname $frompkg)
+ cp $TOP/patch-packages/release/packages/$topkg $pkg_dest/
fi
+ pushd $pkg_dest > /dev/null
patchname=`get_deb_name $topkg`
patchrev=`get_deb_rev $topkg`
echo "Correcting dependencies towards $patchname rev $patchrev - old rev $oldrev" | tee -a $REPORTFILE
@@ -424,6 +425,7 @@ copy_packages() {
if [ $PIPESTATUS -ne 0 ]; then
exit 1
fi
+ popd > /dev/null
done
popd > /dev/null
fi
@@ -436,9 +438,7 @@ copy_packages() {
APT_DEB_CONF="$TOP/install/apt-ftparchive-deb.conf"
APT_UDEB_CONF="$TOP/install/apt-ftparchive-udeb.conf"
- echo Not running echo apt-ftparchive -c "${APT_REL_CONF}" generate "${APT_DEB_CONF}"
- echo Not running apt-ftparchive -c "${APT_REL_CONF}" generate "${APT_DEB_CONF}"
- echo Not running apt-ftparchive generate "${APT_UDEB_CONF}"
+ apt-ftparchive -c "${APT_REL_CONF}" generate "${APT_DEB_CONF}"
echo Not running apt-ftparchive generate "${APT_UDEB_CONF}"
# Fuel also needs this index file
@@ -447,8 +447,8 @@ copy_packages() {
# /^Version:/{print pkg ": \"" $2 "\""}' > ubuntu-versions.yaml
# cp ubuntu-versions.yaml $DEST
- # apt-ftparchive -c "${APT_REL_CONF}" release dists/trusty/ > dists/trusty/Release
- # gzip -9cf dists/trusty/Release > dists/trusty/Release.gz
+ apt-ftparchive -c "${APT_REL_CONF}" release dists/mos9.0/ > dists/mos9.0/Release
+ gzip -9cf dists/mos9.0/Release > dists/mos9.0/Release.gz
popd > /dev/null
diff --git a/build/patch-packages/Makefile b/build/patch-packages/Makefile
index 339c9e7cf..aaac038b0 100644
--- a/build/patch-packages/Makefile
+++ b/build/patch-packages/Makefile
@@ -8,7 +8,7 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-SUBDIRS :=
+SUBDIRS := cirros_testvm
SUBCLEAN = $(addsuffix .clean,$(SUBDIRS))
.PHONY: $(SUBDIRS) $(SUBCLEAN) clean
diff --git a/build/patch-packages/cirros_testvm/Makefile b/build/patch-packages/cirros_testvm/Makefile
new file mode 100644
index 000000000..4cbe13f6c
--- /dev/null
+++ b/build/patch-packages/cirros_testvm/Makefile
@@ -0,0 +1,31 @@
+##############################################################################
+# Copyright (c) 2015,2016 Ericsson AB, Mirantis Inc. and others.
+# stefan.k.berg@ericsson.com
+# jonas.bjurel@ericsson.com
+# mpolenchuk@mirantis.com
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+TOP := $(shell pwd)
+
+.PHONY: all
+all:
+
+.PHONY: clean
+clean:
+ @rm -rf package
+ @rm -rf *.deb
+ @rm -rf patch-replacements
+ @rm -rf .package
+
+.PHONY: release
+release:
+ ../tools/deb_unpack c/cirros-testvm/cirros-testvm_0.3.4-2~u14.04+mos5_amd64.deb $(ORIGISO)
+ @rm -rf package/usr/share/cirros-testvm/*
+ wget -O package/usr/share/cirros-testvm/cirros-x86_64-disk.img http://download.cirros-cloud.net/daily/20160722/cirros-d160722-x86_64-disk.img
+ ../tools/deb_pack $(REVSTATE)
+ @cp *.deb ../release/packages
+ @cat patch-replacements >> ../release/patch-replacements
diff --git a/build/patch-packages/tools/deb_pack b/build/patch-packages/tools/deb_pack
index f5d42dec3..1550d95d8 100755
--- a/build/patch-packages/tools/deb_pack
+++ b/build/patch-packages/tools/deb_pack
@@ -39,7 +39,7 @@ revision_step ()
{
REV=$1
- sed -i "s/^\(Version:.*$\)/\1-eri$REV/" package/DEBIAN/control
+ sed -i "s/^\(Version:.*$\)/\1-opnfv$REV/" package/DEBIAN/control
}
md5sum_gen ()