From a19b8a2f6fa18beb1d42287d355ad220799ffffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Fri, 21 Nov 2025 13:35:08 +0100 Subject: [PATCH] tests/sanity: apply machine-id workaround if running from a cloud image --- tests/sanity/runtest.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/sanity/runtest.sh b/tests/sanity/runtest.sh index 8e60700..ededecd 100755 --- a/tests/sanity/runtest.sh +++ b/tests/sanity/runtest.sh @@ -97,6 +97,11 @@ rlJournalStart # check kernel installation, must not create /boot/ if [ $UID -eq 0 ]; then + rlLog "Apply machine-id workaround if running from a cloud image" + pushd /boot/loader/entries/ + [ -f ffffffffffffffffffffffffffffffff-$(uname -r).conf ] && \ + mv ffffffffffffffffffffffffffffffff-$(uname -r).conf $(cat /etc/machine-id)-$(uname -r).conf + popd if rlCheckRpm kernel-core; then rlRun "dnf -y reinstall kernel-core" 0 "Reinstalling the kernel to verify BLS scripts function" rlAssertNotExists /boot/`cat /etc/machine-id`