]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: Shut down networkd and resolved on switch-root
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 25 May 2023 16:13:02 +0000 (18:13 +0200)
committerMike Yuan <me@yhndnzj.com>
Thu, 25 May 2023 22:54:56 +0000 (06:54 +0800)
commit75efd16fb001ba19d12362198ba5c44cb6f40d04
tree54b07baa26d43f767ac3a367989431130d36905a
parent3d1e78e36274dc410713f4aa66ecd543d8000ebb
units: Shut down networkd and resolved on switch-root

Let's explicitly order these against initrd-switch-root.target, so
that they are properly shut down before we switch root. Otherwise,
there's a race condition where networkd might only shut down after
switching root and after we've already we've loaded the unit graph,
meaning it won't be restarted in the rootfs.

Fixes #27718
units/systemd-networkd.service.in
units/systemd-resolved.service.in