udev script shortcuts ifup-scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bridge-utils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned | ||
Bionic |
Confirmed
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I just ran into a problem. I've configured a bridge as a virtual lan (for lxc, lxd, and these things), but also configured an USB Ethernet dongle to be part of the bridge.
If the dongle is present at boot time or if the dongle is put in while the bridge is down, then
/lib/udev/
tries to take the bridge up. Nice.
But it does not call ifup, instead it directly calls
IFACE=$port /etc/network/
This ifup is not aware that the interface is up and still thinks it would be down, and all the other settings (up/down-scripts ...) are not executed. Breaks functionality (and can be a security problem, since firewall settings my be skipped.)
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: bridge-utils 1.5-9ubuntu2
ProcVersionSign
Uname: Linux 4.8.0-32-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Dec 23 11:31:43 2016
Dependencies:
gcc-6-base 6.2.0-5ubuntu12
libc6 2.24-3ubuntu2
libgcc1 1:6.2.0-5ubuntu12
InstallationDate: Installed on 2016-04-22 (244 days ago)
InstallationMedia: Lubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420)
SourcePackage: bridge-utils
UpgradeStatus: Upgraded to yakkety on 2016-10-17 (67 days ago)
More trouble with that udev script:
Plugging in a USB ethernet dongle into a bridge which lists it as a port does not work. It takes an additional
ifconfig up
to switch the ethernet interface on.