If ./configure is run without any further options, then /usr/etc
is used as SYSCONFDIR, which breaks test-weakdep, because the
/etc path is hardcoded in it.
Use SYSCONFDIR to reflect the actual rootfs setup.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/157
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
#define TEST_WEAKDEP_KERNEL_DIR TEST_WEAKDEP_ROOTFS MODULE_DIRECTORY "/4.4.4/"
static const char *const test_weakdep_config_paths[] = {
- TEST_WEAKDEP_ROOTFS "etc/modprobe.d",
+ TEST_WEAKDEP_ROOTFS SYSCONFDIR "/modprobe.d",
NULL,
};