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
This commit is contained in:
parent
9ebd5a6aff
commit
e942e88b8c
@ -21,14 +21,6 @@ start()
|
|||||||
stop()
|
stop()
|
||||||
{
|
{
|
||||||
ebegin "Deactivating additional swap space"
|
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
|
case "$RC_UNAME" in
|
||||||
Linux)
|
Linux)
|
||||||
if [ -e /proc/swaps ]; then
|
if [ -e /proc/swaps ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user