for opt in \
  CONFIG_BLK_DEV_INITRD \
  CONFIG_DEVTMPFS
do
  if ! kernel_option_present $opt; then
    WARN=1
    message "${MESSAGE_COLOR}Kernel configuration option is missing: ${PROBLEM_COLOR}$opt${DEFAULT_COLOR}"
  fi
done
if [ -n "$WARN" ]; then
  message "${MESSAGE_COLOR}Please reconfigure and rebuild your kernel before booting with an initramfs generated by dracut.${DEFAULT_COLOR}"
  if ! query "Ignore this warning and continue installation?" n ; then
    exit 1
  fi
fi

default_pre_build &&

sedit 's:dash:bash:' Makefile &&

if in_depends dracut asciidoc
then
    DOCBOOK_XSL_MAN=$(lvu install docbook-xsl | grep "manpages/docbook.xsl$")
    DOCBOOK_XSL_HTML=$(lvu install docbook-xsl | grep "xhtml/docbook.xsl$")

    sedit "s|http://docbook.*manpages/docbook.xsl|$DOCBOOK_XSL_MAN|" Makefile &&
    sedit "s|http://docbook.*xhtml/docbook.xsl|$DOCBOOK_XSL_HTML|" Makefile
fi
