From c61d4791d34591bb0fed558494a52d517d900b44 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 17 Jun 2013 10:06:58 -0400 Subject: 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 --- man/mkinitcpio.8.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'man/mkinitcpio.8.txt') 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*['=']:: + 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. -- cgit v1.2.3-24-g4f1b