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

Refactor bootstrap for developer debug #364

Open
troglobit opened this issue Mar 27, 2024 · 0 comments
Open

Refactor bootstrap for developer debug #364

troglobit opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@troglobit
Copy link
Contributor

troglobit commented Mar 27, 2024

Currently a lot of system bootstrap tasks, like loading YANG models and startup-config, is done in runlevel S. When completed, the system proceeds to runlevel 2 to bring up networking and system services.

This presents bit of a problem for board bring-up and debugging.

An alternative bootstrap could be to let runlevel S only do the absolute minimal so that a kernel command line argument S could bring the system to single user mode (runlevel 1) without having loaded YANG models and startup-config, and thus leaving the system in a "debuggable" state -- provided of course the Infix image has password-less root login enabled.

The impact of the change on the system would be minimal (if any):

  • current runlevel S tasks move to runlevel 2
  • add a task in runlevel 2 that waits for startup-config to be loaded and trigger change to runlevel 3
  • all services currently starting in runlevel 2 would be moved to runlevel 3

Idea by: @wkz

@troglobit troglobit converted this from a draft issue Mar 27, 2024
@troglobit troglobit moved this to Todo in Infix & C:o Mar 27, 2024
@troglobit troglobit added the enhancement New feature or request label Mar 27, 2024
@troglobit troglobit pinned this issue Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant