Skip to content

Commit

Permalink
Improve qubes-dom0-update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
alimirjamali committed Aug 9, 2024
1 parent c28c4be commit b96811b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions dom0-updates/qubes-dom0-update
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,24 @@ case ${YUM_ACTION=upgrade} in
;;
esac

echo "Using $UPDATEVM as UpdateVM for Dom0" >&2

if [ "$CHECK_ONLY" == "1" ]; then
REMOTE_ONLY=1
echo "Checking for dom0 updates..." >&2
else
case ${YUM_ACTION=upgrade} in
(upgrade|upgrade-to)
echo "Downloading updates. This may take a while..." >&2;;
(install|reinstall)
echo "Downloading packages. This may take a while..." >&2;;
(downgrade)
echo "Downgrading packages. This may take a while..." >&2;;
(list|search)
echo "Updating package lists. This may take a while..." >&2;;
(*)
echo "Performing ${YUM_ACTION}. This may take a while..." >&2;;
esac
fi

# Redirect operations on templates to qvm-template command
Expand Down Expand Up @@ -286,8 +302,6 @@ if [ "$SKIP_BOOT_CHECK" != "1" ] && [ "$CHECK_ONLY" != "1" ] && \
[ -d /sys/firmware/efi ] && check_mounted "/boot/efi"
fi

echo "Using $UPDATEVM as UpdateVM to download updates for Dom0; this may take some time..." >&2

# qvm-run by default auto-starts the VM if not running
readonly dom0_updates_dir=/var/lib/qubes/dom0-updates
rpmdb_path=$(rpm --eval '%{_dbpath}')
Expand Down

0 comments on commit b96811b

Please sign in to comment.