From 76649d875b8248a22c9b561254cfbce677bfc3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 4 Apr 2018 01:50:40 +0200 Subject: [PATCH] Do not start dkms.service It doesn't make sense in Qubes to rebuild modules at every VM startup. Especially when modules dir is either read-only, or on non-persistent root volume (TemplateBasedVM). This is especially uneeded for dom0-provided kernels, which already have u2mfn module built, but DKMS try to rebuild it anyway (and fails, because of missing/broken kernel-devel package). DKMS already have appropriate (rpm/dpkg) hooks for new kernel installation, so actually needed modules should be build in template on kernel update/install anyway. This saves about 2s from VM startup time. --- vm-systemd/75-qubes-vm.preset | 1 + 1 file changed, 1 insertion(+) diff --git a/vm-systemd/75-qubes-vm.preset b/vm-systemd/75-qubes-vm.preset index d13850d..7c0d3c5 100644 --- a/vm-systemd/75-qubes-vm.preset +++ b/vm-systemd/75-qubes-vm.preset @@ -56,6 +56,7 @@ disable smartd.service disable upower.service disable colord.service disable wpa_supplicant@.service +disable dkms.service # Fedora only services disable cpuspeed.service