From d107dfbc3abb0532b68d4c148ad74ef35c2ab32f Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 14 Jan 2018 12:44:50 +0100 Subject: [PATCH] installer: move /run creation --- pkgs/darwin-installer/configuration.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/darwin-installer/configuration.nix b/pkgs/darwin-installer/configuration.nix index 0527335f..9e269a66 100644 --- a/pkgs/darwin-installer/configuration.nix +++ b/pkgs/darwin-installer/configuration.nix @@ -40,12 +40,17 @@ with lib; ;; esac fi - ''; - system.activationScripts.preActivation.text = '' - echo "setting up /run..." if ! test -L /run; then - sudo ln -sfn private/var/run /run + echo "setting up /run..." + if test -t 1; then + read -p "Would you like to create /run? [y/n] " i + fi + case "$i" in + y|Y) + sudo ln -sfn private/var/run /run + ;; + esac fi ''; }