Skip to content

Commit 9692c44

Browse files
mtarselravanelli
authored andcommitted
Remove P8 and P9 hack so tests pass for Power10
008e04c and a6d7bbb added and used the libguestfs-ppc64le-wrapper.sh in order to address some failing tests on ppc64le. Using a Power10 machine with KVM enabled, tests are passing with this script removed. There was a successful test run with: cosa kola run --tag '!reprovision' Signed-off-by: Mick Tarsel <[email protected]>
1 parent 4155975 commit 9692c44

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

mantle/platform/qemu.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ import (
5151
"github.com/coreos/coreos-assembler/mantle/system"
5252
"github.com/coreos/coreos-assembler/mantle/system/exec"
5353
"github.com/pkg/errors"
54-
55-
"golang.org/x/sys/unix"
5654
)
5755

5856
var (
@@ -859,19 +857,6 @@ func newGuestfish(arch, diskImagePath string, diskSectorSize int) (*coreosGuestf
859857
cmd := exec.Command("guestfish", guestfishArgs...)
860858
cmd.Env = append(os.Environ(), "LIBGUESTFS_BACKEND=direct")
861859

862-
// Hack to run with a wrapper on older P8 hardware running RHEL7
863-
switch arch {
864-
case "ppc64le":
865-
u := unix.Utsname{}
866-
if err := unix.Uname(&u); err != nil {
867-
return nil, errors.Wrapf(err, "detecting kernel information")
868-
}
869-
if strings.Contains(fmt.Sprintf("%s", u.Release), "el7") {
870-
plog.Infof("Detected el7. Running using libguestfs-ppc64le-wrapper.sh")
871-
cmd.Env = append(cmd.Env, "LIBGUESTFS_HV=/usr/lib/coreos-assembler/libguestfs-ppc64le-wrapper.sh")
872-
}
873-
}
874-
875860
// make sure it inherits stderr so we see any error message
876861
cmd.Stderr = os.Stderr
877862
stdout, err := cmd.StdoutPipe()

src/libguestfish.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ export LIBGUESTFS_BACKEND=direct
1111

1212
arch=$(uname -m)
1313

14-
15-
# Hack to run with a wrapper on older P8 hardware running RHEL7
16-
if [ "$arch" = "ppc64le" ] ; then
17-
if [[ "$(uname -r)" =~ "el7" ]]; then
18-
export LIBGUESTFS_HV="/usr/lib/coreos-assembler/libguestfs-ppc64le-wrapper.sh"
19-
fi
20-
fi
21-
2214
# Hack to give ppc64le more memory inside the libguestfs VM.
2315
# The compiled in default I see when running `guestfish get-memsize`
2416
# is 1280. We need this because we are seeing issues from

src/libguestfs-ppc64le-wrapper.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)