Fix path variables in stx scripts to use bindir vs local/bin

This commit is contained in:
babak sarashki 2019-10-26 09:15:27 -07:00
parent 55dad912f1
commit d32d11eb8e

View File

@ -25,6 +25,18 @@ stx_postprocess_rootfs() {
echo 'sysadmin ALL=(ALL) NOPASSWD:ALL' >> ${IMAGE_ROOTFS}/etc/sudoers 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 cat > ${IMAGE_ROOTFS}/etc/build.info << \EOF
OS="poky" OS="poky"
SW_VERSION="19.01" SW_VERSION="19.01"