nixos-install: set umask 0022

This commit is contained in:
Luca Bruno 2014-09-03 23:10:40 +02:00
parent 88964f37a0
commit 59ad713288

View File

@ -7,6 +7,9 @@
# * nix-env -p /nix/var/nix/profiles/system -i <nix-expr for the configuration>
# * install the boot loader
# Ensure a consistent umask.
umask 0022
# Re-exec ourselves in a private mount namespace so that our bind
# mounts get cleaned up automatically.
if [ "$(id -u)" = 0 ]; then