From 393e646e4fab06b58542ace3ca2a90eab22c809d Mon Sep 17 00:00:00 2001 From: Domen Kožar Date: Sun, 4 Sep 2016 17:56:00 +0200 Subject: setuid-wrappers: correctly umount the tmpfs --- nixos/modules/security/setuid-wrappers.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') 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 -- cgit 1.4.1