News for hackers. Stuff that matters.
Re:Waiting for apt locks without hacky Bash scripts by scriptnull on Monday October 25, 2021 @10:55PM (#28995905)
I have faced this locking problem while trying to use packer for building out AMIs. It was a flaky process. I used to google it always and not figure out a solution and continue rerunning the builds for a long time.

But one of my colleagues figured out that it is probably because the apt-get is getting locked due to cloud-init and removed the flakiness by making packer wait[1] for cloud-init to complete before running the installation scripts that involved apt-get locking.

We too wished that there were more docs to help us, especially explaining how apt-get worked.

[1] https://github.com/hashicorp/packer/issues/2639#issuecomment...

There are no comments on this comment yet.