Commit a920830
committed
Avoid dpkg lock during chef install
Instead of retrying the dpkg command for a limited amount of time, wait until dpkg lock is released and temporarily stop the apt-daily services.
```
$apt-config shell StateDir Dir::State/d
StateDir='/var/lib/apt/'
```
```
$echo $(apt-config shell StateDir Dir::State/d | sed -r "s/.*'(.*)'$/\1/")daily_lock
/var/lib/apt/daily_lock
```
Signed-off-by: Luca Carrogu <carrogu@amazon.com>1 parent df84f6a commit a920830
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 278 | + | |
| 279 | + | |
284 | 280 | | |
285 | 281 | | |
286 | 282 | | |
| |||
0 commit comments