Update documentation, debug replaces --debug and finit_debug

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-12-30 21:56:24 +01:00
1 parent fc08b0c65b
commit 6d1c245985
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ Bootstrap
2. Set up initial signal handlers
3. Set up default $PATH early
4. Mount `/proc` and `/sys`
5. Check kernel command line for `--debug` to figure out log level
5. Check kernel command line for `debug` to figure out log level
6. Load all `.so` plugins
7. Call `fsck` on file systems listed in `/etc/fstab`
8. Populate `/dev` using either udev or mdev, depending on system type
+3 -3
View File
@@ -127,11 +127,11 @@ Remember to also set up an initial `/etc/finit.conf` before rebooting!
Debugging
---------
Add `finit_debug`, or `--debug`, to the kernel command line to enable
debug messages.
Edit, or append to, the kernel command line: remove `quiet` to enable
kernel messages and add `debug` to enable Finit debug messages.
```shell
append="init=/sbin/finit --debug"
append="init=/sbin/finit debug"
```
To debug startup issues, in particular issues with getty/login, try
+1 -1
View File
@@ -187,7 +187,7 @@ static void emergency_shell(void)
}
fprintf(stderr, "\n=> Embarrassingly, Finit has crashed. Check /dev/kmsg for details.\n");
fprintf(stderr, "=> To debug, add '--debug' to the kernel command line.\n\n");
fprintf(stderr, "=> To debug, add 'debug' to the kernel command line.\n\n");
/*
* Become session leader and set controlling TTY
+1 -1
View File
@@ -33,7 +33,7 @@
* errors and debug messages. For all other user messages, see logit()
*
* The default log level is LOG_NOTICE. To toggle LOG_DEBUG messages,
* use `initctl debug` or add `--debug` to the kernel cmdline.
* use `initctl debug` or add `debug` to the kernel cmdline.
*/
#define _d(fmt, args...) logit(LOG_DEBUG, "%s():" fmt "\n", __func__, ##args)
#define _w(fmt, args...) logit(LOG_WARNING, "%s():" fmt "\n", __func__, ##args)