summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/system/activation-scripts.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/activation-scripts.nix b/modules/system/activation-scripts.nix
index 450d65b..9140163 100644
--- a/modules/system/activation-scripts.nix
+++ b/modules/system/activation-scripts.nix
@@ -68,6 +68,11 @@ in
${cfg.activationScripts.postActivation.text}
+ # Ensure /run exists.
+ if [ ! -e /run ]; then
+ ln -sfn private/var/run /run
+ fi
+
# Make this configuration the current configuration.
# The readlink is there to ensure that when $systemConfig = /system
# (which is a symlink to the store), /run/current-system is still