1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

installer: move /run creation

This commit is contained in:
Daiderd Jordan 2018-01-14 12:44:50 +01:00
parent 850dc95145
commit d107dfbc3a
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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
'';
}