From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 From: antohami@basealt.ru To: make-initrd@lists.altlinux.org Date: Tue, 23 Apr 2024 12:51:38 +0700 Message-ID: X-Mailer: git-send-email 2.42.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [make-initrd] [PATCH 2/2] udev: do not show the error that it is impossible to set the log level X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: make-initrd@lists.altlinux.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2024 05:52:10 -0000 Archived-At: List-Archive: From: Anton Midyukov 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 --- 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