#!/bin/bash## kola:## exclusive: false## description: Verify /sysroot/.coreos-aleph-version.json or## /sysroot/.bootc-aleph.json exists.# Defined in https://github.com/coreos/fedora-coreos-tracker/blob/master/internals/README-internals.md#aleph-version## https://github.com/coreos/fedora-coreos-tracker/issues/2187# We now also look for the aleph created by bootc as it replaced# the one created by osbuild since moving to `bootc install` to# create disk images.set -xeuo pipefail# shellcheck disable=SC1091. "$KOLA_EXT_DATA/commonlib.sh"aleph_file=""if [ -f /sysroot/.bootc-aleph.json ]; thenaleph_file=/sysroot/.bootc-aleph.jsonelif [ -f /sysroot/.coreos-aleph-version.json ]; thenaleph_file=/sysroot/.coreos-aleph-version.jsonelsefatal "Neither /sysroot/.coreos-aleph-version.json nor /sysroot/.bootc-aleph.json exists"fijq . < "${aleph_file}" >/dev/nullok aleph