From 7b315cb812abe6df8c451f7b9bd5fa540df471b6 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Sun, 26 Apr 2020 13:38:47 +0800 Subject: [PATCH] mtce-control: fix the hardcoded path for hbsAgent - fix the hardcoded path for hbsAgent Signed-off-by: Jackie Huang Signed-off-by: Babak Sarashki --- ...ce-control-fix-hardcoded-path-for-hbsAgent.patch | 13 +++++++++++++ meta-stx-flock/stx-metal/mtce-control.bb | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 meta-stx-flock/stx-metal/files/mtce-control-fix-hardcoded-path-for-hbsAgent.patch diff --git a/meta-stx-flock/stx-metal/files/mtce-control-fix-hardcoded-path-for-hbsAgent.patch b/meta-stx-flock/stx-metal/files/mtce-control-fix-hardcoded-path-for-hbsAgent.patch new file mode 100644 index 0000000..17c0311 --- /dev/null +++ b/meta-stx-flock/stx-metal/files/mtce-control-fix-hardcoded-path-for-hbsAgent.patch @@ -0,0 +1,13 @@ +diff --git a/mtce-control/src/scripts/hbsAgent b/mtce-control/src/scripts/hbsAgent +index d05177d..13443d0 100644 +--- a/mtce-control/src/scripts/hbsAgent ++++ b/mtce-control/src/scripts/hbsAgent +@@ -20,7 +20,7 @@ + . /etc/init.d/functions + + DAEMON_NAME="hbsAgent" +-DAEMON="/usr/local/bin/${DAEMON_NAME}" ++DAEMON="${bindir}/${DAEMON_NAME}" + PIDFILE="/var/run/${DAEMON_NAME}.pid" + + VIRT_TOOL='virt-what' diff --git a/meta-stx-flock/stx-metal/mtce-control.bb b/meta-stx-flock/stx-metal/mtce-control.bb index 793b7dd..866564d 100644 --- a/meta-stx-flock/stx-metal/mtce-control.bb +++ b/meta-stx-flock/stx-metal/mtce-control.bb @@ -6,7 +6,9 @@ S = "${S_DIR}/mtce-control/src/" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -SRC_URI += "file://0001-mtce-control-dont-install-empty-directory-unless-nee.patch;striplevel=3" +SRC_URI += "file://0001-mtce-control-dont-install-empty-directory-unless-nee.patch;striplevel=3 \ + file://mtce-control-fix-hardcoded-path-for-hbsAgent.patch;striplevel=3 \ + " RDEPENDS_${PN}_append = " \ bash \