Skip to content

Commit 4a66607

Browse files
committed
minimal-vms: disable GVFS usage for GIO clients
This causes timeouts as gvfs daemon is disabled for VMs having this feature enabled.
1 parent 6034fe1 commit 4a66607

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ install-systemd: install-init
157157
$(DESTDIR)$(SYSLIBDIR)/modules-load.d \
158158
$(DESTDIR)/etc/systemd/system \
159159
$(DESTDIR)$(SYSLIBDIR)/systemd/network \
160-
$(DESTDIR)$(SYSLIBDIR)/systemd/resolved.conf.d/
160+
$(DESTDIR)$(SYSLIBDIR)/systemd/resolved.conf.d/ \
161+
$(DESTDIR)$(SYSLIBDIR)/systemd/system-environment-generators
161162
install -m 0644 $(SYSTEMD_CORE_SERVICES) $(DESTDIR)$(SYSLIBDIR)/systemd/system/
162163
install -m 0644 vm-systemd/qubes-*.timer $(DESTDIR)$(SYSLIBDIR)/systemd/system/
163164
install -m 0644 vm-systemd/75-qubes-vm.preset $(DESTDIR)$(SYSLIBDIR)/systemd/system-preset/
@@ -167,6 +168,7 @@ install-systemd: install-init
167168
install -m 0644 vm-systemd/30_resolved-no-mdns-or-llmnr.conf $(DESTDIR)$(SYSLIBDIR)/systemd/resolved.conf.d/
168169
install -m 0644 vm-systemd/home.mount $(DESTDIR)$(SYSLIBDIR)/systemd/system/
169170
install -m 0644 vm-systemd/usr-local.mount $(DESTDIR)$(SYSLIBDIR)/systemd/system/
171+
install -m 0755 vm-systemd/system-environment-generators/30-qubes.sh $(DESTDIR)$(SYSLIBDIR)/systemd/system-environment-generators/30-qubes.sh
170172

171173
.PHONY: install-sysvinit
172174
install-sysvinit: install-init

debian/qubes-core-agent.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ lib/systemd/system/systemd-timesyncd.service.d/30_qubes.conf
117117
lib/systemd/system/systemd-logind.service.d/30_qubes.conf
118118
lib/systemd/system/systemd-nsresourced.service.d/30_qubes.conf
119119
lib/systemd/system/systemd-nsresourced.socket.d/30_qubes.conf
120+
lib/systemd/system-environment-generators/30-qubes.sh
120121
lib/systemd/resolved.conf.d/30_resolved-no-mdns-or-llmnr.conf
121122
lib/systemd/system/home.mount
122123
lib/systemd/system/usr-local.mount

rpm_spec/core-agent.spec.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,7 @@ The Qubes core startup configuration for SystemD init.
12551255
%_userunitdir/gvfs-daemon.service.d/30_qubes.conf
12561256
%_userunitdir/pipewire.service.d/40_minimal.conf
12571257
%_userunitdir/wireplumber.service.d/30_qubes.conf
1258+
/usr/lib/systemd/system-environment-generators/30-qubes.sh
12581259

12591260
%post systemd
12601261

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
# Disable GVFS usage for GIO clients
4+
if [ -f /run/qubes-service/minimal-netvm ] || [ -f /run/qubes-service/minimal-usbvm ]; then
5+
echo "GIO_USE_VFS=local"
6+
fi

0 commit comments

Comments
 (0)