summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-11-10 10:03:52 +0100
committerLuca Bruno <lucabru@src.gnome.org>2014-11-10 10:03:52 +0100
commit6af0d6974fbbf60c9e43d5bd563e4df0570a61b2 (patch)
tree62b8785527061f9b872682c6746d9017aea8e448 /nixos/modules/system
parent4030ab3ba4988cc96d22f6bf6963cf3727aa2e41 (diff)
parent9e3137ddf069218f875b385eef27d00d7c0597e1 (diff)
downloadnixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.gz
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.bz2
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.lz
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.xz
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.zst
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.zip
Merge branch 'master' into staging
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/activation/switch-to-configuration.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/system/activation/switch-to-configuration.pl b/nixos/modules/system/activation/switch-to-configuration.pl
index 12012698efe3..c0e0ae23d387 100644
--- a/nixos/modules/system/activation/switch-to-configuration.pl
+++ b/nixos/modules/system/activation/switch-to-configuration.pl
@@ -321,6 +321,10 @@ system("@systemd@/bin/systemctl", "reset-failed");
 # Make systemd reload its units.
 system("@systemd@/bin/systemctl", "daemon-reload") == 0 or $res = 3;
 
+# Signal dbus to reload its configuration before starting other units.
+# Other units may rely on newly installed policy files under /etc/dbus-1
+system("@systemd@/bin/systemctl", "reload", "dbus.service");
+
 # Restart changed services (those that have to be restarted rather
 # than stopped and started).
 my @restart = unique(split('\n', read_file($restartListFile, err_mode => 'quiet') // ""));
@@ -350,8 +354,6 @@ if (scalar @reload > 0) {
     unlink($reloadListFile);
 }
 
-# Signal dbus to reload its configuration.
-system("@systemd@/bin/systemctl", "reload", "dbus.service");
 
 # Print failed and new units.
 my (@failed, @new, @restarting);