tests-always-included / wick

Bash-only IT automation, machine provisioning
Other
69 stars 12 forks source link

Wait for lock. #98

Closed baelish closed 7 years ago

baelish commented 8 years ago

Sometimes the updates don't work e.g. when the onboot security updates are taking place. Adding wickWaitfor statements to retry for up to 10 minutes to run the update/upgrade.

fidian commented 8 years ago

This doesn't update how packages are installed. :-(

The alternative of checking for files has a race condition. apt-get always returns 100 on lockfile failures. I really want to have a way to detect lockfile failures.

So, to document our conversation, it's going to kinda look like this:

wait for the lockfile to not exist
try to run the command
quantumew commented 7 years ago

Looks good!