diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-06-17 16:06:58 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-06-25 23:16:41 +0200 |
commit | c61d4791d34591bb0fed558494a52d517d900b44 (patch) | |
tree | 297628ef2cece133a65981480d0ae5b99bc2abcb /man | |
parent | d6e92394a4c133eb652714bb9aa13008c808301b (diff) | |
download | mkinitcpio-c61d4791d34591bb0fed558494a52d517d900b44.tar.gz mkinitcpio-c61d4791d34591bb0fed558494a52d517d900b44.tar.xz |
init: allow for logging of early userspace
This introduces support for the rd.log and rd.debug kernel command line
options, which log early userspace activity to /run/initramfs/init.log.
Code is largely inspired by Dracut's implementation of early userspace
logging, but without needless complexity and redundancies.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'man')
-rw-r--r-- | man/mkinitcpio.8.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/man/mkinitcpio.8.txt b/man/mkinitcpio.8.txt index 56ac571..4175609 100644 --- a/man/mkinitcpio.8.txt +++ b/man/mkinitcpio.8.txt @@ -248,6 +248,31 @@ the kernel command line: device to show up, if it is not available immediately. This defaults to 5 seconds. If an invalid integer is passed, this variable will have no effect. +*rd.debug*:: + Enables shell debug (xtrace). If 'rd.log' is not also a parameter on the kernel + command line, this parameter implies 'rd.log=console'. + +*rd.log*['=<console|file|kmsg|all>']:: + Enables logging of early userspace messages. If specified, the optional + parameter describes where this information is logged. Multiple options can be + OR'd together using the pipe (|) character. Messages are always logged to + the console unless the 'quiet' parameter is passed. If the optional parameter + is not specified, 'kmsg|console' is assumed. If 'rd.log' is not present on the + kernel command line, no logging will take place. + + *console*;; + Writes output to '/dev/console'. + + *file*;; + Writes output to '/run/initramfs/init.log'. + + *kmsg*;; + Writes output to the '/dev/kmsg' device (introduced in Linux 3.5). This + option is a no-op if your kernel lacks support for '/dev/kmsg'. + + *all*;; + Writes output to all known log targets. + These are only the variables that the core of mkinitcpio honor. Additional hooks may look for other environment variables and should be documented by the help output for the hook. |