Skip to content

Commit

Permalink
qubes-dom0-update: do not attempt to install updates with --check-only
Browse files Browse the repository at this point in the history
When --check-only is used, skip installing updates phase.

Fixes QubesOS/qubes-issues#7417
  • Loading branch information
marmarek committed Apr 13, 2022
1 parent 87c4591 commit 67a6950
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dom0-updates/qubes-dom0-update
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ case ${YUM_ACTION=upgrade} in
;;
esac

if [ "$CHECK_ONLY" == "1" ]; then
REMOTE_ONLY=1
fi

# Redirect operations on templates to qvm-template command
if find_regex_in_args '^qubes-template-' "${PKGS[@]}"; then
if [[ ${#PKGS[@]} -ne 1 ]]; then
Expand Down

0 comments on commit 67a6950

Please sign in to comment.