Skip to content

Commit 5d742df

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 31009d2 commit 5d742df

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
@@ -245,7 +245,7 @@ Before=coreos-test-installer.service
245245
[Service]
246246
Type=oneshot
247247
RemainAfterExit=yes
248-
ExecStart=/bin/bash -c '[[ $(findmnt -nvro SOURCE /sysroot) == /dev/mapper/mpatha4 ]]'
248+
ExecStart=/bin/bash -c 'lsblk -pno NAME "/dev/mapper/$(multipath -l -v 1)" | grep -qw "$(findmnt -nvr /sysroot -o SOURCE)"'
249249
[Install]
250250
RequiredBy=multi-user.target`
251251

0 commit comments

Comments
 (0)