|
|
|
|
|
by scriptnull
1694 days ago
|
|
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... |
|