Skip to content

Commit

Permalink
Fix NixOS#19382 set ownership of /var/empty to root:root
Browse files Browse the repository at this point in the history
(cherry picked from commit 4ed8593)

Signed-off-by: Domen Kožar <[email protected]>
  • Loading branch information
adrianpk committed Oct 9, 2016
1 parent 139061d commit ff026b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/system/activation/activation-script.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';

Expand Down

0 comments on commit ff026b2

Please sign in to comment.