Commit fc0aa2c
[multiple] Handle already-unlocked state in usroverlay task
rpm-ostree usroverlay returns exit code 1 with the message
"Deployment is already in unlocked state: development" when the
CoreOS node is already in the unlocked overlay state from a previous
run. This caused the pcp_metrics hook to abort the entire deployment
on re-runs without a full node reboot.
Register the result and only treat non-zero exit codes as failures
when the stderr does not contain the "already in unlocked state"
message, making the task idempotent across multiple deploy attempts.
Signed-off-by: Ade Lee <alee@redhat.com>
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 079d44c commit fc0aa2c
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
0 commit comments