setuid-wrappers: correctly umount the tmpfs

This commit is contained in:
Domen Kožar 2016-09-04 17:56:00 +02:00
parent c536a3fa2f
commit 393e646e4f

View File

@ -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