#!/bin/bash## kola:## # We now have composefs turned on in CoreOS.## exclusive: false## description: Verify that composefs is on.set -euo pipefail# shellcheck disable=SC1091. "$KOLA_EXT_DATA/commonlib.sh"features=$(ostree --version)if ! [[ "${features}" =~ "composefs" ]]; thenfatal "Error: ostree has no composefs support: ${features}"firootfs=$(findmnt -n -o FSTYPE /)if [ "${rootfs}" != "overlay" ]; thenfatal "Error: Expected overlay on /, found: ${rootfs}"fijournalctl -u ostree-prepare-root.service | grep -q "composefs: mounted successfully"ok "composefs is on"