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
This commit is contained in:
parent
d06db93d59
commit
d5db5489be
@ -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;;
|
||||
|
Loading…
Reference in New Issue
Block a user