summary refs log tree commit diff
path: root/nixos/modules/system/activation/activation-script.nix
diff options
context:
space:
mode:
authorNathan Bijnens <nathan@nathan.gs>2016-10-09 12:01:47 +0200
committerGitHub <noreply@github.com>2016-10-09 12:01:47 +0200
commit4ed85933db8b056b72214fb38e2095e1414e1c49 (patch)
tree15f51aaf1d9b626524d2220530e372dc15f9ad49 /nixos/modules/system/activation/activation-script.nix
parent4168706d4fd35dc9c83d22725bede9b97b87750b (diff)
downloadnixlib-4ed85933db8b056b72214fb38e2095e1414e1c49.tar
nixlib-4ed85933db8b056b72214fb38e2095e1414e1c49.tar.gz
nixlib-4ed85933db8b056b72214fb38e2095e1414e1c49.tar.bz2
nixlib-4ed85933db8b056b72214fb38e2095e1414e1c49.tar.lz
nixlib-4ed85933db8b056b72214fb38e2095e1414e1c49.tar.xz
nixlib-4ed85933db8b056b72214fb38e2095e1414e1c49.tar.zst
nixlib-4ed85933db8b056b72214fb38e2095e1414e1c49.zip
Fix #19382 set ownership of /var/empty to root:root
Diffstat (limited to 'nixos/modules/system/activation/activation-script.nix')
-rw-r--r--nixos/modules/system/activation/activation-script.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/activation/activation-script.nix b/nixos/modules/system/activation/activation-script.nix
index 4a16a6762935..dcf105eb7844 100644
--- a/nixos/modules/system/activation/activation-script.nix
+++ b/nixos/modules/system/activation/activation-script.nix
@@ -145,6 +145,7 @@ in
         ${pkgs.e2fsprogs}/bin/chattr -f -i /var/empty || true
         find /var/empty -mindepth 1 -delete
         chmod 0555 /var/empty
+        chown root:root /var/empty
         ${pkgs.e2fsprogs}/bin/chattr -f +i /var/empty || true
       '';