[Git-commits] [grml/grml-debootstrap] 526c05: Skip udevadm runs on Skip devices like
Michael Prokop
noreply at github.com
Tue May 27 16:35:48 CEST 2025
Branch: refs/heads/mika/udevadm
Home: https://github.com/grml/grml-debootstrap
Commit: 526c059bb78d5e2dff2ed08e164bf1d56c6681c1
https://github.com/grml/grml-debootstrap/commit/526c059bb78d5e2dff2ed08e164bf1d56c6681c1
Author: Michael Prokop <mika at grml.org>
Date: 2025-05-27 (Tue, 27 May 2025)
Changed paths:
M grml-debootstrap
Log Message:
-----------
Skip udevadm runs on Skip devices like
grml-debootstrap iterates over the present network devices by looking
through /sys/class/net/, but file "bonding_masters" can't be queried:
| root at grml ~ # udevadm info --query=all --path=/sys/class/net/bonding_masters
| Unknown device "/sys/class/net/bonding_masters": No such device
As a result, execution of grml-debootstrap fails when bonds are used.
Instead, let's ensure that any network interface we want to operate on
is actually based on (a symlink pointing to) a directory which we can
query via udevadm.
FTR:
| root at grml ~ # ls -l /sys/class/net
| total 0
| lrwxrwxrwx 1 root root 0 May 27 14:20 bond0 -> ../../devices/virtual/net/bond0
| -rw-r--r-- 1 root root 4096 May 27 14:20 bonding_masters
| lrwxrwxrwx 1 root root 0 May 27 14:20 eth0 -> ../../devices/pci0000:00/0000:00:12.0/virtio1/net/eth0
| lrwxrwxrwx 1 root root 0 May 27 14:20 eth1 -> ../../devices/pci0000:00/0000:00:13.0/virtio2/net/eth1
| lrwxrwxrwx 1 root root 0 May 27 14:20 eth2 -> ../../devices/pci0000:00/0000:00:14.0/virtio3/net/eth2
| lrwxrwxrwx 1 root root 0 May 27 14:20 lo -> ../../devices/virtual/net/lo
Thanks: Volodymyr Fedorov <vfedorov at sipwise.com>
To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-debootstrap/settings/notifications
More information about the Git-commits
mailing list