From 6fe1dcd7825004455754c97e56f30ad493f5a9e4 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 2b59859ed0..e6234c7b77 100644 --- a/mantle/cmd/kola/testiso.go +++ b/mantle/cmd/kola/testiso.go @@ -245,7 +245,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`