aboutsummaryrefslogtreecommitdiffstats
path: root/config/user-dracut.m4
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-02-22 10:16:16 -0800
committerBrian Behlendorf <[email protected]>2013-03-06 15:46:41 -0800
commitffb21118add1a2e6cec2ce401c333b4a4e76d9a3 (patch)
tree25a5b7b784e037786445bc860bf3f61311013661 /config/user-dracut.m4
parentd09f98a9a688905a06a4bd2a92752bebe0f28e63 (diff)
Add --with-dracutdir configure option
The standard dracut directory has moved from /usr/share/dracut to /usr/lib/dracut. To ensure the dracut modules get installed in the correct location provide a --with-dracutdir configure option to set the path. The default install location has been updated to /usr/lib/dracut which is used by more current versions of Fedora. However, this default is overriden by the RPM packaging for consistency. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'config/user-dracut.m4')
-rw-r--r--config/user-dracut.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/config/user-dracut.m4 b/config/user-dracut.m4
new file mode 100644
index 000000000..6d96edc27
--- /dev/null
+++ b/config/user-dracut.m4
@@ -0,0 +1,8 @@
+AC_DEFUN([ZFS_AC_CONFIG_USER_DRACUT], [
+ AC_ARG_WITH(dracutdir,
+ AC_HELP_STRING([--with-dracutdir=DIR],
+ [install dracut helpers [[EPREFIX/lib/dracut]]]),
+ dracutdir=$withval, dracutdir='${exec_prefix}/lib/dracut')
+
+ AC_SUBST(dracutdir)
+])