From 01c0e61da027925b71c923a2b3896abf458b45a9 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 17 Mar 2011 15:02:28 -0700 Subject: Add init scripts To support automatically mounting your zfs on filesystem on boot a basic init script is needed. Unfortunately, every distribution has their own idea of the _right_ way to do things. Rather than write one very complicated portable init script, which would be invariably replaced by the distributions own anyway. I have instead added support to provide multiple distribution specific init scripts. The correct init script for your distribution will be selected by ZFS_AC_DEFAULT_PACKAGE which will set DEFAULT_INIT_SCRIPT. During 'make install' the correct script for your system will be installed from zfs/etc/init.d/zfs.DEFAULT_INIT_SCRIPT to the usual /etc/init.d/zfs location. Currently, there is zfs.fedora and a more generic zfs.lsb init script. Hopefully, the distribution maintainers who know best how they want their init scripts to function will feedback their approved versions to be included in the project. This change does not consider upstart jobs but I'm not at all opposed to add that sort of thing. --- etc/zfs/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 etc/zfs/Makefile.am (limited to 'etc/zfs/Makefile.am') diff --git a/etc/zfs/Makefile.am b/etc/zfs/Makefile.am new file mode 100644 index 000000000..027c397e4 --- /dev/null +++ b/etc/zfs/Makefile.am @@ -0,0 +1,9 @@ +pkgsysconfdir = $(sysconfdir)/zfs + +pkgsysconf_DATA = \ + zdev.conf \ + zdev.conf.supermicro.example \ + zdev.conf.dragon.example \ + zdev.conf.x4550.example + +EXTRA_DIST = $(pkgsysconf_DATA) -- cgit v1.2.3