[Git-commits] [grml/grml-debootstrap] 8172dd: Skip udevadm execution on unsupported network inte...
Michael Prokop
noreply at github.com
Wed May 28 08:24:30 CEST 2025
Branch: refs/heads/master
Home: https://github.com/grml/grml-debootstrap
Commit: 8172dda0de141297933721a25046cdce2bfced2f
https://github.com/grml/grml-debootstrap/commit/8172dda0de141297933721a25046cdce2bfced2f
Author: Michael Prokop <mika at grml.org>
Date: 2025-05-27 (Tue, 27 May 2025)
Changed paths:
M grml-debootstrap
Log Message:
-----------
Skip udevadm execution on unsupported network interfaces like bonding_masters
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>
Commit: eae91811116fbc452efe45c6b80ecc647547ea1f
https://github.com/grml/grml-debootstrap/commit/eae91811116fbc452efe45c6b80ecc647547ea1f
Author: Michael Prokop <115592+mika at users.noreply.github.com>
Date: 2025-05-28 (Wed, 28 May 2025)
Changed paths:
M grml-debootstrap
Log Message:
-----------
Merge pull request #343 from grml/mika/udevadm
Skip udevadm execution on unsupported network interfaces like bonding_masters
Compare: https://github.com/grml/grml-debootstrap/compare/513820fefe32...eae91811116f
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