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 --- init | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'init') diff --git a/init b/init index dfebd53..2578cf8 100644 --- a/init +++ b/init @@ -3,6 +3,7 @@ udevd_running=0 mount_handler=default_mount_handler init=/sbin/init +rd_logmask=0 if [ -x /usr/bin/systemd-timestamp ]; then RD_TIMESTAMP=$(systemd-timestamp) @@ -19,6 +20,9 @@ mkdir -m755 /run/initramfs # parse the kernel command line parse_cmdline