Skip to content

Commit

Permalink
nixos-container: fix destroy with immutable /var/empty
Browse files Browse the repository at this point in the history
fixes #21573
  • Loading branch information
globin committed Feb 18, 2017
1 parent 0860565 commit 492101d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ sub safeRemoveTree {

safeRemoveTree($profileDir) if -e $profileDir;
safeRemoveTree($gcRootsDir) if -e $gcRootsDir;
system("chattr", "-i", "$root/var/empty") if -e $root;
safeRemoveTree($root) if -e $root;
unlink($confFile) or die;
}
Expand Down

0 comments on commit 492101d

Please sign in to comment.