From d32d11eb8e8c6dfd459652ec1aefb3dec8c50edf Mon Sep 17 00:00:00 2001 From: babak sarashki Date: Sat, 26 Oct 2019 09:15:27 -0700 Subject: [PATCH] Fix path variables in stx scripts to use bindir vs local/bin --- classes/stx-postrun.bbclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/classes/stx-postrun.bbclass b/classes/stx-postrun.bbclass index 7adcfdb..2fe1f9c 100644 --- a/classes/stx-postrun.bbclass +++ b/classes/stx-postrun.bbclass @@ -25,6 +25,18 @@ stx_postprocess_rootfs() { echo 'sysadmin ALL=(ALL) NOPASSWD:ALL' >> ${IMAGE_ROOTFS}/etc/sudoers + CPWD=$(pwd) + cd ${IMAGE_ROOTFS}/etc/rc.d/init.d + for srv in $(echo hbsAgent runservices mtclog mtcalarm mtcClient \ + pmon hwmon hostw lmon guestAgent guestServer fm-api \ + ) + do + rm -f $srv + ln -s /etc/init.d/$srv . + sed -i -e 's:^DAEMON="/usr/local/bin:DAEMON="/usr/bin:g' ../../init.d/$srv + done + cd $CPWD + cat > ${IMAGE_ROOTFS}/etc/build.info << \EOF OS="poky" SW_VERSION="19.01"