Fix the error that 'sensord' daemon cannot be spawn correctly in pmon container #4354
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit fixes #4021 (Sensord not able to start up on both master and 201911 branches)
- What I did
Investigate the reason that "sensord" cannot be spawned correctly through the execution of "service sensord start" in the file "lm-sensors.sh". It is found that the required init script for 'sensord' is missing in the pmon container. The required init script is not found in the built "sensord_3.4.0-4_amd64.deb" either.
- How I did it
Add the new patch file for "lm-sensors" to perform dh_installinit to include "sensord.init" in the packed deb. So that the missing init script file for 'sensord' will be included in the created 'sensord' deb.
- How to verify it
Execute "target/debs/stretch/sensord_3.4.0-4_amd64.deb" after applying this commit and upload the new "sensord_3.4.0-4_amd64.deb" to the pmon container on AS7712-32X. Execute "dpkg -i sensord_3.4.0-4_amd64.deb" in the pmon container.
Here is the output of 'ps -x' in the pmon container before installing the new 'sensord' deb.
Here is the outout of the files under the directory '/etc/init.d' before and after installing the new 'sensord' deb in pmon container.
Here is the output in the pmon container after reboot the DUT. It is found that "/usr/sbin/sensord" is running now.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)