about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2016-09-04 17:56:00 +0200
committerDomen Kožar <domen@dev.si>2016-09-04 17:56:00 +0200
commit393e646e4fab06b58542ace3ca2a90eab22c809d (patch)
tree260a858cf7aa954f00ce873d8cad49484e5e2b01 /nixos
parentc536a3fa2fd42f46c0cb15e17a74f060a4a8f63c (diff)
setuid-wrappers: correctly umount the tmpfs
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/security/setuid-wrappers.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/setuid-wrappers.nix b/nixos/modules/security/setuid-wrappers.nix
index dcccd8342866e..fe220c94313f6 100644
--- a/nixos/modules/security/setuid-wrappers.nix
+++ b/nixos/modules/security/setuid-wrappers.nix
@@ -132,7 +132,7 @@ in
             # Compatibility with old state, just remove the folder and symlink
             rm -f ${wrapperDir}/*
             # if it happens to be a tmpfs
-            umount ${wrapperDir} || true
+            ${pkgs.utillinux}/bin/umount ${wrapperDir} || true
             rm -d ${wrapperDir}
             ln -d --symbolic $wrapperDir ${wrapperDir}
           else