Skip to content

Commit

Permalink
Fix applicability system check for kernel for sle and slemicro
Browse files Browse the repository at this point in the history
  • Loading branch information
teacup-on-rockingchair committed Oct 22, 2024
1 parent 98b98b5 commit a1c3ac1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shared/applicability/system_with_kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ title: Bare-metal systems, virtual machines, bootc container images, running boo
# was set in past.
check_id: system_with_kernel
{{% if pkg_system == "rpm" %}}
{{% if 'sle' in product or 'slmicro' in product %}}
bash_conditional: "rpm --quiet -q kernel-default"
{{% else %}}
bash_conditional: "rpm --quiet -q kernel"
{{% endif %}}
{{% else %}}
bash_conditional: "dpkg-query --show --showformat='${db:Status-Status}\n' 'kernel' 2>/dev/null | grep -q installed"
{{% endif %}}
{{% if 'sle' in product or 'slmicro' in product %}}
ansible_conditional: '"kernel-default" in ansible_facts.packages'
{{% else %}}
ansible_conditional: '"kernel" in ansible_facts.packages'
{{% endif %}}

0 comments on commit a1c3ac1

Please sign in to comment.