beetboxvm / beetbox

Pre-provisioned L*MP stack
http://beetbox.rtfd.org
92 stars 19 forks source link

Always force apt-update on the first build. #443

Closed thom8 closed 7 years ago

thom8 commented 7 years ago

Problem/Motivation

As part of the box build the apt cache is cleared and requires updating during the first provision of each build.

This task will update the cache but only if the box older than an hour old.

Would be good to force this to always run on the first provision but then use the cache on any new provision to speed up the reprovisioning process, the cache time can then be increased to a day or even longer.

Relates to #438

Not a major issue as it only affects builds when the base box is less than an hour old.