#!/bin/bash## kola:## exclusive: false## description: Verify / has the immutable bit or we're using composefs.set -xeuo pipefail# shellcheck disable=SC1091. "$KOLA_EXT_DATA/commonlib.sh"fstype=$(findmnt -nvr / -o FSTYPE)if test $fstype == overlay; thenecho "on overlayfs"elif ! lsattr -d / | grep -qe '--i--'; thenfatal "missing immutable bit on /"fiok immutable bit