#!/bin/bash## kola:## tags: "platform-independent"## description: Verify that Ignition is able to use `coreos-boot-disk` symlink.set -xeuo pipefail# shellcheck disable=SC1091. "$KOLA_EXT_DATA/commonlib.sh"# symlink shouldn't be propogated to real-rootlink="/dev/disk/by-id/coreos-boot-disk"if [[ -h "${link}" ]]; thenfatal "${link} still exists"fi# sanity-check that the root disk has all required partitionsfindmnt -nvr -o SOURCE /bootfindmnt -nvr -o SOURCE /sysroottoor=$(findmnt -nvr -o SOURCE /var/lib/toor)if [[ ! "$toor" =~ ^/dev/[a-z0-9]+p?5$ ]]; thenfatal "${toor} is not 5th partition"fi