#!/bin/bash## kola:## exclusive: false## tags: "platform-independent"## description: Verify systemd-firstboot isn't active.set -xeuo pipefail# shellcheck disable=SC1091. "$KOLA_EXT_DATA/commonlib.sh"UnitFileState=$(systemctl show systemd-firstboot.service --value --property=UnitFileState) # staticUnitFilePreset=$(systemctl show systemd-firstboot.service --value --property=UnitFilePreset) # disabledActiveState=$(systemctl show systemd-firstboot.service --value --property=ActiveState) # inactiveSubState=$(systemctl show systemd-firstboot.service --value --property=SubState) # deadif [[ $UnitFileState != static ]] ||[[ $UnitFilePreset != disabled ]] ||[[ $ActiveState != inactive ]] ||[[ $SubState != dead ]]; thensystemctl status systemd-firstboot.servicefatal "systemd-firstboot.service is not completely neutralized"fiok "systemd-firstboot.service completely neutralized"