aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/swap-umount-tmpfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/openrc/swap-umount-tmpfs.patch')
-rw-r--r--main/openrc/swap-umount-tmpfs.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/openrc/swap-umount-tmpfs.patch b/main/openrc/swap-umount-tmpfs.patch
index d68165c77a..1982d4ea73 100644
--- a/main/openrc/swap-umount-tmpfs.patch
+++ b/main/openrc/swap-umount-tmpfs.patch
@@ -1,11 +1,11 @@
diff --git a/init.d/swap.in b/init.d/swap.in
-index fef8ab3..c540bc2 100644
+index fa08b4d..e358266 100644
--- a/init.d/swap.in
+++ b/init.d/swap.in
-@@ -24,8 +24,10 @@ stop()
+@@ -25,8 +25,10 @@ stop()
# Try to unmount all tmpfs filesystems not in use, else a deadlock may
- # occure. As $RC_SVCDIR may also be tmpfs we cd to it to lock it
+ # 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
+ if [ "$RC_RUNLEVEL" = "shutdown" ]; then