From a326f3ca758648bc7dabaf899e78d4b80db400e5 Mon Sep 17 00:00:00 2001
From: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Date: Mon, 25 Jun 2018 13:49:06 +0100
Subject: Fix /bin /sbin links to systemd

`$prefix` was pointing to ../usr but links don't need relative path
anymore.
Removing $prefix from the links make the link to work again.
---
 elements/foundation/systemd.bst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'elements/foundation/systemd.bst')

diff --git a/elements/foundation/systemd.bst b/elements/foundation/systemd.bst
index 25ec3124..c03720f4 100644
--- a/elements/foundation/systemd.bst
+++ b/elements/foundation/systemd.bst
@@ -18,8 +18,8 @@ config:
   install-commands:
     (>):
     - mkdir -p "%{install-root}"/sbin
-    - ln -s "%{prefix}"/lib/systemd/systemd "%{install-root}"/sbin/init
-    - for f in telinit runlevel shutdown poweroff reboot halt; do ln -s "%{prefix}"/bin/systemctl
+    - ln -s /lib/systemd/systemd "%{install-root}"/sbin/init
+    - for f in telinit runlevel shutdown poweroff reboot halt; do ln -s /bin/systemctl
       "%{install-root}/sbin/$f"; done
     - touch "%{install-root}/etc/machine-id"
     - |
-- 
cgit v1.2.1

