From 00e9f075e3537b35acdb257408c538bb442d4202 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Mon, 18 Sep 2023 10:32:46 +0200 Subject: [PATCH 1/2] buster: drop broken blockdev udev rule The udev rule 60-block.rules tries to call '/sbin/initblockdev', but that file only exists in the initrd, but not in the main rootfs, so any attempts will just fail. So drop the udev rule trying to call it. Silences errors at boot like: > Sep 15 09:18:55 localhost systemd-udevd[574]: Process '/sbin/initblockdev mtdblock0 add' failed with exit code 1. > Sep 15 09:18:55 localhost systemd-udevd[557]: Process '/sbin/initblockdev mtdblock1 add' failed with exit code 1. > Sep 15 09:18:55 localhost systemd-udevd[567]: Process '/sbin/initblockdev mtdblock2 add' failed with exit code 1. > Sep 15 09:18:56 localhost systemd-udevd[555]: Process '/sbin/initblockdev sda add' failed with exit code 1. > Sep 15 09:18:56 localhost systemd-udevd[555]: Process '/sbin/initblockdev sda1 add' failed with exit code 1. > ... Signed-off-by: Jonas Gorski --- .../rootfs/buster/common/overlay/etc/udev/rules.d/60-block.rules | 1 - 1 file changed, 1 deletion(-) delete mode 100644 builds/any/rootfs/buster/common/overlay/etc/udev/rules.d/60-block.rules diff --git a/builds/any/rootfs/buster/common/overlay/etc/udev/rules.d/60-block.rules b/builds/any/rootfs/buster/common/overlay/etc/udev/rules.d/60-block.rules deleted file mode 100644 index f2345a375..000000000 --- a/builds/any/rootfs/buster/common/overlay/etc/udev/rules.d/60-block.rules +++ /dev/null @@ -1 +0,0 @@ -SUBSYSTEM=="block", RUN+="/sbin/initblockdev $kernel $env{ACTION}" From 9f772197ec53a3fd36eefbe4c3bf44598999cf95 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Mon, 18 Sep 2023 10:35:23 +0200 Subject: [PATCH 2/2] buster: drop broken netdev udev rule The udev rule 60-net.rules tries to call '/sbin/initnetdev', but that file is found at a different location, at '/usr/bin/initnetdev', so the call always fails. Since the only purpose of initnetdev is to rename network devices based on the platform configuration, the initial management port renaming is already done by the initrd, and for any subsequent port devices we have an extra rule, drop the udev rule instead of trying to fix it. Silences errors at boot like: > Sep 15 09:18:55 localhost systemd-udevd[573]: Process '/sbin/initnetdev ma1 add' failed with exit code 1. > Sep 15 09:18:56 localhost systemd-udevd[553]: Process '/sbin/initnetdev eth1 add' failed with exit code 1. > Sep 15 09:18:56 localhost systemd-udevd[586]: Process '/sbin/initnetdev eth11 add' failed with exit code 1. > Sep 15 09:18:56 localhost systemd-udevd[594]: Process '/sbin/initnetdev eth33 add' failed with exit code 1. > Sep 15 09:18:56 localhost systemd-udevd[596]: Process '/sbin/initnetdev eth19 add' failed with exit code 1. > ... Signed-off-by: Jonas Gorski --- .../rootfs/buster/common/overlay/etc/udev/rules.d/60-net.rules | 1 - 1 file changed, 1 deletion(-) delete mode 100644 builds/any/rootfs/buster/common/overlay/etc/udev/rules.d/60-net.rules diff --git a/builds/any/rootfs/buster/common/overlay/etc/udev/rules.d/60-net.rules b/builds/any/rootfs/buster/common/overlay/etc/udev/rules.d/60-net.rules deleted file mode 100644 index 627e65e46..000000000 --- a/builds/any/rootfs/buster/common/overlay/etc/udev/rules.d/60-net.rules +++ /dev/null @@ -1 +0,0 @@ -SUBSYSTEM=="net", RUN+="/sbin/initnetdev $kernel $env{ACTION}"