From 3a1cf2d52ad8a09af34132f16ab81dc8386ae0f1 Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Mon, 5 Dec 2016 10:17:54 -0800 Subject: [PATCH] Fix GCI mounter script to run garbage collection multiple times Remove break in the mounter script to make sure gc run multiple times --- cluster/gce/gci/mounter/mounter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/gci/mounter/mounter b/cluster/gce/gci/mounter/mounter index 6f45a56abf4..2fba3255f2b 100755 --- a/cluster/gce/gci/mounter/mounter +++ b/cluster/gce/gci/mounter/mounter @@ -31,7 +31,7 @@ function gc { # Rkt pods end up creating new copies of mounts on the host. Hence it is ideal to clean them up right away. attempt=0 until [ $attempt -ge 5 ]; do - ${RKT_BINARY} gc --grace-period=0s &> /dev/null && break + ${RKT_BINARY} gc --grace-period=0s &> /dev/null attempt=$[$attempt+1] sleep 1 done