kernelkit / infix

Linux :yellow_heart: NETCONF = Infix
https://kernelkit.org
GNU General Public License v2.0
48 stars 12 forks source link

Failed to copy factory-config to startup-config #259

Closed axkar closed 7 months ago

axkar commented 9 months ago

Issue

The command: copy factory-config startup-config fails to copy factory configuration to /cfg/startup-config.cfg

Workaround

Run the commands in the following order: copy running-config startup-config copy factory-config startup-config Copying successful

troglobit commented 8 months ago

Just noticed a similar issue on the NanoPi R2S, tab completing copy running-config sta<TAB> did not work. Typing it in manually though did work, however.

Both copy and tab completion are part of src/klish-plugin-infix. The tab completion function, infix_datastore() as well as logs to stderr, which I believe is wrong. klishd parses and mangles the output from these callbacks, so we should probably rewrite the logging functions to use syslog() instead as an attempt to get to the bottom of this issue.

troglobit commented 8 months ago

Fix pending on container-basic branch.