Skip to content

Commit

Permalink
Update networkmanager_dns_mode for bootable containers
Browse files Browse the repository at this point in the history
Remediation of the rule `networkmanager_dns_mode` calls
`systemctl reload` which doesn't work in the bootable
container build environment and so we use the
`bash_not_bootc_build` macro to not run it there.
  • Loading branch information
matusmarhefka committed Nov 5, 2024
1 parent bf70996 commit e079930
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@

{{{ bash_ini_file_set("/etc/NetworkManager/NetworkManager.conf", "main", "dns", "$var_networkmanager_dns_mode") }}}

systemctl reload NetworkManager
if {{{ bash_not_bootc_build() }}} ; then
systemctl reload NetworkManager
fi

0 comments on commit e079930

Please sign in to comment.