Skip to content

make detect os deployment onetime call during the greenboot execution #205

Description

@say-paul

detect_os_deployment() shells out to bootc status --booted --json on every call. In the GrubFallback path it fires at least 3× (via get_booted_deployment_id, handle_rollback, generate_motd_message). It is a contrast with running_in_container() which uses OnceLock. It is not a functional issue, but I wanted to point the consistency concern out.

Originally posted by @knecasov in #181 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions