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:
parent
13c9149b6c
commit
f0de6c5b16
1
Makefile
1
Makefile
@ -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
|
||||
|
15
qubes-rpc/qubes.InstallUpdatesGUI
Executable file
15
qubes-rpc/qubes.InstallUpdatesGUI
Executable 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'
|
Loading…
Reference in New Issue
Block a user