diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2019-06-05 23:10:07 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2019-06-05 23:10:07 +0200 |
| commit | d56312be068fa2d53129873bf3be2ff9e477e7d1 (patch) | |
| tree | 3c59667e91642d2c7e40e151e12d17e0b6553300 | |
| parent | 24089a93d7a34cf33c566040ae12e6be72664ca9 (diff) | |
activation-scripts: create /run
In case this was removed or not bootstrapped by the installer.
| -rw-r--r-- | modules/system/activation-scripts.nix | 5 |
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 |
