diff --git a/lib/hardware_info.py b/lib/hardware_info.py index ad56a3f3..ddd47449 100755 --- a/lib/hardware_info.py +++ b/lib/hardware_info.py @@ -36,7 +36,7 @@ [rpwr, 'Docker Info', 'docker info', r'(?P.*)', re.IGNORECASE | re.DOTALL], [rpwr, 'Docker Version', 'docker version', r'(?P.*)', re.IGNORECASE | re.DOTALL], [rpwr, 'Docker Containers', 'docker ps -a', r'(?P.*)'], - #[rpwr, 'Installed System Packages', 'if [ -f /etc/lsb-release ]; then dpkg -l ; elif [ -f /etc/redhat-release ]; then dnf list installed ; fi', r'(?P.*)', re.IGNORECASE | re.DOTALL], + [rpwr, 'Installed System Packages', 'if [ -f /etc/lsb-release ]; then dpkg -l ; elif [ -f /etc/redhat-release ]; then dnf list --installed -y; fi', r'(?P.*)', re.IGNORECASE | re.DOTALL], [rpwr, 'Installed Python Packages', f"{sys.executable} -m pip freeze", r'(?P.*)', re.IGNORECASE | re.DOTALL], [rpwr, 'Processes', '/usr/bin/ps -aux', r'(?P.*)', re.IGNORECASE | re.DOTALL], [ diff --git a/lib/system_checks.py b/lib/system_checks.py index 2df3d44e..23ad4974 100644 --- a/lib/system_checks.py +++ b/lib/system_checks.py @@ -102,7 +102,7 @@ def check_swap_disabled(): (check_docker_daemon, Status.ERROR, 'docker daemon', 'The docker daemon could not be reached. Are you running in rootless mode or have added yourself to the docker group? See installation: [See https://docs.green-coding.io/docs/installation/]'), (check_containers_running, Status.WARN, 'running containers', 'You have other containers running on the system. This is usually what you want in local development, but for undisturbed measurements consider going for a measurement cluster [See https://docs.green-coding.io/docs/installation/installation-cluster/].'), (check_utf_encoding, Status.ERROR, 'utf file encoding', 'Your system encoding is not set to utf-8. This is needed as we need to parse console output.'), - (check_swap_disabled, Status.ERROR, 'swap disabled', 'Your system uses a swap filesystem. This can lead to very instable measurements. Please disable swap.'), + (check_swap_disabled, Status.WARN, 'swap disabled', 'Your system uses a swap filesystem. This can lead to very instable measurements. Please disable swap.'), ]