#!/bin/bash## kola:## exclusive: false## description: Verify /sysroot and /boot are read-only partitions.set -xeuo pipefail# shellcheck disable=SC1091. "$KOLA_EXT_DATA/commonlib.sh"for part in /sysroot /boot; doif ! findmnt -n -o options ${part} | grep -q "ro,"; thenfatal "${part} is missing ro option"fiif test -w "${part}" || touch "${part}/somefile" 2>/dev/null; thenfatal "${part} is writable"fidoneok read-only partitions