Skip to content

Commit

Permalink
tests: Use findmnt /sysroot for composefs compatibility
Browse files Browse the repository at this point in the history
Yet another instance of the same problem as coreos/coreos-installer#1203

Motivated by enabling composefs compatibility.
  • Loading branch information
cgwalters committed Jan 3, 2024
1 parent 5a81fdf commit 264c3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantle/kola/tests/coretest/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 264c3d5

Please sign in to comment.