zfsonlinux/zfs — pull request #561 by pendor (2012-02-05 18:49:57+00:00)
Title: Detect Dracut modules.d location, don't install mod w/o Dracut

Attached adds detection of where the current Dracut version keeps its modules.d and won't install module if Dracut isn't present on system. Should fix #546.

This is using AC_PATH_PROG to find Dracut, then grep'ing through the shell script to find dracutbasedir's definition. All the dracut versions I have locally (010 through 014) provide the necessary define in a grep'able format, but it might be brittle if Dracut changes significantly.