From 7ef4cc1b1abb055c92bb3a24805eac63d7beb6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Mon, 22 Mar 2021 08:56:02 +0100 Subject: [PATCH] Enable again binding to device It seems binding to device would work on normal machines. It seems only systemd-nspawn has problem with that. Fix it by commenting out BintsTo= line on containers now (reported on rhbz#1941458). --- dhcpcd.spec | 5 ++++- dhcpcd@.service | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dhcpcd.spec b/dhcpcd.spec index c50a9fb..d5a1c1d 100644 --- a/dhcpcd.spec +++ b/dhcpcd.spec @@ -3,7 +3,7 @@ Name: dhcpcd Version: 9.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A minimalistic network configuration daemon with DHCPv4, rdisc and DHCPv6 support License: BSD URL: http://roy.marples.name/projects/%{name}/ @@ -85,6 +85,9 @@ install -d %{buildroot}%{_sharedstatedir}/%{_name} %{_sharedstatedir}/%{name} %changelog +* Mon Mar 22 2021 Petr Menšík - 9.4.0-2 +- Reenable net device binding + * Fri Mar 19 2021 Petr Menšík - 9.4.0-1 - Update to 9.4.0 diff --git a/dhcpcd@.service b/dhcpcd@.service index e5cdd0a..3543e6c 100644 --- a/dhcpcd@.service +++ b/dhcpcd@.service @@ -2,6 +2,8 @@ Description=dhcpcd on %I Wants=network.target Before=network.target +BindsTo=sys-subsystem-net-devices-%i.device +After=sys-subsystem-net-devices-%i.device [Service] Type=forking