Skip to content

Commit 48ec544

Browse files
kola/testiso: fix pxe-*.rootfs-appended test on s390x
On s390x, `mk-s390image` is used to create a bootable `pxelinux.0` image from the live-kernel, live-initramfs, and cmdline. Because the cmdline doesn't include `coreos.liveiso`, systemd starts the `coreos-livepxe-rootfs.service`, which checks for the presence of the `coreos.live.rootfs_url` karg or the `/etc/coreos-live-rootfs` file, but neither is present. At the same time, `kola` generates a concatenated initramfs. This PR uses that initramfs as input for `mk-s390image`.
1 parent 119c5f6 commit 48ec544

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mantle/cmd/kola/testiso.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ var (
106106
"iso-offline-install.s390fw",
107107
"iso-offline-install.mpath.s390fw",
108108
"iso-offline-install.4k.s390fw",
109-
// FIXME: https://github.com/coreos/fedora-coreos-tracker/issues/1883
110-
//"pxe-online-install.rootfs-appended.s390fw",
109+
"pxe-online-install.rootfs-appended.s390fw",
111110
"pxe-offline-install.s390fw",
112111
"miniso-install.s390fw",
113112
"miniso-install.nm.s390fw",

mantle/platform/metal.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ func (t *installerRun) completePxeSetup(kargs []string) error {
418418
// this is only for s390x where the pxe image has to be created;
419419
// s390 doesn't seem to have a pre-created pxe image although have to check on this
420420
if t.pxe.pxeimagepath == "" {
421-
kernelpath := filepath.Join(t.builddir, t.kern.kernel)
422-
initrdpath := filepath.Join(t.builddir, t.kern.initramfs)
421+
kernelpath := filepath.Join(t.tftpdir, t.kern.kernel)
422+
initrdpath := filepath.Join(t.tftpdir, t.kern.initramfs)
423423
err := exec.Command("/usr/bin/mk-s390image", kernelpath, "-r", initrdpath,
424424
"-p", filepath.Join(pxeconfigdir, "default"), filepath.Join(t.tftpdir, pxeimages[0])).Run()
425425
if err != nil {

0 commit comments

Comments
 (0)