about summary refs log tree commit diff
path: root/3
diff options
context:
space:
mode:
Diffstat (limited to '3')
-rwxr-xr-x38
1 files changed, 3 insertions, 5 deletions
diff --git a/3 b/3
index 05fae3c..11b8f93 100755
--- a/3
+++ b/3
@@ -39,12 +39,10 @@ sleep 5
 msg "Sending KILL signal to processes...\n"
 pkill --inverse -s0,1 -KILL
 
-msg "Unmounting filesystems, disabling swap...\n"
-umount /tmp
-swapoff -a
-umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs
-
 if [ -z "$VIRTUALIZATION" ]; then
+    msg "Unmounting filesystems, disabling swap...\n"
+    swapoff -a
+    umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs
     msg "Remounting rootfs read-only...\n"
     mount -o remount,ro /
 fi