Skip to content

[build] Add socat to host system for console-monitor support#25525

Merged
yejianquan merged 1 commit into
sonic-net:masterfrom
wiperi:cliffchen/submit/add_socat_to_host
May 11, 2026
Merged

[build] Add socat to host system for console-monitor support#25525
yejianquan merged 1 commit into
sonic-net:masterfrom
wiperi:cliffchen/submit/add_socat_to_host

Conversation

@wiperi
Copy link
Copy Markdown
Contributor

@wiperi wiperi commented Feb 16, 2026

Why I did it

The console-monitor feature in sonic-host-services requires socat to create PTY pairs for console port bridging. This PR adds socat as a host system dependency to ensure console-monitor can function properly.

Work item tracking
  • Microsoft ADO (number only):

How I did it

  • Added $(SOCAT) to the installer build dependencies in slave.mk to ensure the socat deb package is built
  • Added $(SOCAT) to installer_debs export variable in slave.mk so socat gets installed to the host filesystem

How to verify it

  • Install SONiC Image
  • Check socat is installed

Which release branch to backport (provide reason below if selected)

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

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)

Signed-off-by: cliffchen <t-cliffchen+github@microsoft.com>
Copilot AI review requested due to automatic review settings February 16, 2026 04:06
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds socat as a host system dependency to support the console-monitor feature in sonic-host-services. The socat package is needed for creating PTY (pseudo-terminal) pairs for console port bridging functionality.

Changes:

  • Added socat to the installer image dependency list
  • Added socat to the installer_debs export for inclusion in the final image

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202603: Azure/sonic-buildimage-msft#2281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants