Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
confd: missing admin password, set error in /etc/issue & /etc/banner
The bootstrap script gets feedback from gen-admin-auth, on error we no longer bail out but instead log the error and continue booting. This way a developer build with root login can diagnose the error. When logging the error we also set /etc/issue, /etc/issue.net for local and remote login services, as well as the dedicated /etc/banner used by OpenSSH, to hold the error summary. So when attaching to the console port, or attempting to log in remotely with SSH, the error is printed to indicate the device is not healthy. Finally, since factory-config may be missing we need to bootstrap the sysrepo db with something else, and fortunately we will always have a failure-config to fall back on. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
- Loading branch information