summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2012-02-22 17:55:10 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2012-02-22 17:55:10 +0000
commit4417a8bd40a1dc35eba61ab7abb168b2ef89f472 (patch)
treefdfce4161032eca4da423e599e51fb33aa161e5b /scripts
parente8eb64c878173990829f98d9fbeb6d379c4239ba (diff)
downloadlvm2-4417a8bd40a1dc35eba61ab7abb168b2ef89f472.tar.gz
lvm2-4417a8bd40a1dc35eba61ab7abb168b2ef89f472.tar.xz
lvm2-4417a8bd40a1dc35eba61ab7abb168b2ef89f472.zip
Add configure --with-tmpfilesdir and lvm2 tmpfiles.d configuration file itself.
/etc/tmpfiles.d directory holds configuration files for temporary/volatile files and directories that should be automatically managed. For example, if we have some parts of the fs hierarchy on tmpfs, we'd like to recreate some files or directories on every boot so they're always prepared for use. Systemd can read such configuration files. For now, the lock and run directory are the ones that are most probably placed on tmpfs. If this is the case, we can install the configuration by 'make install_tmpfiles_configuration'.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/Makefile.in b/scripts/Makefile.in
index bf1b1c41..3a9ded5c 100644
--- a/scripts/Makefile.in
+++ b/scripts/Makefile.in
@@ -60,5 +60,9 @@ install_systemd_units:
$(INSTALL_DATA) dm_event_systemd_red_hat.service $(systemd_dir)/dm-event.service
$(INSTALL_DATA) lvm2_monitoring_systemd_red_hat.service $(systemd_dir)/lvm2-monitor.service
+install_tmpfiles_configuration:
+ $(INSTALL_DIR) $(tmpfiles_dir)
+ $(INSTALL_DATA) lvm2_tmpfiles_red_hat.conf $(tmpfiles_dir)/lvm2.conf
+
DISTCLEAN_TARGETS += clvmd_init_red_hat cmirrord_init_red_hat lvm2_monitoring_init_red_hat \
dm_event_systemd_red_hat.service lvm2_monitoring_systemd_red_hat.service