Skip to content

Conversation

@laenion
Copy link
Contributor

@laenion laenion commented Mar 24, 2020

Commit 3b930b made it impossible to build Ignition on any other arch then s390x, ppc64le, amd64 or arm64 by explicitly stating the allowed platforms. This made it impossible to build e.g. for 386.

Continue to use the fw_cfg interface as default instead.

@jlebon
Copy link
Member

jlebon commented Mar 24, 2020

Thanks! Was actually looking at the best way to approach this too. :)

I think this is fine, though I was thinking the opposite of this, i.e. use the blockdev provider on everything but where we know qemu_fw_cfg is supported. AFAIK, that's only amd64, 386, and aarch64. WDYT?

(On that topic, note that Fedora at least stopped building 32-bit x86 kernels in recent releases. But no reason not to keep supporting it upstream.)

@coreosbot
Copy link
Contributor

Can one of the admins verify this patch?

@laenion
Copy link
Contributor Author

laenion commented Mar 24, 2020

According to https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-firmware-qemu_fw_cfg (first sentence) there should be several more platforms supporting qemu_fs_cfg, but that list obviously isn't complete (amd64 is missing for example), and I don't have access to all possible platforms. Due to that I'm also not sure which version is better - I also wouldn't mind inverting the logic. In theory one would have to check all the platforms listed on https://github.com/golang/go/blob/master/src/go/build/syslist.go...

Sorry for not seeing the discussion in the other ticket by the way, I would have attached myself there.

@jlebon
Copy link
Member

jlebon commented Mar 24, 2020

OK sure, given that qemu_fw_cfg has been the long-standing default, and that #905 was specifically called out as an experiment for s390x and ppc64le, let's keep that the default.

Though my hope is that we end up using the same mechanism across all architectures eventually (see #928). But let's not rush that process.

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jlebon
Copy link
Member

jlebon commented Mar 24, 2020

Can we change the commit title to something like: providers/qemu: fix default to fwcfg ?

@laenion
Copy link
Contributor Author

laenion commented Mar 24, 2020

Sure, just a minute.

Commit 3b930b made it impossible to build Ignition on any other arch then
s390x, ppc64le, amd64 or arm64 by explicitly stating the allowed platforms.
This made it impossible to build e.g. for 386.
Continue to use the fw_cfg interface as default instead.
@jlebon jlebon changed the title Support more architectures providers/qemu: fix default to fwcfg Mar 24, 2020
@bgilbert
Copy link
Contributor

ok to test

@bgilbert
Copy link
Contributor

Thanks for the fix!

@bgilbert bgilbert merged commit 7ab7f21 into coreos:master Mar 24, 2020
@bgilbert bgilbert mentioned this pull request Mar 24, 2020
19 tasks
@laenion laenion mentioned this pull request Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants