Implement qubes.InstallUpdatesGUI qrexec service

It should be up to the VM what GUI tool is used for installing updates.
For now stick with console tools in xterm...

Fixes QubesOS/qubes-issues#1249
This commit is contained in:
Marek Marczykowski-Górecki 2015-11-13 05:32:44 +01:00
parent 13c9149b6c
commit f0de6c5b16
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 16 additions and 0 deletions

View File

@ -228,6 +228,7 @@ install-common:
install -m 0644 qubes-rpc/qubes.Select{File,Directory} $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/qubes.GetImageRGBA $(DESTDIR)/etc/qubes-rpc
install -m 0644 qubes-rpc/qubes.SetDateTime $(DESTDIR)/etc/qubes-rpc
install -m 0755 qubes-rpc/qubes.InstallUpdatesGUI $(DESTDIR)/etc/qubes-rpc
install -d $(DESTDIR)/usr/share/nautilus-python/extensions
install -m 0644 qubes-rpc/*_nautilus.py $(DESTDIR)/usr/share/nautilus-python/extensions

View File

@ -0,0 +1,15 @@
#!/bin/sh
# This script should open some GUI to install updates.
# If you are creating package for other distribution, feel free to replace it
# with distribution-specific script.
if [ -e /etc/redhat-release ]; then
xterm -title update -e su -l -c 'yum update; echo Done. Press Enter to exit.; read x'
elif [ -e /etc/debian_version ]; then
xterm -title update -e su -l -c 'apt-get update && apt-get -V dist-upgrade; echo Done. Press Enter to exit.; read x'
else
xterm -title update -e su -l -c 'echo Unsupported distribution, install updates manually; bash -i'
fi
# Notify dom0 about installed updates
su -c 'service qubes-update-check start'