Fix GCI mounter script to run garbage collection multiple times

Remove break in the mounter script to make sure gc run multiple times
This commit is contained in:
Jing Xu 2016-12-05 10:17:54 -08:00
parent 2ac9c08781
commit 3a1cf2d52a

View File

@ -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