Calling systemctl disable on a non-existing unit leads to a failure due
to `set -e`. This checks prevents it.
Also applies the same codepath to centos7 (as it is for rhel7, also
because centos7 has currently test coverage).
Closes-Bug: #1653535
Change-Id: I21f9cfd1959dcde80ed6abbf410bd0c4e93cc803
(cherry picked from commit 42d79a9828)
disable-firewall
This elements disables all firewalls on the image.
Recognized firewalls:
- iptables
- ip6tables
- firewalld