Include qemu modules in the initrd

This includes, among other things, virtio-rng. Without it the initrd may
take longer to initialize the random non-blocking pool on KVM
installations.
This commit is contained in:
Brian C. Lane 2015-11-23 09:33:42 -08:00
parent 50bda8cf17
commit e728e9ccee
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ class Lorax(BaseLoraxClass):
logger.info("rebuilding initramfs images") logger.info("rebuilding initramfs images")
dracut_args = ["--xz", "--install", "/.buildstamp", "--no-early-microcode"] dracut_args = ["--xz", "--install", "/.buildstamp", "--no-early-microcode"]
anaconda_args = dracut_args + ["--add", "anaconda pollcdrom"] anaconda_args = dracut_args + ["--add", "anaconda pollcdrom qemu qemu-net"]
# ppc64 cannot boot an initrd > 32MiB so remove some drivers # ppc64 cannot boot an initrd > 32MiB so remove some drivers
if self.arch.basearch in ("ppc64", "ppc64le"): if self.arch.basearch in ("ppc64", "ppc64le"):

View File

@ -65,7 +65,7 @@ except ImportError:
libvirt = None libvirt = None
# Default parameters for rebuilding initramfs, override with --dracut-args # Default parameters for rebuilding initramfs, override with --dracut-args
DRACUT_DEFAULT = ["--xz", "--add", "livenet dmsquash-live convertfs pollcdrom", DRACUT_DEFAULT = ["--xz", "--add", "livenet dmsquash-live convertfs pollcdrom qemu qemu-net",
"--omit", "plymouth", "--no-hostonly", "--debug", "--no-early-microcode"] "--omit", "plymouth", "--no-hostonly", "--debug", "--no-early-microcode"]
ROOT_PATH = "/mnt/sysimage/" ROOT_PATH = "/mnt/sysimage/"