diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-09-30 18:19:49 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-09-30 18:19:49 +0200 |
commit | 19da29a60408f9000e8db7aefff55d254e54152d (patch) | |
tree | 2cb19bd716c933b91d2c2fe661a9668503cafb68 /rules/fake-overlayfs.make | |
parent | 2c117c8065660f45367d5d7d11c441fbe23bd6fe (diff) | |
download | ptxdist-19da29a60408f9000e8db7aefff55d254e54152d.tar.gz ptxdist-19da29a60408f9000e8db7aefff55d254e54152d.tar.xz |
fake-overlayfs: add systemd support
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/fake-overlayfs.make')
-rw-r--r-- | rules/fake-overlayfs.make | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/rules/fake-overlayfs.make b/rules/fake-overlayfs.make index 54227fc01..7c81d4b60 100644 --- a/rules/fake-overlayfs.make +++ b/rules/fake-overlayfs.make @@ -49,15 +49,26 @@ $(STATEDIR)/fake-overlayfs.targetinstall: @$(call install_fixup, fake-overlayfs,DESCRIPTION,missing) @$(call install_alternative, fake-overlayfs, 0, 0, 0755, \ - /etc/init.d/fake-overlayfs) - @$(call install_replace, fake-overlayfs, /etc/init.d/fake-overlayfs, \ + /sbin/fake-overlayfs) + @$(call install_replace, fake-overlayfs, /sbin/fake-overlayfs, \ @OVERLAY_DIRLIST@, $(FAKE_OVERLAYFS_DIRS)) +ifdef PTXCONF_INITMETHOD_BBINIT + @$(call install_alternative, fake-overlayfs, 0, 0, 0755, \ + /etc/init.d/fake-overlayfs) + ifneq ($(call remove_quotes,$(PTXCONF_FAKE_OVERLAYFS_BBINIT_LINK)),) @$(call install_link, fake-overlayfs, \ ../init.d/fake-overlayfs, \ /etc/rc.d/$(PTXCONF_FAKE_OVERLAYFS_BBINIT_LINK)) endif +endif +ifdef PTXCONF_LIGHTTPD_SYSTEMD_UNIT + @$(call install_alternative, fake-overlayfs, 0, 0, 0644, \ + /lib/systemd/system/fake-overlayfs.service) + @$(call install_link, fake-overlayfs, ../fake-overlayfs.service, \ + /lib/systemd/system/sysinit.target.wants/fake-overlayfs.service) +endif @$(call install_finish, fake-overlayfs) |