From dbc977f41766632e2029e774a4a4b13891bab455 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 3 Jan 2024 11:25:37 -0500 Subject: [PATCH] tests: Use `findmnt /sysroot` for composefs compatibility Yet another instance of the same problem as https://github.com/coreos/coreos-installer/pull/1203 Motivated by enabling composefs compatibility. --- mantle/kola/tests/coretest/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mantle/kola/tests/coretest/core.go b/mantle/kola/tests/coretest/core.go index 2c46ac5689..f1a9589542 100644 --- a/mantle/kola/tests/coretest/core.go +++ b/mantle/kola/tests/coretest/core.go @@ -249,7 +249,7 @@ func TestReadOnlyFs() error { // Test that the root disk's GUID was set to a random one on first boot. func TestFsRandomUUID() error { - c := exec.Command("sh", "-ec", "sudo blkid -o value -s PTUUID /dev/$(lsblk -no PKNAME $(findmnt -vno SOURCE /))") + c := exec.Command("sh", "-ec", "sudo blkid -o value -s PTUUID /dev/$(lsblk -no PKNAME $(findmnt -vno SOURCE /sysroot))") out, err := c.Output() if err != nil { return fmt.Errorf("findmnt: %v", err)