Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B48B7606A330 for ; Fri, 4 Dec 2026 13:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=buildroot.org header.i=@buildroot.org header.a=rsa-sha256 header.s=default header.b=YPIusE9D Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8E46C8600C; Fri, 4 Dec 2026 13:03:39 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id gGQlql2ftR3c; Fri, 4 Dec 2026 13:03:38 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org BEAB885F20 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796389418; b=ApY3ozvfLfbFLtsuSaLX/yqFElDW1ALKPbniQjiZZxxEK1YOdNfipfuiSm5s7f1CZob4 Imbsrby5kVUtAYBVKwxeD1mXWgO/xJIuv//7Pcnq4mnXmuZgn/BnmPDqCaJ2bpj57myc1 mquO4OqxLp9NeV3WT9V5rHS681GIPQ6ni0ME6Hz07xjmxBdGxWtysj8ERkqWK9I8g4x2O wEY0Mcr/Kyr1HyjpnSos4hGf6XXJMqWI8TZMsf7NOhiecMyb2/vbwbSj6kte+fakzfWJe eJICMhBCQwNSwkE36jkdAeI+uhFKabCN80a1XEi+c8c9IHtbJGkFSwdwhlpdy5FJNtg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796389418; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received: Received:To:Cc:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Subject:X-BeenThere:X-Mailman-Version:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:From: Reply-To:Content-Type:Content-Transfer-Encoding:Errors-To:Sender; bh=qEuBAiwWArMOoOpjLyUkjwrP1ILuyL6pENIBynKq6Hg=; b=F5Uw6WEDQITiDf1lIPAGhmwSzHl6X8dwZWEKDBPeEpWGhyCIcaIIyiGb6ZD8nR2RXq2b 1O7qkV0i/2lRvUoypMX6tcGqRAUZxVaIWk+pCCo4FxRd9lRM/gQKlOVFFDG4HHPCUHhPt oNRA+j89jqIOFH7SOjsPKZgMpCwvBQzKfeGp4L2jta1kIPD08nPweVu0ktIenemfA8Bzc nNdvOs/C9wJmSAsfGARb/DiE+trH+cLBFOpOUrvGqKKOJ7gF0KT/Pjl7D12CPeQEoDg56 CcQMIS+ljV+nImcEVnA6h0L5tzBbkuBi0ZbyJDtZwDwsICb7jLscaD/RxclCPYC/RjA== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org; s=default; t=1796389418; bh=qEuBAiwWArMOoOpjLyUkjwrP1ILuyL6pENIBynKq6Hg=; h=To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=YPIusE9DSaQKl9w4tqKjeyKhBw+1w0LducO5JdnzzEYaAHhPMAl6IvSPCjYWfOc+K imW0glKKTWtaX4RWxCzwasruivbBE8EuwEgUkOvlkGRsfIXAMubjDop1xYYD4U664s LS/DAdxary3FqKKunY8zG7VALIGJuzMbnRXAQ8YnXY6tKxOBmjqRe56r8hM6kLc7qu MvQjJ6iQJ/cExJGyb2F9nsy50yfEgDeRBcPd4YHwmmEOJYEmzv2CXhFtOB888xkKj7 tzFv+tdIda5fMc1xg562oUjj+iKSYApHh5i+NXTtYukaaFhqJmGjuW8MpaFt/USLec vxBTRzjYT2cKQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id BEAB885F20; Fri, 4 Dec 2026 13:03:38 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists1.osuosl.org (Postfix) with ESMTP id 82091120 for ; Fri, 4 Dec 2026 13:03:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7478440E8F for ; Fri, 4 Dec 2026 13:03:37 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id lFanGQRb2MIi for ; Fri, 4 Dec 2026 13:03:36 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 60C3440E80 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::433; helo=mail-wr1-x433.google.com; envelope-from=raphael.melotte@essensium.com; receiver= Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by smtp4.osuosl.org (Postfix) with ESMTPS id 60C3440E80 for ; Fri, 4 Dec 2026 13:03:34 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-48e20ed3b9dso870752f8f.2 for ; Fri, 04 Dec 2026 05:03:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796389413; x=1796994213; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=0n66zON/yrWhlRCsoRHduaAkbkVE0HkoiBBWvNNKISM=; b=ZVMbJI8QpXVH4B/ia6TyQdMHE4n1NVRt41uK0yDsZ48F4kH0MzEoPY2/6jYWC8lKuq XuaYMkKDF22rpT+nZTM8EBCIkBauD2NOKXUJHqTsn9qOA84lgqfrFPUO+twt4kwkZBCu xgVQW7PoDWaxnTnVOuk7KyBVz2/F1dxpnMOjBF46Eb/6aM58meilZSF9nC8Ioag9mNql uav+m4PaN7ZXWktmBT4q5f0CzLUZfmfThsov2cgRrQf3/WNb81pumvwAZ2kdPzHMu5Fb j1IXzgmp4JvfcKM745xAKG9v/F8+3njg/uW3/mIymLMprYxFOCVFW+IIOC5z5U+HUwxQ +izQ== X-Gm-Message-State: APuU4Z/KABSnTzTND3F0zCvKZHpciN0iCKYoRu+Bs9J+lgFWyFmctdmb fgRM3UeZMEHStKHlOQB4fWqccPwEZylYNRxee+Mnh8IrPJf88ewNRbjssqqZws5mUWMimz17pbS IWYlhsVk= X-Gm-Gg: AZFdTZfv7tOjSdR0Ri0aPB08EqwYwVGtZEXze68NKAJE6ZgVzx17m/+1W7hXi6/AydM gsPpl2WpGTS0dMiSrvSw3rJhYwxqNjRtbt5buz7SAmPmX1DdLOIqW6abPZpAhLBjb4WePG9rbzv 3rlQYReJUsq6BvTlqVDK+VvEUz1EEujpkkhu9kkyYMDe7uwASkeZUaGL6nbKGVphFZJU1Lp+glY 9tVt9ur7BwujpFzQN6MdxB0B1uC+SW6bVvWfXaIUHKSO2lv5dz+NywR+VgCDNRg+6eeXf/913+R YB+z9ykb8Jpg6iadVtAZq047V3ABvP2W/2Xiqfo7JMHI5PqOa7CxDr/Mszgw6nG0bJ47eRvG0mr Sl/Cr21qrhe0xblT/NHbfQHGplQgUz0x7gmbzqfxZGKPo8ylxWEQRkQh9FougNQ8ehTZdioxCW9 AAG5kF4cZ2njWNn5uCGTGO+HLWxNfZY6+d2hHChVG4v6Wgs6zk2hzbbfffJlCYy1HJwOPoAgGRD TP68SVAOQHBv6jQ/2luRKsYiC5fIAElJAI1N0FxrfnwKbfiitIo1Q3wAy+laWsNmrT7ZSxIVZMG Mp981nD1cJbglSBS+tEsUpo68WHeQoM= X-Received: by 2002:a05:6000:4b1e:b0:492:dddc:64df with SMTP id ffacd0b85a97d-4d1e8cc3643mr3843364f8f.16.1796389413307; Fri, 04 Dec 2026 05:03:33 -0800 (PST) Received: from debian-hp-1 ([212.233.51.18]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d1738cfb80sm5258411f8f.36.2026.12.04.05.03.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 05:03:32 -0800 (PST) To: buildroot@buildroot.org, Dario Binacchi Cc: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= Date: Fri, 4 Dec 2026 14:03:30 +0100 Message-ID: <20261204130331.1526422-1-raphael.melotte@mind.be> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261126192612.1598984-1-dario.binacchi@amarulasolutions.com> References: X-Archived-By: MIME-Version: 1.0 Subject: Re: [Buildroot] [PATCH v2] package/eudev: S10udevd: wait for udevd before triggering events X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?Rapha=C3=ABl_M=C3=A9lotte_via_buildroot?= Reply-To: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "buildroot" X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 In reply of: > start-stop-daemon starts udevd in the background and returns before > udevd listens to kernel events. The coldplug events generated right > after by "udevadm trigger" may then get lost, so that no module is > loaded at boot. > > Starting network: Waiting for interface eth0 to appear............... timeout! > > Wait until udevd answers on its control socket before triggering the > events. The udevadm control command of eudev has no --ping option, so > use --start-exec-queue, which has no effect on a daemon whose queue is > already running. > > While at it, return right away when udevd fails to start, as there is > no point in triggering events then. > > Fixes: 41258a81948fddfa7fc8ac06b69d77fa051b744d ("package/eudev: refactor init script and rename it to S10udevd") > Signed-off-by: Dario Binacchi Applied to 2026.08.x. Thanks > --- > Changes in v2: > - Return right away when udevd fails to start and move the wait loop > out of the if statement. > - Use '[ "$i" -lt 50 ] || break' to leave the loop. > - Explain in the commit message why --start-exec-queue is used. > > v1: https://lore.kernel.org/buildroot/20261029164212.672884-1-dario.binacchi@amarulasolutions.com > > package/eudev/S10udevd | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/package/eudev/S10udevd b/package/eudev/S10udevd > index 8bb8f6eb3a01..8eb764f65215 100644 > --- a/package/eudev/S10udevd > +++ b/package/eudev/S10udevd > @@ -37,7 +37,16 @@ start() { > echo "OK" > else > echo "FAIL" > + return "$status" > fi > + # start-stop-daemon returns before udevd listens to kernel events. > + # Wait for it, or the events triggered below may get lost. > + i=0 > + while ! udevadm control --start-exec-queue 2>/dev/null; do > + i=$((i + 1)) > + [ "$i" -lt 50 ] || break > + sleep 0.1 > + done > udevadm trigger --type=subsystems --action=add > udevadm trigger --type=devices --action=add > udevadm settle --timeout=$SETTLE_TIMEOUT || echo "udevadm settle failed" _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot