From 8cca1dada7be5625cbdbcf4e8ab14c51d131e099 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Fri, 28 Aug 2020 15:28:33 +0200 Subject: defaults/linuxrc: Add gk.udev.debug to run udevd in debug mode When gk.udev.debug=yes is set (boolean option), udevd will run in debug mode. Output will be written to /run/initramfs/udevd.log. Signed-off-by: Thomas Deutschmann --- defaults/linuxrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'defaults/linuxrc') diff --git a/defaults/linuxrc b/defaults/linuxrc index 1a4ddac..b42366f 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -332,6 +332,14 @@ do fi unset tmp_wait ;; + gk.udev.debug=*) + tmp_enabled=${x#*=} + if is_true "${tmp_enabled}" + then + GK_UDEV_DEBUG=1 + fi + unset tmp_enabled + ;; gk.udev.timeout=*) tmp_timeout=${x#*=} if is_int "${tmp_timeout}" @@ -566,7 +574,7 @@ fi good_msg 'Activating udev ...' udevd_cmd="run udevd --resolve-names=never" -if is_debug +if [ "${GK_UDEV_DEBUG}" = '1' ] then udevd_cmd="${udevd_cmd} --debug > ${GK_UDEV_LOG} 2>&1 &" else -- cgit v1.2.3-65-gdbad