Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initrd hostonly-kernel-modules.txt varies from CPU #617

Closed
bmwiedemann opened this issue Aug 8, 2019 · 5 comments · Fixed by #624
Closed

initrd hostonly-kernel-modules.txt varies from CPU #617

bmwiedemann opened this issue Aug 8, 2019 · 5 comments · Fixed by #624

Comments

@bmwiedemann
Copy link

While working on reproducible builds for openSUSE, I found that our kernel-obs-build package that contained a dracut-generated initrd would vary between VMs on different hosts, if those had different CPUs.

With commit 7047294 the diff was only about crc32c_intel but since 0ef8f50 this has grown.

+++ new//.build.initrd.kvm.cpio.extract/lib/dracut/hostonly-kernel-modules.txt      2019-08-08 14:57:58.190102238 +0000
@@ -8,13 +8,6 @@
 ata_generic
 virtio_rng
 qemu_fw_cfg
-aesni_intel
-ghash_clmulni_intel
-crc32c_intel
-crc32_pclmul
-crct10dif_pclmul
-sb_edac
-intel_rapl
 acpi_cpufreq

@ryncsn - I'd like to get identical build results on different build hosts. How could we get there?

@haraldh
Copy link
Collaborator

haraldh commented Aug 9, 2019

Just build a non-hostonly initrd

@haraldh
Copy link
Collaborator

haraldh commented Aug 9, 2019

and specify the dracut modules to include

@ryncsn
Copy link
Contributor

ryncsn commented Aug 12, 2019

Hi, if you are make a hostonly build that is expected to be different per host, as it is a "host only" imag.
You can either make it a non hostonly image, or maybe I can make a PR to let the hostonly-kernel-modules.txt only be generated when "strict" host only mode is used. What do you think, does a non-hostonly image solution works for you?

@bmwiedemann
Copy link
Author

bmwiedemann commented Aug 16, 2019

We build it hostonly in KVM because we know it will only ever be run in KVM in the Open Build Service (OBS) and we need the small size to keep its performance impact low.

The other use-case is around katacontainer images.

So would be nice to have a mode where we skip the hostonly-kernel-modules.txt creation.

@haraldh
Copy link
Collaborator

haraldh commented Oct 23, 2019

Reopen, if PR #624 does not fix your issue

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 a pull request may close this issue.

3 participants