Skip to content

Commit

Permalink
dom0-update: fix handling -rc xen version
Browse files Browse the repository at this point in the history
Do not refuse update of release candidate of Xen.

(cherry picked from commit 02d29b4)
  • Loading branch information
marmarek committed Jul 24, 2023
1 parent 1aae7e0 commit 6e92e9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dom0-updates/qubes-dom0-update
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ if [ -f /var/lib/qubes/updates/repodata/repomd.xml ]; then
|cut -f 1,2 -d . \
|uniq)
xen_running=$(xl info xen_version|cut -f 1,2 -d .)
# cut off -rc if any
xen_running=${xen_running%-*}
if [ -n "$xen_in_update" ] && [ "$xen_in_update" != "$xen_running" ]; then
# check if there are running VMs
if [ "$(xl list|wc -l)" -gt 2 ]; then
Expand Down

0 comments on commit 6e92e9d

Please sign in to comment.