Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Edgecore][PDDF] Add debian prerm to remove unrelated service #16983

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jostar-yang
Copy link
Contributor

@jostar-yang jostar-yang commented Oct 24, 2023

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
  • Microsoft ADO (number only):

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)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
    In the branch , related accton platform support pddf.
  • 202305
    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)

@jostar-yang jostar-yang requested a review from lguohan as a code owner October 24, 2023 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant