From f63690191f975ceb4bed303b04e9362decfaaadf Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 7 Aug 2014 19:09:37 +0200 Subject: 3: conditionalize unmounting for virtualization; fixes multiple lxc create/destroy. --- 3 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '3') 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 -- cgit 1.4.1