commit:     d5db5489be135ae9295e378e789b4b7b13367fdd
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Mon Sep  5 18:24:27 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Sep  5 18:39:51 2016 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=d5db5489

init.d/swap: do not unmount all tmpfs file systems

X-Gentoo-Bug: 568162
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=568162

 init.d/swap.in | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/init.d/swap.in b/init.d/swap.in
index 4fb2b35..c030ad8 100644
--- a/init.d/swap.in
+++ b/init.d/swap.in
@@ -29,12 +29,6 @@ start()
 stop()
 {
        ebegin "Deactivating swap devices"
-
-       # Try to unmount all tmpfs filesystems not in use, else a deadlock may
-       # occur. As $RC_SVCDIR may also be tmpfs we cd to it to lock it
-       cd "$RC_SVCDIR"
-       umount -a -t tmpfs 2>/dev/null
-
        case "$RC_UNAME" in
                NetBSD|OpenBSD) swapctl -U -t noblk >/dev/null;;
                *)              swapoff -a >/dev/null;;

Reply via email to