summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyoungJune Park <mj2004.park@samsung.com>2016-01-04 16:38:02 +0900
committerMyoungJune Park <mj2004.park@samsung.com>2016-01-20 08:50:37 +0900
commit860690ff657c690d603d0ef6ad3c684e6772cd62 (patch)
tree02ef52eb55e707daa80bda7549c70659f3502695
parentfbb17af802906791f508040fd8741dc37e3a4e1a (diff)
downloaddracut-860690ff657c690d603d0ef6ad3c684e6772cd62.tar.gz
dracut-860690ff657c690d603d0ef6ad3c684e6772cd62.tar.bz2
dracut-860690ff657c690d603d0ef6ad3c684e6772cd62.zip
Change-Id: Id99f4c30b97aee49a6f0372ad569fa946b79e23f Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bfd1320d..c889510d 100644
--- a/Makefile
+++ b/Makefile
@@ -112,7 +112,7 @@ ifneq ($(enable_documentation),no)
endif
if [ -n "$(systemdsystemunitdir)" ]; then \
mkdir -p $(DESTDIR)$(systemdsystemunitdir); \
- ln -srf $(DESTDIR)$(pkglibdir)/modules.d/98systemd/dracut-shutdown.service $(DESTDIR)$(systemdsystemunitdir)/dracut-shutdown.service; \
+ cd $(DESTDIR) && ln -sf ./$(pkglibdir)/modules.d/98systemd/dracut-shutdown.service ./$(systemdsystemunitdir)/dracut-shutdown.service && cd - ; \
mkdir -p $(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants; \
ln -s ../dracut-shutdown.service \
$(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants/dracut-shutdown.service; \
@@ -126,7 +126,7 @@ endif
dracut-pre-trigger.service \
dracut-pre-udev.service \
; do \
- ln -srf $(DESTDIR)$(pkglibdir)/modules.d/98systemd/$$i $(DESTDIR)$(systemdsystemunitdir); \
+ cd $(DESTDIR) && ln -sf ./$(pkglibdir)/modules.d/98systemd/$$i ./$(systemdsystemunitdir) && cd -; \
ln -s ../$$i \
$(DESTDIR)$(systemdsystemunitdir)/initrd.target.wants/$$i; \
done \