Article View: org.kernel.vger.linux-hotplug
Article #1Re: udev rule in /etc/udev/rules.d/ FAILS to exec on boot; but OK exec @ shell after boot ?
From: Andrei Borzenkov
Date: Thu, 21 Dec 2023 13:22
Date: Thu, 21 Dec 2023 13:22
77 lines
6110 bytes
6110 bytes
On Thu, Dec 21, 2023 at 3:26 PM pgnd <pgnd@dev-mail.net> wrote: > > > > Anyway, try asking on the systemd mailing list, which is where udev help > > can be found, this list really isn't alive anymore at all, sorry. > > np, thx. i've posted in systemd:matrix.org; we'll see what pops up there. > > > Try running 'udevadm monitor' to watch the events to ensure they are > > what you think they are. > > just to close/comment here before moving on, @ shell after boot > > udevadm monitor | grep enp5s0 > KERNEL[40344.410195] change /devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:05.0/0000:05:00.0/net/enp5s0 (net) > UDEV [40344.529849] change /devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:05.0/0000:05:00.0/net/enp5s0 (net) > > and, checking boot logs, > > journalctl -b | grep systemd-udevd | grep /etc > Dec 20 19:24:16 dev systemd-udevd[522]: Trying to open "/etc/systemd/hwdb/hwdb.bin"... > Dec 20 19:24:16 dev systemd-udevd[522]: Trying to open "/etc/udev/hwdb.bin"... > Dec 20 19:24:16 dev systemd-udevd[522]: Reading rules file: /etc/udev/rules.d/11-dm.rules > Dec 20 19:24:16 dev systemd-udevd[522]: Reading rules file: /etc/udev/rules.d/59-persistent-storage-dm.rules > Dec 20 19:24:16 dev systemd-udevd[522]: Reading rules file: /etc/udev/rules.d/59-persistent-storage-md.rules > Dec 20 19:24:16 dev systemd-udevd[522]: Reading rules file: /etc/udev/rules.d/59-persistent-storage.rules > Dec 20 19:24:16 dev systemd-udevd[522]: Reading rules file: /etc/udev/rules.d/61-persistent-storage.rules > Dec 20 19:24:16 dev systemd-udevd[522]: Reading rules file: /etc/udev/rules.d/64-lvm.rules > Dec 20 19:24:16 dev systemd-udevd[522]: Reading rules file: /etc/udev/rules.d/65-md-incremental-imsm.rules > > seemingly missing/ignoring, > > ls -al /etc/udev/rules.d/ > -rw-r--r-- 1 root root 2.2K Dec 20 18:47 99-enp5s0-sysctl.rules > Your udevd runs in initrd and this rule is not included there. > > where > > find /usr/lib/dracut/modules.d -type f \ > -iname 11-dm.rules \ > -o -iname 59-persistent-storage-dm.rules \ > -o -iname 59-persistent-storage-md.rules \ > -o -iname 59-persistent-storage.rules \ > -o -iname 61-persistent-storage.rules \ > -o -iname 64-lvm.rules \ > -o -iname 65-md-incremental-imsm.rules > > /usr/lib/dracut/modules.d/90dm/11-dm.rules > /usr/lib/dracut/modules.d/90dm/59-persistent-storage-dm.rules > /usr/lib/dracut/modules.d/90mdraid/59-persistent-storage-md.rules > /usr/lib/dracut/modules.d/90mdraid/65-md-incremental-imsm.rules > /usr/lib/dracut/modules.d/95udev-rules/59-persistent-storage.rules > /usr/lib/dracut/modules.d/95udev-rules/61-persistent-storage.rules > /usr/lib/dracut/modules.d/90lvm/64-lvm.rules > >
Technical Details
Message-ID:
<CAA91j0VX5-RfLy-hPf6L_+KkAhnTS+okYsNSRVbVJnQGeOvmyg@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!nntp.lore.kernel.org!not-for-mailReferences:
<fb9f85b9-cb79-427c-862f-bd33afe2fcbf@dev-mail.net> <2023122117-outlet-generic-f184@gregkh> <7a270d09-9c53-47d4-b3e7-603062faf647@dev-mail.net>Show Full Headers
Complete Article Headers
Message-ID: <CAA91j0VX5-RfLy-hPf6L_+KkAhnTS+okYsNSRVbVJnQGeOvmyg@mail.gmail.com>
Subject: Re: udev rule in /etc/udev/rules.d/ FAILS to exec on boot; but OK exec @ shell after boot ?
Date: Thu, 21 Dec 2023 16:22:42 +0300
From: Andrei Borzenkov <arvidjaar@gmail.com>
References: <fb9f85b9-cb79-427c-862f-bd33afe2fcbf@dev-mail.net> <2023122117-outlet-generic-f184@gregkh> <7a270d09-9c53-47d4-b3e7-603062faf647@dev-mail.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!nntp.lore.kernel.org!not-for-mail
Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BB486A029
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MVy1p/rB"
Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2cca5047e61so440751fa.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1703164974; x=1703769774; darn=vger.kernel.org;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=jfp+wJcUiIugYYhfoqfALzNRpWBc3zUJziDu48oiRsw=;
b=MVy1p/rBOyX/AhKUoqgn1QoZKbrytaEhnCdcVMZYN/V+Fyt1rvOg+EhRlNRpvZSink
31zpMZt+7xs0gan5A7NZFJupZuYbhIIkIufI8zKI6OBAfGvES65K37djJvBUGcTz6015
0xAwlTDOSfUlSqTPaXRE1ONJ8Pkizef1zcAnuWhTuXCO0RyAXgHlsQ4ZbyYJml7zyKKV
Dvyo04m3+SD/R0V+hgJAcJyXvkjeNqoTIogFobVc+IwcSIcORQjc0uHYqV9Mi3Ncau7p
hIWOzQUs+G0pTo5pO6u2NI9b6wrPWJqgxncRx+d8kgeJC4C96G0vBJ8ohqZqFK1nlP9F
ki+Q==
X-Gm-Message-State: AOJu0YzZj4LS733Ma9LuZAMKDuSgo4E/Hbld40VnGP78yA4acsUaAFFW
gX30eN+DF1RfY+eBzq73+qHHpSGnhq9ycGJQxVE=
X-Received: by 2002:a05:651c:1a0e:b0:2cc:6e90:acd4 with SMTP id
by14-20020a05651c1a0e00b002cc6e90acd4mr9224995ljb.2.1703164974100; Thu, 21
Precedence: bulk
X-Mailing-List: linux-hotplug@vger.kernel.org
List-Id: <linux-hotplug.vger.kernel.org>
List-Subscribe: <mailto:linux-hotplug+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-hotplug+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
In-Reply-To: <7a270d09-9c53-47d4-b3e7-603062faf647@dev-mail.net>
To: pgnd@dev-mail.net
Cc: linux-hotplug@vger.kernel.org, gregkh@linuxfoundation.org,
jeisom@gmail.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Newsgroups: org.kernel.vger.linux-hotplug