summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-04 07:42:05 -0700
committerGitHub <noreply@github.com>2019-10-04 07:42:05 -0700
commit70d5b0a6fbb86174e113d8a8a3b4b40eb7b7a297 (patch)
tree52501b5b374af8cb4919310e659f1ed5b735537d
parentc9e936a40796824422011515f2fe445f93451f31 (diff)
parent5756fd8ff9a2c1e126cbfba07d519c2935c8dd32 (diff)
downloadpodman-70d5b0a6fbb86174e113d8a8a3b4b40eb7b7a297.tar.gz
podman-70d5b0a6fbb86174e113d8a8a3b4b40eb7b7a297.tar.bz2
podman-70d5b0a6fbb86174e113d8a8a3b4b40eb7b7a297.zip
Merge pull request #4186 from cevich/log_runc_crun
Cirrus: Simplify package NVR logging
-rwxr-xr-xcontrib/cirrus/logcollector.sh33
1 files changed, 14 insertions, 19 deletions
diff --git a/contrib/cirrus/logcollector.sh b/contrib/cirrus/logcollector.sh
index 3393ac9b5..b0a644f8c 100755
--- a/contrib/cirrus/logcollector.sh
+++ b/contrib/cirrus/logcollector.sh
@@ -33,40 +33,35 @@ case $1 in
ginkgo) showrun cat $CIRRUS_WORKING_DIR/test/e2e/ginkgo-node-*.log ;;
journal) showrun journalctl -b ;;
packages)
- case $OS_RELEASE_ID in
- fedora*)
- PKG_LST_CMD='rpm -q --qf=%{N}-%{V}-%{R}-%{ARCH}\n'
- PKG_NAMES=(\
- container-selinux \
+ # These names are common to Fedora and Ubuntu
+ PKG_NAMES=(\
+ conmon \
containernetworking-plugins \
containers-common \
criu \
golang \
podman \
+ skopeo \
slirp4netns \
+ )
+ case $OS_RELEASE_ID in
+ fedora*)
+ PKG_LST_CMD='rpm -q --qf=%{N}-%{V}-%{R}-%{ARCH}\n'
+ PKG_NAMES+=(\
+ container-selinux \
+ crun \
+ runc \
)
- if [[ "$OS_RELEASE_VER" -lt "31" ]]; then
- PKG_NAMES+=(runc)
- else
- PKG_NAMES+=(crun)
- fi
;;
ubuntu*)
PKG_LST_CMD='dpkg-query --show --showformat=${Package}-${Version}-${Architecture}\n'
- PKG_NAMES=(\
- containernetworking-plugins \
- containers-common \
+ PKG_NAMES+=(\
cri-o-runc \
- criu \
- golang \
- libvarlink \
- podman \
- skopeo \
- slirp4netns \
)
;;
*) bad_os_id_ver ;;
esac
+ # Any not-present packages will be listed as such
$PKG_LST_CMD ${PKG_NAMES[@]} | sort -u
;;
*) die 1 "Warning, $(basename $0) doesn't know how to handle the parameter '$1'"