Skip to content

Commit

Permalink
Hint about a possible update failure reason
Browse files Browse the repository at this point in the history
This feels ugly because it doesn't fix the underlying bug, but
it's incredibly hard to trace down the root cause in this
situation and it causes updates to fail which is pretty
critical. So this is probably better than nothing.

Ref QubesOS/qubes-issues#5052
  • Loading branch information
strugee committed Apr 8, 2020
1 parent b02dd6a commit dbc2d73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package-managers/qubes-download-dom0-updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ if ls "$DOM0_UPDATES_DIR"/packages/*.rpm > /dev/null 2>&1; then
$cmd "$DOM0_UPDATES_DIR"/packages/*.rpm || { qrexec_exit_code=$? ; true; };
if [ ! "$qrexec_exit_code" = "0" ]; then
echo "'$cmd $DOM0_UPDATES_DIR/packages/*.rpm' failed with exit code ${qrexec_exit_code}!" >&2
echo 'Sometimes this is caused by dom0 not having enough free space.' >&2
exit "$qrexec_exit_code"
fi
else
Expand Down

0 comments on commit dbc2d73

Please sign in to comment.