Closed baelish closed 7 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
Looks good!
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.