Merge remote-tracking branch 'qubesos/pr/93'

* qubesos/pr/93:
  Call qubes.PostInstall service to notify dom0 about all apps/features
  Drop Fedora < 22 support
This commit is contained in:
Marek Marczykowski-Górecki 2018-02-22 21:28:32 +01:00
commit eacd069bf4
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
7 changed files with 10 additions and 21 deletions

View File

@ -161,8 +161,6 @@ install-rh: install-systemd install-systemd-dropins install-sysvinit
install -d $(DESTDIR)/etc/yum.conf.d install -d $(DESTDIR)/etc/yum.conf.d
touch $(DESTDIR)/etc/yum.conf.d/qubes-proxy.conf touch $(DESTDIR)/etc/yum.conf.d/qubes-proxy.conf
install -D -m 0644 misc/qubes-trigger-sync-appmenus.action $(DESTDIR)/etc/yum/post-actions/qubes-trigger-sync-appmenus.action
install -D -m 0644 misc/grub.qubes $(DESTDIR)/etc/default/grub.qubes install -D -m 0644 misc/grub.qubes $(DESTDIR)/etc/default/grub.qubes
install -D -m 0644 misc/serial.conf $(DESTDIR)/usr/share/qubes/serial.conf install -D -m 0644 misc/serial.conf $(DESTDIR)/usr/share/qubes/serial.conf
install -D misc/qubes-serial-login $(DESTDIR)/$(SBINDIR)/qubes-serial-login install -D misc/qubes-serial-login $(DESTDIR)/$(SBINDIR)/qubes-serial-login

View File

@ -6,6 +6,6 @@ Operation = Remove
Target = usr/share/applications/*.desktop Target = usr/share/applications/*.desktop
[Action] [Action]
Description = Updating the Qubes desktop file App Icons... Description = Updating the Qubes desktop file App Icons and features...
When = PostTransaction When = PostTransaction
Exec = /usr/lib/qubes/qubes-trigger-sync-appmenus.sh Exec = /etc/qubes-rpc/qubes.PostInstall

View File

@ -181,8 +181,8 @@ case "${1}" in
dconf update || true dconf update || true
# Update Qubes App Menus # tell dom0 about installed updates (applications, features etc)
/usr/lib/qubes/qubes-trigger-sync-appmenus.sh || true /etc/qubes-rpc/qubes.PostInstall || true
;; ;;
abort-upgrade|abort-remove|abort-deconfigure) abort-upgrade|abort-remove|abort-deconfigure)
@ -194,8 +194,8 @@ case "${1}" in
case "${trigger}" in case "${trigger}" in
/usr/share/applications) /usr/share/applications)
debug "Updating Qubes App Menus..." debug "Updating Qubes App Menus and advertising features..."
/usr/lib/qubes/qubes-trigger-sync-appmenus.sh || true /etc/qubes-rpc/qubes.PostInstall || true
;; ;;
# Install overridden serial.conf init script # Install overridden serial.conf init script

View File

@ -61,6 +61,5 @@ class QubesHooks(dnf.Plugin):
str(len(updates)) str(len(updates))
]) ])
if config.getboolean('main', 'sync-appmenus'): self.log.info("Notifying dom0 about installed applications")
self.log.info("Sending application list and icons to dom0") subprocess.call(['/etc/qubes-rpc/qubes.PostInstall'])
subprocess.call(['/usr/lib/qubes/qubes-trigger-sync-appmenus.sh'])

View File

@ -1 +0,0 @@
*:any:/usr/lib/qubes/qubes-trigger-sync-appmenus.sh

View File

@ -1,3 +1,3 @@
All executable files with `.sh` suffix in this directory will be executed as All executable files with `.sh` suffix in this directory will be executed as
root just after template installation. Template VM may not have access to the root just after template installation or update. Template VM may
network at this time yet. not have access to the network at this time yet.

View File

@ -324,10 +324,6 @@ usermod -p '' root
(cd qrexec; make install DESTDIR=$RPM_BUILD_ROOT) (cd qrexec; make install DESTDIR=$RPM_BUILD_ROOT)
make install-vm DESTDIR=$RPM_BUILD_ROOT make install-vm DESTDIR=$RPM_BUILD_ROOT
%if %{fedora} >= 22
rm -f $RPM_BUILD_ROOT/etc/yum/post-actions/qubes-trigger-sync-appmenus.action
%endif
%if 0%{?rhel} >= 7 %if 0%{?rhel} >= 7
sed -i \ sed -i \
-e 's:-primary:-centos:' \ -e 's:-primary:-centos:' \
@ -613,9 +609,6 @@ rm -f %{name}-%{version}
%config(noreplace) /etc/yum.repos.d/qubes-r4.repo %config(noreplace) /etc/yum.repos.d/qubes-r4.repo
/etc/yum/pluginconf.d/yum-qubes-hooks.conf /etc/yum/pluginconf.d/yum-qubes-hooks.conf
%config(noreplace) /etc/dnf/plugins/qubes-hooks.conf %config(noreplace) /etc/dnf/plugins/qubes-hooks.conf
%if %{fedora} < 22
/etc/yum/post-actions/qubes-trigger-sync-appmenus.action
%endif
%config(noreplace) /etc/dconf/profile/user %config(noreplace) /etc/dconf/profile/user
%config(noreplace) /etc/dconf/db/local.d/dpi %config(noreplace) /etc/dconf/db/local.d/dpi
/usr/lib/systemd/system/user@.service.d/90-session-stop-timeout.conf /usr/lib/systemd/system/user@.service.d/90-session-stop-timeout.conf