#!/usr/bin/env bash # SPDX-License-Identifier: LGPL-2.1-or-later # shellcheck disable=SC2010 # shellcheck disable=SC2317 set -ex set -o pipefail # shellcheck source=test/units/util.sh . "$(dirname "$0")"/util.sh # This is a test case for issue #34637. at_exit() ( set +e systemctl stop test-diskseq.service || : rm -f /run/systemd/system/test-diskseq.service systemctl daemon-reload [[ -d "$TMPDIR" ]] && rm -rf "$TMPDIR" udevadm control --log-level=info ) trap at_exit EXIT udevadm control --log-level=debug TMPDIR="$(mktemp -d)" truncate -s 16M "$TMPDIR"/foo.raw mkfs.ext4 -L foo "$TMPDIR"/foo.raw mkdir -p /run/systemd/system/ cat >/run/systemd/system/test-diskseq.service <