|
Harald Hoyer |
fe31f8 |
From 04b873598b649913fcb9f303bd79ee5e1868f074 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
fe31f8 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
fe31f8 |
Date: Fri, 8 Feb 2013 14:19:19 +0100
|
|
Harald Hoyer |
fe31f8 |
Subject: [PATCH] systemd: set udev debug/info via config file and report
|
|
Harald Hoyer |
fe31f8 |
obsolete options
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
---
|
|
Harald Hoyer |
fe31f8 |
modules.d/98systemd/dracut-cmdline.sh | 3 +++
|
|
Harald Hoyer |
fe31f8 |
modules.d/98systemd/dracut-pre-trigger.sh | 3 ---
|
|
Harald Hoyer |
fe31f8 |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
diff --git a/modules.d/98systemd/dracut-cmdline.sh b/modules.d/98systemd/dracut-cmdline.sh
|
|
Harald Hoyer |
fe31f8 |
index c32d5df..cec1b64 100755
|
|
Harald Hoyer |
fe31f8 |
--- a/modules.d/98systemd/dracut-cmdline.sh
|
|
Harald Hoyer |
fe31f8 |
+++ b/modules.d/98systemd/dracut-cmdline.sh
|
|
Harald Hoyer |
fe31f8 |
@@ -17,6 +17,9 @@ type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
|
Harald Hoyer |
fe31f8 |
[ -f /etc/initrd-release ] && . /etc/initrd-release
|
|
Harald Hoyer |
fe31f8 |
[ -n "$VERSION" ] && info "dracut-$VERSION"
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
+getargbool 0 rd.udev.log-priority=info -d rd.udev.info -d -n -y rdudevinfo && echo 'udev_log="info"' >> /etc/udev/udev.conf
|
|
Harald Hoyer |
fe31f8 |
+getargbool 0 rd.udev.log-priority=debug -d rd.udev.debug -d -n -y rdudevdebug && echo 'udev_log="debug"' >> /etc/udev/udev.conf
|
|
Harald Hoyer |
fe31f8 |
+
|
|
Harald Hoyer |
fe31f8 |
source_conf /etc/conf.d
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
make_trace_mem "hook cmdline" '1+:mem' '1+:iomem' '3+:slab'
|
|
Harald Hoyer |
fe31f8 |
diff --git a/modules.d/98systemd/dracut-pre-trigger.sh b/modules.d/98systemd/dracut-pre-trigger.sh
|
|
Harald Hoyer |
fe31f8 |
index 35b0c5f..4685c8f 100755
|
|
Harald Hoyer |
fe31f8 |
--- a/modules.d/98systemd/dracut-pre-trigger.sh
|
|
Harald Hoyer |
fe31f8 |
+++ b/modules.d/98systemd/dracut-pre-trigger.sh
|
|
Harald Hoyer |
fe31f8 |
@@ -11,9 +11,6 @@ type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
|
Harald Hoyer |
fe31f8 |
source_conf /etc/conf.d
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
make_trace_mem "hook pre-trigger" "1:shortmem" "2+:mem" "3+:slab"
|
|
Harald Hoyer |
fe31f8 |
-getargbool 0 rd.udev.info -n -y rdudevinfo && udevadm control --log-priority=info
|
|
Harald Hoyer |
fe31f8 |
-getargbool 0 rd.udev.debug -n -y rdudevdebug && udevadm control --log-priority=debug
|
|
Harald Hoyer |
fe31f8 |
-udevproperty "hookdir=$hookdir"
|
|
Harald Hoyer |
fe31f8 |
|
|
Harald Hoyer |
fe31f8 |
source_hook pre-trigger
|
|
Harald Hoyer |
fe31f8 |
|