Skip to content

Commit

Permalink
dom0-update: do not send --downloadonly option to the updatevm
Browse files Browse the repository at this point in the history
The updatevm already downloads packages only (either using
--downloadonly option internally, or using yumdownloader). The option
from the user matters for the dnf call in dom0 only.

Especially, sending --downloadonly breaks downloading updates via
debian-10, which uses yumdownloader, as it doesn't have --downloadonly
option.

This is mostly relevant for R4.0 -> R4.1 upgrade (and maybe some future
too?), as the process uses --downloadonly option internally.

QubesOS/qubes-issues#5685

(cherry picked from commit 0018597)
  • Loading branch information
marmarek committed Dec 3, 2021
1 parent 8ec163e commit 747eb1d
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 @@ -64,6 +64,10 @@ while [ $# -gt 0 ]; do
--disablerepo=*)
UPDATEVM_OPTS+=( "$1" )
;;
--downloadonly)
YUM_OPTS+=( "${1}" )
QVMTEMPLATE_OPTS+=( "$1" )
;;
--clean)
CLEAN=1
UPDATEVM_OPTS+=( "$1" )
Expand Down

0 comments on commit 747eb1d

Please sign in to comment.