summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-07-26 12:15:29 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-07-26 12:15:29 -0500
commite942e88b8cf37cd7dc292b7dbcfa567114bdb28e (patch)
tree2b169d76151e8714b3369de242952548002987e6
parent9ebd5a6aff73d70717f1d9a2f57767eae3eeb0c8 (diff)
downloadopenrc-e942e88b8cf37cd7dc292b7dbcfa567114bdb28e.tar.gz
openrc-e942e88b8cf37cd7dc292b7dbcfa567114bdb28e.tar.bz2
openrc-e942e88b8cf37cd7dc292b7dbcfa567114bdb28e.tar.xz
swapfiles: do not try to unmount all tmpfs mounts
This is handled in the swap script, so it should not be done here as well. X-Gentoo-Bug: 477534 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477534
-rw-r--r--init.d/swapfiles.in8
1 files changed, 0 insertions, 8 deletions
diff --git a/init.d/swapfiles.in b/init.d/swapfiles.in
index ec73baa..144096a 100644
--- a/init.d/swapfiles.in
+++ b/init.d/swapfiles.in
@@ -21,14 +21,6 @@ start()
stop()
{
ebegin "Deactivating additional swap space"
-
- # 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
- # fixme: Do we need this here since we are only unmounting swap files
- # and loopback swap?
- cd "$RC_SVCDIR"
- umount -a -t tmpfs 2>/dev/null
-
case "$RC_UNAME" in
Linux)
if [ -e /proc/swaps ]; then