| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR fixes a bug where the edit-config script fails in LXC containers due to an inherited container environment variable from /etc/profile being mistakenly treated as a command.
Key Changes:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…le (netdata#21505) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> (cherry picked from commit 17bfcfe)
…le (netdata#21505) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> (cherry picked from commit 17bfcfe)
| Back | FazBrowse Home | New Git URL |
Summary
Fixes: #21504
Issue:
edit-config sources /etc/profile, which may define a container environment variable (e.g. container=lxc in LXC environments).
If container is not explicitly set by the caller, this inherited value is later treated as a command, causing failures.
Fix:
Preserve the container variable only if it was explicitly set by the caller before sourcing /etc/profile.
Test Plan
Additional Information
For users: How does this change affect me?Summary by cubic
Prevent edit-config from using a container value inherited from /etc/profile unless the caller set it. This avoids failures where inherited values (e.g., container=lxc) are treated as commands.
Written for commit bdae96f. Summary will update automatically on new commits.