On Sun, Apr 12, 2015, at 01:11 AM, Andrei Borzenkov wrote:
> > 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?
> Not sure about the "right" way, but dracut configuration files are
> shell scripts, so you can implement the same logic in /etc/dracut.d
> snippet, something like
> if is_xen_kernel ; then
>   add_drivers+=" ..."
> fi
> where is_xen_kernel does whatever check is required to detect domU
> kernel.

Option to use if ...  should do the trick.

Detecting if xen is RUNNING is

if test -d /proc/xen; then

But that's not the needed test.  Like you said have to get a test that checks 
if the dracut TARGET is a xen kernel.  When dracut's running across multiple 
xen & non-xen kernels, I'm not yet sure how to hook that info from inside 

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

Reply via email to