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

remote attach: use absolute /bin/sh path on Linux #10765

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

bluca
Copy link
Member

@bluca bluca commented Mar 31, 2023

When using machinectl as a transport to connect the debugger to a nspawn container, we need to pass full paths when running commands, as that's what machinectl expects. Use /bin/sh when running on Linux. This allows connecting VSCode to nspawn containers.

https://www.freedesktop.org/software/systemd/man/machinectl.html https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html

When using machinectl as a transport to connect the debugger to
a nspawn container, we need to pass full paths when running commands,
as that's what machinectl expects. Use /bin/sh when running on Linux.
This allows connecting VSCode to nspawn containers.

https://www.freedesktop.org/software/systemd/man/machinectl.html
https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html
@bluca
Copy link
Member Author

bluca commented Apr 4, 2023

@WardenGnaw @sean-mcmanus thanks for the reviews and approvals - who can I ask about clicking the merge button?

@sean-mcmanus sean-mcmanus merged commit 6cabb39 into microsoft:main Apr 4, 2023
@bluca bluca deleted the bin_sh branch April 4, 2023 17:35
@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants