Skip to content

Commit cfa0a43

Browse files
committed
libguestfish: bump libguestfs VM memory size for ppc64le
We've seen errors running buildextend-live on ppc64le: ``` subprocess.CalledProcessError: Command '['/usr/lib/coreos-assembler/gf-mksquashfs', 'builds/412.86.202211102204-0/ppc64le/rhcos-412.86.202211102204-0-metal.ppc64le.raw', '/home/jenkins/agent/workspace/build-arch/tmp/buildpost-live/initrd-rootfs/root.squashfs', 'gzip']' returned non-zero exit status 1. ``` It appears to be running out of memory inside the libgestfs VM. This may be because we are setting the smp value high on this particular machine (because it has 128 processors) with the `coreos_gf set-smp "$(kola ncpu)"` call.
1 parent e80eb3a commit cfa0a43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libguestfish.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ if [ "$arch" = "ppc64le" ] ; then
1919
fi
2020
fi
2121

22+
# Hack to give ppc64le more memory inside the libguestfs VM.
23+
# The compiled in default I see when running `guestfish get-memsize`
24+
# is 1280. We need this because we are seeing issues from
25+
# buildextend-live when running gf-mksquashfs.
26+
[ "$arch" = "ppc64le" ] && export LIBGUESTFS_MEMSIZE=2048
27+
2228
# http://libguestfs.org/guestfish.1.html#using-remote-control-robustly-from-shell-scripts
2329
GUESTFISH_PID=
2430
coreos_gf_launch() {

0 commit comments

Comments
 (0)