I am trying to change some of the firewall settings during an automatic kickstart installation in the %post section on a RHEL 8 server. For example: firewall-cmd --permanent --zone=public --set-target=DROP
. When I use the command after I chroot, I get: FirewallD is not running
.
If I try to start it with the systemctl start firewalld
gives me Running in chroot, ignoring request: start
during the post-installation with chroot. When I try the command in the post-installation script before I chroot, I get this error: Failed to start firewalld.service: Unit firewalld.service not found.
.
How do I make changes to the firewall during a kickstart installation?