From 2068299126081a0f38615e04bc324d3656051916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 19 Oct 2017 15:10:31 +0200 Subject: [PATCH] network: fix rules for network setup on new udev New udev have `DRIVERS` matcher, instead of `ENV{ID_NET_DRIVER}`. Add appropriate rule to the file. Without it, network was working incidentally, because there is a fallback in qubes-misc-post.service, but dynamic network change was broken. This applies at least to Debian stretch. Fixes QubesOS/qubes-issues#3192 --- network/udev-qubes-network.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network/udev-qubes-network.rules b/network/udev-qubes-network.rules index 1d77156..2db6344 100644 --- a/network/udev-qubes-network.rules +++ b/network/udev-qubes-network.rules @@ -1,2 +1,5 @@ +# old udev has ENV{ID_NET_DRIVER} SUBSYSTEMS=="xen", KERNEL=="eth*", ACTION=="add", ENV{ID_NET_DRIVER}=="vif", RUN+="/usr/lib/qubes/setup-ip" +# new udev has DRIVERS +SUBSYSTEMS=="xen", KERNEL=="eth*", ACTION=="add", DRIVERS=="vif", RUN+="/usr/lib/qubes/setup-ip"