
We have not been testing this code for quite a some time and there has been little interest in maintaining it. The change removes all Centos related code to reduce the maintenance burden. See the related discussion [1]. [1] https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/thread/GWRYBFSYE3ZLW64WK2ECIOGN3QZYYLTD/ Change-Id: Id1c6bb5c9c486c62f28feb7ba429f7af84e88db0
24 lines
444 B
Bash
Executable File
24 lines
444 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
INFO_DIR="/etc/image_info"
|
|
mkdir -p $INFO_DIR
|
|
PACKAGES_INFO="${INFO_DIR}/packages.txt"
|
|
PIP_INFO="${INFO_DIR}/pip.txt"
|
|
PROJECT_INFO="${INFO_DIR}/project.txt"
|
|
|
|
dpkg -l > $PACKAGES_INFO
|
|
|
|
pip freeze > $PIP_INFO
|
|
cat > ${PROJECT_INFO} <<EOF
|
|
PROJECT=${PROJECT}
|
|
PROJECT_REPO=${PROJECT_REPO}
|
|
PROJECT_REF=${PROJECT_REF}
|
|
PROJECT_RELEASE=${PROJECT_RELEASE}
|
|
EOF
|
|
pushd /tmp/${PROJECT}
|
|
echo "========"
|
|
git log -1 >> ${PROJECT_INFO}
|
|
popd
|