From 57aef87f446c9517a82375350ac2e7a4dc52777e Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 11 Sep 2013 13:42:46 +0200 Subject: Enable var-*.mount units in sysinit.target. --- Makefile.am | 8 ++++++++ configure.ac | 1 + 2 files changed, 9 insertions(+) diff --git a/Makefile.am b/Makefile.am index 5099c6d..778f8f8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,6 +11,14 @@ dist_systemdsystemunit_DATA = \ dist_systemdsystemgenerator_SCRIPTS = \ system-generators/gentoo-local-generator +install-data-hook: \ + systemd-system-unit-install-hook + +systemd-system-unit-install-hook: + mkdir -p $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants + $(LN_S) ../var-lock.mount ../var-run.mount \ + $(DESTDIR)$(systemdsystemunitdir)/sysinit.target.wants/ + DISTCLEANFILES = \ $(systemdsystemunit_DATA) diff --git a/configure.ac b/configure.ac index 0e03a5e..df0a38d 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,7 @@ AC_INIT([gentoo-systemd-integration], [0]) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2 subdir-objects]) +AC_PROG_LN_S AC_PROG_SED # https://bitbucket.org/mgorny/systemd-m4/ -- cgit v1.2.3-65-gdbad