From 8aea0d9aabb7ac5b9306822efd39ee6f79ee5561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sun, 26 Jul 2020 15:27:26 +0200 Subject: [PATCH] xendriverdomain: remove Requires and After proc-xen.mount --- Makefile | 3 ++- debian/qubes-core-agent.install | 1 + rpm_spec/core-agent.spec.in | 1 + vm-systemd/xendriverdomain.service | 10 ++++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 vm-systemd/xendriverdomain.service diff --git a/Makefile b/Makefile index ac0b789..06651a0 100644 --- a/Makefile +++ b/Makefile @@ -106,11 +106,12 @@ SYSTEMD_NETWORK_SERVICES := vm-systemd/qubes-firewall.service vm-systemd/qubes-i SYSTEMD_CORE_SERVICES := $(filter-out $(SYSTEMD_NETWORK_SERVICES), $(SYSTEMD_ALL_SERVICES)) install-systemd: install-init - install -d $(DESTDIR)$(SYSLIBDIR)/systemd/system{,-preset} $(DESTDIR)$(LIBDIR)/qubes/init $(DESTDIR)$(SYSLIBDIR)/modules-load.d + install -d $(DESTDIR)$(SYSLIBDIR)/systemd/system{,-preset} $(DESTDIR)$(LIBDIR)/qubes/init $(DESTDIR)$(SYSLIBDIR)/modules-load.d $(DESTDIR)/etc/systemd/system install -m 0644 $(SYSTEMD_CORE_SERVICES) $(DESTDIR)$(SYSLIBDIR)/systemd/system/ install -m 0644 vm-systemd/qubes-*.timer $(DESTDIR)$(SYSLIBDIR)/systemd/system/ install -m 0644 vm-systemd/75-qubes-vm.preset $(DESTDIR)$(SYSLIBDIR)/systemd/system-preset/ install -m 0644 vm-systemd/qubes-core.conf $(DESTDIR)$(SYSLIBDIR)/modules-load.d/ + install -m 0644 vm-systemd/xendriverdomain.service $(DESTDIR)/etc/systemd/system/ install-sysvinit: install-init install -d $(DESTDIR)/etc/init.d diff --git a/debian/qubes-core-agent.install b/debian/qubes-core-agent.install index fa4f033..5debdca 100644 --- a/debian/qubes-core-agent.install +++ b/debian/qubes-core-agent.install @@ -57,6 +57,7 @@ etc/sudoers.d/umask etc/sysctl.d/20_tcp_timestamps.conf etc/sysctl.d/80-qubes.conf etc/systemd/system/haveged.service +etc/systemd/system/xendriverdomain.service lib/modules-load.d/qubes-core.conf lib/systemd/system-preset/75-qubes-vm.preset lib/systemd/system/boot.automount.d/30_qubes.conf diff --git a/rpm_spec/core-agent.spec.in b/rpm_spec/core-agent.spec.in index f4dd797..2cc0e98 100644 --- a/rpm_spec/core-agent.spec.in +++ b/rpm_spec/core-agent.spec.in @@ -863,6 +863,7 @@ The Qubes core startup configuration for SystemD init. %files systemd %defattr(-,root,root,-) +/etc/systemd/system/xendriverdomain.service /lib/systemd/system/qubes-misc-post.service /lib/systemd/system/qubes-mount-dirs.service /lib/systemd/system/qubes-rootfs-resize.service diff --git a/vm-systemd/xendriverdomain.service b/vm-systemd/xendriverdomain.service new file mode 100644 index 0000000..9e30d8c --- /dev/null +++ b/vm-systemd/xendriverdomain.service @@ -0,0 +1,10 @@ +[Unit] +Description=Xen driver domain device daemon +ConditionVirtualization=xen + +[Service] +Type=forking +ExecStart=@sbindir@/xl devd + +[Install] +WantedBy=multi-user.target \ No newline at end of file