diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-05-30 16:56:33 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-06-03 00:06:24 -0700 |
commit | 2f5fed6ad27717af54b4d985926707e091f6e577 (patch) | |
tree | 6f3fc9cd602bf1fc4575143e497f61ae88dff10c | |
parent | www-apps/hugo: Add myself as proxied maintainer. (diff) | |
download | gentoo-2f5fed6ad27717af54b4d985926707e091f6e577.tar.gz gentoo-2f5fed6ad27717af54b4d985926707e091f6e577.tar.bz2 gentoo-2f5fed6ad27717af54b4d985926707e091f6e577.zip |
eclass/kernel-install.eclass: omit some dracut modules for tests
some modules slow down or even fail to boot in our test environment
force qemu dracut module while at it.
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
-rw-r--r-- | eclass/kernel-install.eclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 860105feb8b8..4914a7562813 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -238,6 +238,16 @@ kernel-install_test() { local qemu_arch=$(kernel-install_get_qemu_arch) + # some modules may complicate or even fail the test boot + local omit_mods=( + crypt dm dmraid lvm mdraid multipath nbd # no need for blockdev tools + network network-manager # no need for network + btrfs cifs nfs zfs zfsexpandknowledge # we don't need it + plymouth # hangs, or sometimes steals output + rngd # hangs or segfaults sometimes + i18n # copies all the fonts from /usr/share/consolefonts + ) + # NB: if you pass a path that does not exist or is not a regular # file/directory, dracut will silently ignore it and use the default # https://github.com/dracutdevs/dracut/issues/1136 @@ -249,6 +259,10 @@ kernel-install_test() { --confdir "${T}"/empty-directory \ --no-hostonly \ --kmoddir "${modules}" \ + --force-add "qemu" \ + --omit "${omit_mods[*]}" \ + --nostrip \ + --no-early-microcode \ "${T}/initrd" "${version}" || die kernel-install_create_qemu_image "${T}/fs.img" |