From 5caaac3ae65bc2980345eabdc6c5ea30ecf916a4 Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Tue, 17 Jun 2025 15:27:43 +0200 Subject: [PATCH] kola/testiso: Adapt test for mpath name variations We adjust test to be compatible with both mpath friendly and non-friendly names. --- mantle/cmd/kola/testiso.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mantle/cmd/kola/testiso.go b/mantle/cmd/kola/testiso.go index edd7d1a452..436d9961dc 100644 --- a/mantle/cmd/kola/testiso.go +++ b/mantle/cmd/kola/testiso.go @@ -243,7 +243,7 @@ Before=coreos-test-installer.service [Service] Type=oneshot RemainAfterExit=yes -ExecStart=/bin/bash -c '[[ $(findmnt -nvro SOURCE /sysroot) == /dev/mapper/mpatha4 ]]' +ExecStart=/bin/bash -c 'lsblk -pno NAME "/dev/mapper/$(multipath -l -v 1)" | grep -qw "$(findmnt -nvr /sysroot -o SOURCE)"' [Install] RequiredBy=multi-user.target`