Yocto state-script fw_printenv not found

davidlekve
Fri, 01 Nov 2024 16:36:04 +0000
General Discussions

My statescript start with the following
if [ ! -x /sbin/fw_printenv ]; then
echo “printenv not found” >&2
exit 1
fi

And I get this from my log:

2024-11-01 16:29:05.988 +0000 UTC info: Running Mender client 4.0.4
2024-11-01 16:29:05.988 +0000 UTC info: Deployment with ID 486f7cc5-d445-4a22-b71e-b446167910c6 started.
2024-11-01 16:29:05.988 +0000 UTC info: Sending status update to server
2024-11-01 16:29:06.627 +0000 UTC info: Installing artifact…
2024-11-01 16:29:18.855 +0000 UTC info: Update Module output (stdout): ================ STATISTICS ================
2024-11-01 16:29:18.855 +0000 UTC info: Update Module output (stdout): Blocks written: 0
2024-11-01 16:29:18.855 +0000 UTC info: Update Module output (stdout): Blocks omitted: 376
2024-11-01 16:29:18.855 +0000 UTC info: Update Module output (stdout): Bytes written: 0
2024-11-01 16:29:18.855 +0000 UTC info: Update Module output (stdout): ============================================
2024-11-01 16:29:18.866 +0000 UTC info: Running State Script: /etc/mender/scripts/Download_Leave_10
2024-11-01 16:29:18.875 +0000 UTC info: Collected output (stderr) while running script: batterybrain_v1.1: Running Download_Leave_10
2024-11-01 16:29:18.876 +0000 UTC info: Collected output (stderr) while running script: fw_printenv not found
2024-11-01 16:29:18.876 +0000 UTC error: Received error: (NonZero exit code error: Received error code: 1) when running the State Script scripts DownloadLeave
2024-11-01 16:29:18.893 +0000 UTC info: Sending status update to server

If I go into the directory /sbin the file fw_printenv is there but if I am in home and do ls -l /sbin/fw_printenv it returns that it cannot be found. Does anyone know what is going on here? Thank you for your help

4 posts - 2 participants