network-manager: add legacy service name as fallback

This prevents NetworkManager from not starting back up while switching
configurations.

This can be removed once 19.10 is released.
This commit is contained in:
Florian Klink 2019-03-19 01:54:27 +01:00
parent b488c60cdb
commit 69cd72b3e1

View file

@ -92,6 +92,11 @@ in stdenv.mkDerivation rec {
# aliases ourselves.
ln -s $out/etc/systemd/system/NetworkManager-dispatcher.service $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
ln -s $out/etc/systemd/system/NetworkManager.service $out/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
# Add the legacy service name from before #51382 to prevent NetworkManager
# from not starting back up:
# TODO: remove this once 19.10 is released
ln -s $out/etc/systemd/system/NetworkManager.service $out/etc/systemd/system/network-manager.service
'';
passthru = {