Skip to content

Commit a6d7bbb

Browse files
committed
Add libguestfs workaround for ppc64le
Add a workaround for the issue: openshift/os#720 The kola tests failing are using guestfish, for some reason the libguestfs is not able to create the wrapped to add the vmst value, required for the POWER8 cluster. Until we can debug it better, let's unlock the power builds Signed-off-by: Renata Ravanelli <[email protected]>
1 parent 99ce834 commit a6d7bbb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mantle/platform/qemu.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,10 @@ func newGuestfish(diskImagePath string, diskSectorSize int) (*coreosGuestfish, e
657657
guestfishArgs = append(guestfishArgs, "-a", diskImagePath)
658658
cmd := exec.Command("guestfish", guestfishArgs...)
659659
cmd.Env = append(os.Environ(), "LIBGUESTFS_BACKEND=direct")
660+
switch system.RpmArch() {
661+
case "ppc64le":
662+
cmd.Env = append(os.Environ(), "LIBGUESTFS_HV=/usr/lib/coreos-assembler/libguestfs-ppc64le-wrapper.sh")
663+
}
660664
// make sure it inherits stderr so we see any error message
661665
cmd.Stderr = os.Stderr
662666
stdout, err := cmd.StdoutPipe()

src/libguestfs-ppc64le-wrapper.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
exec qemu-system-ppc64 "$@" -machine pseries,accel=kvm:tcg,vsmt=8,cap-fwnmi=off

0 commit comments

Comments
 (0)