Skip to content

Commit

Permalink
Prefix bootc macro names with bash
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Oct 25, 2024
1 parent ded83b3 commit 0834570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# platform = multi_platform_all
if {{{ bootc_build() }}} ; then
if {{{ bash_bootc_build() }}} ; then
systemctl disable ctrl-alt-del.target
systemctl mask ctrl-alt-del.target
else
Expand Down
4 changes: 2 additions & 2 deletions shared/macros/10-bash.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2522,14 +2522,14 @@ chmod -R u=rwX,go=rX /etc/dconf/profile
This macro defines a conditional expression that is evaluated as true
if the remediation is performed during a build of a bootable container image.
#}}
{{%- macro bootc_build() -%}}
{{%- macro bash_bootc_build() -%}}
[[ "$OSCAP_BOOTC_BUILD" == "YES" ]]
{{%- endmacro -%}}

{{#
This macro defines a conditional expression that is evaluated as true
if the remediation is not performed during a build of a bootable container image.
#}}
{{%- macro not_bootc_build() -%}}
{{%- macro bash_not_bootc_build() -%}}
[[ "$OSCAP_BOOTC_BUILD" != "YES" ]]
{{%- endmacro -%}}

0 comments on commit 0834570

Please sign in to comment.