From 912b8697d4d0236467a0c82ee1e80316e2d36d1f Mon Sep 17 00:00:00 2001 From: tjjh89017 Date: Wed, 20 Jan 2021 17:07:41 +0800 Subject: [PATCH] networking.service: fix start networking.service before network is marked online In debian 10, ifupdown2 didn't ensure that it will start before network.target and network-online.target. after local-fs.target because ifupdown2 need to read config file from local filesystem Other network services will not start after networking.service and fail because no interface is up. (e.g isc-dhcp-server, tftp-hpa) --- debian/ifupdown2.networking.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/ifupdown2.networking.service b/debian/ifupdown2.networking.service index 32f21f6b..00df113c 100644 --- a/debian/ifupdown2.networking.service +++ b/debian/ifupdown2.networking.service @@ -2,7 +2,8 @@ Description=Network initialization Documentation=man:interfaces(5) man:ifup(8) man:ifdown(8) DefaultDependencies=no -Before=shutdown.target +After=local-fs.target network-pre.target +Before=shutdown.target network.target network-online.target Conflicts=shutdown.target [Service]