mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-11-13 04:56:53 +03:00
installer: move /run creation
This commit is contained in:
parent
850dc95145
commit
d107dfbc3a
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user