diff options
author | Juan RP <xtraeme@gmail.com> | 2014-08-07 19:09:37 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-08-07 19:09:37 +0200 |
commit | f63690191f975ceb4bed303b04e9362decfaaadf (patch) | |
tree | f355280d1dc10df7fbab019cbf3500caa98dfe12 /3 | |
parent | a9465f14cef80163f84330e8be8cfe40339ee49c (diff) | |
download | runit-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-x | 3 | 8 |
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 |