How to have dracut conditionally add different kernel modules for different kernels?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The distro I use, opensuse, has switched to using dracut for initrd creation.

Prior to dracut usage, kernel-flavor-specific loading -- particularly for the case of Xen -- could be defined in

 /etc/sysconfig/kernel
  ...
  INITRD_MODULES="processor thermal ahci fan jbd ext3 edd"
  DOMU_INITRD_MODULES="xennet xenblk"
  ...

On 'old' mkinitrd, if both -xen and non-xen kernels were installed, initrd's were created for each.  In the xen case the modules defined in "DOMU_INITRD_MODULES" were conditionally added to the initrd-xen.

Since the  switch to dracut, module config/loading is defined in dracut.conf & dracut.d/*conf

But the 

add_drivers+=" ... " 

is apparently added for all kernels.

What's the right way to add kernel-specific modules in dracut, so that for example the xen mods are ONLY added in the xen case?

LT
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux