From d56312be068fa2d53129873bf3be2ff9e477e7d1 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 5 Jun 2019 23:10:07 +0200 Subject: [PATCH] activation-scripts: create /run In case this was removed or not bootstrapped by the installer. --- modules/system/activation-scripts.nix | 5 +++++ 1 file changed, 5 insertions(+) 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