aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/initramfs/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/initramfs/Makefile.am')
-rw-r--r--contrib/initramfs/Makefile.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/initramfs/Makefile.am b/contrib/initramfs/Makefile.am
new file mode 100644
index 000000000..fa2b5a283
--- /dev/null
+++ b/contrib/initramfs/Makefile.am
@@ -0,0 +1,21 @@
+initrddir = $(datarootdir)/initramfs-tools
+
+initrd_SCRIPTS = conf-hooks.d/zfs hooks/zfs scripts/zfs
+
+EXTRA_DIST = \
+ $(top_srcdir)/contrib/initramfs/conf-hooks.d/zfs \
+ $(top_srcdir)/contrib/initramfs/hooks/zfs \
+ $(top_srcdir)/contrib/initramfs/scripts/zfs \
+ $(top_srcdir)/contrib/initramfs/README.initramfs.markdown
+
+install-initrdSCRIPTS: $(EXTRA_DIST)
+ for d in conf-hooks.d hooks scripts; do \
+ $(MKDIR_P) $(DESTDIR)$(initrddir)/$$d; \
+ cp $(top_srcdir)/contrib/initramfs/$$d/zfs \
+ $(DESTDIR)$(initrddir)/$$d/; \
+ done
+ if [ -f etc/init.d/zfs ]; then \
+ $(MKDIR_P) $(DESTDIR)$(DEFAULT_INITCONF_DIR); \
+ cp $(top_srcdir)/etc/init.d/zfs \
+ $(DESTDIR)$(DEFAULT_INITCONF_DIR)/; \
+ fi