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 \