d9d7a69c27
Mainly 4 parts: - scripts for providing rpmdb and yum repos to VM (choosen by qvm-set-updatevm) - VM script for downloading updates (qubes_download_dom0_updates.sh) - qfile-dom0-unpacker which receive updates, check signatures and place its in dom0 local yum repo - qvm-dom0-upgrade which calls all of above and after all yum gpk-update-viewer Besides qvm-dom0-upgrade, updates are checked every 6h and user is prompted if want to download it. At dom0 side gpk-update-icon (disabled yet) should notice new updates in "local" repo.
21 lines
451 B
Bash
Executable File
21 lines
451 B
Bash
Executable File
#!/bin/bash
|
|
|
|
UPDATEVM=`qvm-get-updatevm`
|
|
if [ -z "$UPDATEVM" ]; then
|
|
echo "UpdateVM not set, exiting"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Checking for dom0 updates"
|
|
|
|
# Start VM if not running already
|
|
qvm-run -a $UPDATEVM true || exit 1
|
|
/usr/lib/qubes/sync_rpmdb_updatevm.sh || exit 1
|
|
qvm-run -u root --pass_io $UPDATEVM "/usr/lib/qubes/qubes_download_dom0_updates.sh --doit $@" || exit 1
|
|
yum check-update
|
|
if [ $? -ne 100 ]; then
|
|
exit 0
|
|
fi
|
|
gpk-update-viewer
|
|
|