Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix start networking.service before network is marked online
Browse files Browse the repository at this point in the history
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)

Signed-off-by: Date Huang <tjjh89017@hotmail.com>
tjjh89017 authored and taraschornyiplv committed Jul 18, 2022
1 parent 4495765 commit a99741d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[Unit]
After=network-pre.target
After=local-fs.target network-pre.target
Before=shutdown.target network.target network-online.target

0 comments on commit a99741d

Please sign in to comment.