-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
add a mechanism for reasonably diagnosing early boot issues #243
Comments
Still thinking about this. I agree that some solution is needed, not sure what the best option is yet. |
making --log-file not require starts-log would be a start (what's even the reasoning behind that requirement? i can see it for syslog, but...) i'm thinking perhaps an service file option to make it "quiet" (i.e. no start/stop messages, only errors) would also help some, to declutter early boot |
The man page is actually out of date, it requires |
starts-rwfs is still no good, as it's perfectly reasonable that one may be writing the early log in a tmpfs |
Yep, hence:
|
Right now if there is an unexpected case or error in early boot, dinit will dump a whole lot of stop messages, obscuring what actually failed. There is no way to get the output; there is a good chance that it failed before root could even mount read-write yet, and
--log-file
expectsstarts-log
service to have started already so it's pretty useless without doing hacky interventions in the system.So best users can do is something like
init=/bin/sh
and then run likemount -t tmpfs none /somewhere
anddinit --system|tee /somewhere/log.txt
and see what went wrong to fix it and be able to boot the normal way.Either making the output less uselessly dumpy (do we really need to know 20 services have stopped?) would help, or some kind of pager, or ...
The text was updated successfully, but these errors were encountered: