Comment 1 for bug 1693361

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1693361] [NEW] cloud-init sometimes fails on dpkg lock due to concurrent apt-daily.service execution

On Wed, May 24, 2017 at 09:10:37PM -0000, Jim Browne wrote:
> While it would be better to solve this in apt itself, I suggest that
> cloud-init be defensive when calling apt and implement some retry
> mechanism.

I would suggest instead that cloud-init should declare itself
Before=apt-daily.service / apt-daily.timer, so that cloud-init takes
precedence over apt-daily on first boot.