Feat: Add support for Ubuntu 20.04 and Docker 14/67714/6 v0.63.2 v0.64.0
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Thu, 13 May 2021 17:22:28 +0000 (12:22 -0500)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Wed, 19 May 2021 16:59:28 +0000 (11:59 -0500)
Updating the sysstat script to support Ubuntu 20.04 and Docker systems

Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Change-Id: I12e6daa8a04228337c99b004e67338eb8f6a8f1a

releasenotes/notes/update_sysstat-41a5a72b1fdd1861.yaml [new file with mode: 0644]
shell/sysstat.sh

diff --git a/releasenotes/notes/update_sysstat-41a5a72b1fdd1861.yaml b/releasenotes/notes/update_sysstat-41a5a72b1fdd1861.yaml
new file mode 100644 (file)
index 0000000..a35ed62
--- /dev/null
@@ -0,0 +1,5 @@
+---
+features:
+  - |
+    Update to the sysstat script to add support for
+    operating system Ubuntu 20.04 and Docker systems
index bbc502c..eada1b3 100644 (file)
 echo "---> sysstat.sh"
 set +e  # DON'T fail build if script fails.
 
+if awk -F/ '$2 == "docker"' /proc/self/cgroup | read -r; then
+    exit 0
+fi
+
+
 OS=$(facter operatingsystem)
 case "$OS" in
     Ubuntu)
         os_release=$(facter operatingsystemrelease)
         case $os_release in
-            16.04|18.04)
+            16.04|18.04|20.04)
                 if ! systemctl status sysstat > /dev/null; then
                     exit 0
                 fi