Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add special conditions for bootable containers #12531

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 23, 2024

  1. Add special conditions for bootable containers

    This commit adds 2 new Jinja macros: `bootc_build` and
    `not_bootc_build`.  These macros define Bash conditional expressions
    that are evaluated as true or false if the remediation is performed
    during a build of a bootable container image or not performed during a
    build of a bootable container image. These macros can be used in Bash
    remediation code.  They can be used to control the remediation behavior
    in the bootable container build environment.
    
    This commit changes the Bash remediation in rule
    `disable_ctrlaltdel_reboot` to demonstrate usefulness of the new macros.
    jan-cerny committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    ded83b3 View commit details
    Browse the repository at this point in the history