[gnome-build-meta/jjardon/gnome_3_37_92: 14/45] core-deps/libvirt.bst: Disable system units
- From: Javier Jardón Cabezas <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/jjardon/gnome_3_37_92: 14/45] core-deps/libvirt.bst: Disable system units
- Date: Mon, 7 Sep 2020 16:16:15 +0000 (UTC)
commit 16dfdee2753d77e69afb477fa9dacabbf914ab30
Author: Valentin David <valentin david codethink co uk>
Date: Sat Aug 29 22:35:13 2020 +0200
core-deps/libvirt.bst: Disable system units
libvirtd has 2 modes, system and session. While it can be useful
to be able to using the system virtual machines, Boxes does not use
that and uses session virtual machines only. So it is better
not to start those.
User can re-enable system services with:
```
sudo ln -s /dev/null /etc/systemd/system-preset/80-libvirt.preset
systemctl preset-all
```
elements/core-deps/libvirt.bst | 5 +++++
files/libvirt/80-libvirt.preset | 7 +++++++
2 files changed, 12 insertions(+)
---
diff --git a/elements/core-deps/libvirt.bst b/elements/core-deps/libvirt.bst
index 78c1d498..7087105a 100644
--- a/elements/core-deps/libvirt.bst
+++ b/elements/core-deps/libvirt.bst
@@ -3,6 +3,8 @@ sources:
- kind: tar
url: https://libvirt.org/sources/libvirt-6.5.0.tar.xz
ref: 4915d9eab299ed79288d7598b717c587156708c05f701fe55a72293f32eb3182
+- kind: local
+ path: files/libvirt/80-libvirt.preset
build-depends:
- core-deps/rpcsvc-proto.bst
- freedesktop-sdk.bst:components/libxslt.bst
@@ -42,6 +44,9 @@ config:
cd build
%{make-install}
- mv %{install-root}/var/run %{install-root}
+ - |
+ presetdir="$(pkg-config --variable=systemdsystempresetdir systemd)"
+ install -Dm644 -t "%{install-root}${presetdir}" 80-libvirt.preset
variables:
conf-cmd: ../configure
# --disable-Werror does not work
diff --git a/files/libvirt/80-libvirt.preset b/files/libvirt/80-libvirt.preset
new file mode 100644
index 00000000..3d655a23
--- /dev/null
+++ b/files/libvirt/80-libvirt.preset
@@ -0,0 +1,7 @@
+disable libvirt-guests.service
+disable libvirtd.service
+disable libvirtd.socket
+disable libvirtd-*.socket
+disable virt*d.service
+disable virt*d.socket
+disable virt*d-*.socket
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]