Skip to content

[Bug]: edit-config container misdetection #21504

@UweOhse

Description

@UweOhse

Bug description

When running edit-config in a lxc container i encountered a error message, causing the script to fail.

./edit-config --list
./edit-config: exec: line 136: lxc: not found

This happens because $container is set to "lxc" in /etc/profile and not initialized inside edit-config.
setting container="" directly after including /etc/profile solves the issue.

Expected behavior

It should just work :-)

Steps to reproduce

  1. create an lxc container,
  2. install netdata inside
  3. try edit-config
    ...

Installation method

kickstart.sh

System info

Linux netdata 6.14.11-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.14.11-1 (2025-08-26T16:06Z) x86_64 Linux

Netdata build info

Packaging:
    Netdata Version ____________________________________________ : v2.8.0-155-nightly
    Installation Type __________________________________________ : kickstart-static

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triageIssues which need to be manually labelled

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions