mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
CI: package_versions: include hostinfo, kernel
In the package_versions CI step, include Fedora/Ubuntu version, uname -r, and cgroups version. Cgroups version is simply the FS type of /sys/fs/cgroup, which shows 'tmpfs' for v1 and 'cgroup2fs' for v2. I don't think it's worth the effort to prettify those into 'v1/v2' - I think our readers are sophisticated enough to figure it out from context - but am willing to add that feature if requested. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@@ -56,6 +56,7 @@ case $1 in
|
||||
)
|
||||
case $OS_RELEASE_ID in
|
||||
fedora*)
|
||||
cat /etc/fedora-release
|
||||
PKG_LST_CMD='rpm -q --qf=%{N}-%{V}-%{R}-%{ARCH}\n'
|
||||
PKG_NAMES+=(\
|
||||
container-selinux \
|
||||
@@ -64,6 +65,7 @@ case $1 in
|
||||
)
|
||||
;;
|
||||
ubuntu*)
|
||||
cat /etc/issue
|
||||
PKG_LST_CMD='dpkg-query --show --showformat=${Package}-${Version}-${Architecture}\n'
|
||||
PKG_NAMES+=(\
|
||||
cri-o-runc \
|
||||
@@ -71,6 +73,8 @@ case $1 in
|
||||
;;
|
||||
*) bad_os_id_ver ;;
|
||||
esac
|
||||
echo "Kernel: " $(uname -r)
|
||||
echo "Cgroups: " $(stat -f -c %T /sys/fs/cgroup)
|
||||
# Any not-present packages will be listed as such
|
||||
$PKG_LST_CMD ${PKG_NAMES[@]} | sort -u
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user