[make-initrd] [PATCH 2/2] udev: do not show the error that it is impossible to set the log level
antohami at basealt.ru
antohami at basealt.ru
Tue Apr 23 08:51:38 MSK 2024
From: Anton Midyukov <antohami at altlinux.org>
When a log level is specified in the cmdline kernel (the quiet or log_level
parameter), udev cannot override it and throws an error.
Signed-off-by: Anton Midyukov <antohami at altlinux.org>
---
data/etc/rc.d/init.d/udev | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/etc/rc.d/init.d/udev b/data/etc/rc.d/init.d/udev
index 6102fe4e..67427de1 100755
--- a/data/etc/rc.d/init.d/udev
+++ b/data/etc/rc.d/init.d/udev
@@ -44,8 +44,8 @@ start() {
[ "$RETVAL" = 0 ] ||
return $RETVAL
- udevadm control --log-priority=info
- [ -z "${DEBUG-}" ] || udevadm control --log-priority=debug
+ udevadm control --log-priority=info 2>/dev/null
+ [ -z "${DEBUG-}" ] || udevadm control --log-priority=debug 2>/dev/null
udevadm control --property=STARTUP=1
udevadm control --reload >/dev/null 2>&1 ||:
--
2.42.1
More information about the Make-initrd
mailing list