summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-09-03 23:10:40 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-09-03 23:12:40 +0200
commit59ad713288134ba5441edfa941792a6652a1e5c2 (patch)
tree05350631bf2ca18754f1050b7c21df363cdc5faf /nixos
parent88964f37a0f024b71326c3b0c99a2beccabe41d1 (diff)
downloadnixlib-59ad713288134ba5441edfa941792a6652a1e5c2.tar
nixlib-59ad713288134ba5441edfa941792a6652a1e5c2.tar.gz
nixlib-59ad713288134ba5441edfa941792a6652a1e5c2.tar.bz2
nixlib-59ad713288134ba5441edfa941792a6652a1e5c2.tar.lz
nixlib-59ad713288134ba5441edfa941792a6652a1e5c2.tar.xz
nixlib-59ad713288134ba5441edfa941792a6652a1e5c2.tar.zst
nixlib-59ad713288134ba5441edfa941792a6652a1e5c2.zip
nixos-install: set umask 0022
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/installer/tools/nixos-install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh
index 86952486ade0..c633cf4a839e 100644
--- a/nixos/modules/installer/tools/nixos-install.sh
+++ b/nixos/modules/installer/tools/nixos-install.sh
@@ -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