[Edgecore][PDDF] Add debian prerm to remove unrelated service #16983
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.
Why I did it
For support PDDF platform that will see unrelated service in the DUT.
For example, we can see unrelated service in as4630-54pe machine.
root@sonic:~# systemctl status as
as4630-54pe-pddf-platform-monitor.service
as4630-54pe-platform-monitor-fan.service
as4630-54pe-platform-monitor-psu.service
as4630-54pe-platform-monitor.service
as7326-platform-handle_mac.service
as7712-pddf-platform-monitor.service
as7726-32x-platform-handle_mac.service
as7816-pddf-platform-monitor.service
as9716-platform-custom-init.service
Work item tracking
How I did it
Add *.prerm for support pddf platform. Then when boot or install deb, it will remove all service.
After that, *.post will enable one platform service.
How to verify it
Put all *.prerm to debian folder. Rebuild image and boot.
We only see "as4630-54pe service" in as4630 machine.
root@sonic:~# systemctl status as
as4630-54pe-pddf-platform-monitor.service
as4630-54pe-platform-monitor-fan.service
as4630-54pe-platform-monitor-psu.service
as4630-54pe-platform-monitor.service
Which release branch to backport (provide reason below if selected)
In the branch , related accton platform support pddf.
In the branch , related accton platform support pddf.
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)