Skip to content

Commit 5caaac3

Browse files
committed
kola/testiso: Adapt test for mpath name variations
We adjust test to be compatible with both mpath friendly and non-friendly names.
1 parent 8341b66 commit 5caaac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mantle/cmd/kola/testiso.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Before=coreos-test-installer.service
243243
[Service]
244244
Type=oneshot
245245
RemainAfterExit=yes
246-
ExecStart=/bin/bash -c '[[ $(findmnt -nvro SOURCE /sysroot) == /dev/mapper/mpatha4 ]]'
246+
ExecStart=/bin/bash -c 'lsblk -pno NAME "/dev/mapper/$(multipath -l -v 1)" | grep -qw "$(findmnt -nvr /sysroot -o SOURCE)"'
247247
[Install]
248248
RequiredBy=multi-user.target`
249249

0 commit comments

Comments
 (0)