diff options
author | Robin Gloster <mail@glob.in> | 2017-02-20 23:14:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 23:14:31 +0100 |
commit | 2f8aaf0c0a8cd0998ad51c7ca99f4510941b1e37 (patch) | |
tree | c77b253a0d0206df028acb24901dca0c008210fe /nixos/modules/system | |
parent | 1caecd759d7da996bbd6f939c9d190670e7e15f3 (diff) | |
parent | 4e4161c21268d6952f0f0f5130414e30dcf5cd97 (diff) |
Merge pull request #22941 from mayflower/systemd-tmpfiles
systemd: setup tmpfiles on switching configuration
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/activation/switch-to-configuration.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/activation/switch-to-configuration.pl b/nixos/modules/system/activation/switch-to-configuration.pl index 8747c1e3d4acc..ca7932a3c5cdc 100644 --- a/nixos/modules/system/activation/switch-to-configuration.pl +++ b/nixos/modules/system/activation/switch-to-configuration.pl @@ -383,6 +383,10 @@ system("@systemd@/bin/systemctl", "reset-failed"); # Make systemd reload its units. system("@systemd@/bin/systemctl", "daemon-reload") == 0 or $res = 3; +# Set the new tmpfiles +print STDERR "setting up tmpfiles\n"; +system("@systemd@/bin/systemd-tmpfiles", "--create", "--remove", "--exclude-prefix=/dev") == 0 or $res = 3; + # Reload units that need it. This includes remounting changed mount # units. if (scalar(keys %unitsToReload) > 0) { |