nixos-container: check for correct path for chattr
Could fail on destroy if the container wasn't created correctly
This commit is contained in:
parent
3ac02dfc40
commit
91e74ed3b2
@ -270,7 +270,7 @@ if ($action eq "destroy") {
|
||||
|
||||
safeRemoveTree($profileDir) if -e $profileDir;
|
||||
safeRemoveTree($gcRootsDir) if -e $gcRootsDir;
|
||||
system("chattr", "-i", "$root/var/empty") if -e $root;
|
||||
system("chattr", "-i", "$root/var/empty") if -e "$root/var/empty";
|
||||
safeRemoveTree($root) if -e $root;
|
||||
unlink($confFile) or die;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user