Skip to content

Commit 73a7583

Browse files
author
liranmauda
committed
clean_ova.sh: swapoff only if the platform is ESX
clean_ova.sh: - swapoff only if the platform is ESX
1 parent be367f8 commit 73a7583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/deploy/NVA_build/clean_ova.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ fi
185185

186186
#reduce VM size
187187
set +e
188-
/sbin/swapoff -a
189188

190189
if ${isAws}
191190
then
@@ -200,6 +199,7 @@ else
200199
then
201200
echo "using --dev, skipping zeroFile"
202201
else
202+
/sbin/swapoff -a
203203
dd if=/dev/zero of=zeroFile.tmp bs=1M
204204
rm -f zeroFile.tmp
205205
fi

0 commit comments

Comments
 (0)