cpes:

  - uefi:
      name: "cpe:/a:uefi"
      title: "System boot mode is UEFI"
      check_id: system_boot_mode_is_uefi
      bash_conditional: '[ -d /sys/firmware/efi ]'
      ansible_conditional: '"/boot/efi" in ansible_mounts | map(attribute="mount") | list'

  - non-uefi:
      name: "cpe:/a:non-uefi"
      title: "System boot mode is non-UEFI"
      check_id: system_boot_mode_is_non_uefi
      bash_conditional: '[ ! -d /sys/firmware/efi ]'
      ansible_conditional: '"/boot/efi" not in ansible_mounts | map(attribute="mount") | list'
