about summary refs log tree commit diff
path: root/3
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-08-07 19:09:37 +0200
committerJuan RP <xtraeme@gmail.com>2014-08-07 19:09:37 +0200
commitf63690191f975ceb4bed303b04e9362decfaaadf (patch)
treef355280d1dc10df7fbab019cbf3500caa98dfe12 /3
parenta9465f14cef80163f84330e8be8cfe40339ee49c (diff)
downloadrunit-void-f63690191f975ceb4bed303b04e9362decfaaadf.tar.gz
runit-void-f63690191f975ceb4bed303b04e9362decfaaadf.tar.xz
runit-void-f63690191f975ceb4bed303b04e9362decfaaadf.zip
3: conditionalize unmounting for virtualization; fixes multiple lxc create/destroy.
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