Skip to content

Commit cb7cb88

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 cb7cb88

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/user-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/
@@ -166,6 +167,7 @@ install-systemd: install-init
166167
install -m 0644 vm-systemd/80-qubes-vif.link $(DESTDIR)$(SYSLIBDIR)/systemd/network/
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/
170+
install -m 0755 vm-systemd/user-environment-generators/30-qubes.sh $(DESTDIR)$(SYSLIBDIR)/systemd/user-environment-generators/30-qubes.sh
169171
install -m 0644 vm-systemd/usr-local.mount $(DESTDIR)$(SYSLIBDIR)/systemd/system/
170172

171173
.PHONY: install-sysvinit

debian/qubes-core-agent.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ lib/systemd/system/systemd-nsresourced.socket.d/30_qubes.conf
120120
lib/systemd/resolved.conf.d/30_resolved-no-mdns-or-llmnr.conf
121121
lib/systemd/system/home.mount
122122
lib/systemd/system/usr-local.mount
123+
lib/systemd/user-environment-generators/30-qubes.sh
123124
usr/lib/sysctl.d/20-qubes-core.conf
124125
usr/lib/systemd/user/tracker-extract-3.service.d/30_qubes.conf
125126
usr/lib/systemd/user/tracker-miner-fs-3.service.d/30_qubes.conf

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/user-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)