Prevent an early load of the Astribank (xpp) drivers at initrd time, as they require some files from the root filesystem.
This installs a file in the dracut configuration directory that will take effect the next time dracut generates an initrd image. --- configure.ac | 9 +++++++++ xpp/20-dahdi.conf | 5 +++++ xpp/Makefile.am | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 xpp/20-dahdi.conf diff --git a/configure.ac b/configure.ac index 826a7ec..61ceadd 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,15 @@ AC_ARG_WITH(udevrules, ) AC_SUBST([udevrulesdir], "$udevrulesdir") +m4_define([_DRACUT_DIR_DEFAULT], [${sysconfdir}/dracut/dracut.conf.d])dnl +AC_ARG_WITH(dracutconf, + [AS_HELP_STRING([--with-dracutconf=PATH], + [Location of UDEV rules @<:@default=]_DRACUT_DIR_DEFAULT[@:>@])], + [dracutconfdir=$withval], + [dracutconfdir=]'_DRACUT_DIR_DEFAULT' +) +AC_SUBST([dracutconfdir], "$dracutconfdir") + # specify output header file AC_CONFIG_HEADER(autoconfig.h) diff --git a/xpp/20-dahdi.conf b/xpp/20-dahdi.conf new file mode 100644 index 0000000..a0a5ce8 --- /dev/null +++ b/xpp/20-dahdi.conf @@ -0,0 +1,5 @@ +# A dracut.conf(5) snippet +# Disable loading the Astribank (xpp_usb) drivers. This is because +# it relies on files in the root filesystem: +# See https://issues.asterisk.org/jira/browse/DAHLIN-352 +omit_drivers+=" xpp_usb " diff --git a/xpp/Makefile.am b/xpp/Makefile.am index 05f1b1c..32c52db 100644 --- a/xpp/Makefile.am +++ b/xpp/Makefile.am @@ -62,6 +62,9 @@ dist_sbin_SCRIPTS = $(perl_scripts) man_MANS += $(perl_mans) CLEANFILES = $(perl_checks) $(perl_mans) +dracutconfdir = @dracutconfdir@ +dracutconf_DATA = 20-dahdi.conf + if PBX_USB SUBDIRS += oct612x xtalk -- 2.11.0 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev