worker-utils.inc: fix the path for drbdadm 83/3583/1
authorJackie Huang <jackie.huang@windriver.com>
Tue, 5 May 2020 01:37:41 +0000 (09:37 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Tue, 5 May 2020 13:57:15 +0000 (21:57 +0800)
fix the path for drbdadm in script affine-tasks.sh

Issue-ID: INF-81
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I45da6f59a038610d41992750468160bbe3e0d678

meta-stx/recipes-core/stx-utilities/utilities/worker-utils.inc

index 8c0c143..73053d7 100644 (file)
@@ -38,6 +38,8 @@ do_install_append() {
                GOENABLEDDIR=${D}/${sysconfdir}/goenabled.d \
                PLATFORMCONFDIR=${D}/${sysconfdir}/platform \
                SYSTEMDDIR=${D}/${systemd_system_unitdir}
+
+       sed -i -e 's|drbdadm|${base_sbindir}/drbdadm|' ${D}/${sysconfdir}/init.d/affine-tasks.sh
 }
 
 FILES_worker-utils = "  \