From 88308bbee7027c5b840a30f9d91b188ad803de1f Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Thu, 30 Sep 2021 13:59:29 +0200 Subject: [libvirt-src] Add module for libvirt source build --- core/modules/libvirt/module.build | 14 +------------- core/modules/libvirt/module.conf | 4 ++++ core/modules/libvirt/module.conf.debian | 6 ------ 3 files changed, 5 insertions(+), 19 deletions(-) (limited to 'core/modules/libvirt') diff --git a/core/modules/libvirt/module.build b/core/modules/libvirt/module.build index 2b661f30..61fd9a57 100644 --- a/core/modules/libvirt/module.build +++ b/core/modules/libvirt/module.build @@ -1,13 +1,5 @@ #!/bin/bash -module_init() { - groupadd --system "kvm" - groupadd --system "libvirt-qemu" - groupadd --system "libvirt-passthrough" - useradd --gid "kvm" --groups "libvirt-qemu,libvirt-passthrough" --system \ - --no-create-home --home-dir "/var/lib/libvirt" "libvirt-qemu" -} - fetch_source() { : } @@ -17,9 +9,5 @@ build() { } post_copy() { - # remove default network configuration - # TODO: Some REQUIRED_DELETIONS var that handles this? This would not - # do the right thing in MiniLinux mode. - rm "/etc/libvirt/qemu/networks/default.xml" - rm "/etc/libvirt/qemu/networks/autostart/default.xml" + : } diff --git a/core/modules/libvirt/module.conf b/core/modules/libvirt/module.conf index 668ddf88..11090887 100644 --- a/core/modules/libvirt/module.conf +++ b/core/modules/libvirt/module.conf @@ -1,5 +1,9 @@ #!/bin/bash +REQUIRED_MODULES=" + libvirt-src +" + REQUIRED_BINARIES="" REQUIRED_LIBRARIES="" REQUIRED_DIRECTORIES="" diff --git a/core/modules/libvirt/module.conf.debian b/core/modules/libvirt/module.conf.debian index bd1671ea..38968ac6 100644 --- a/core/modules/libvirt/module.conf.debian +++ b/core/modules/libvirt/module.conf.debian @@ -1,8 +1,5 @@ #!/bin/bash REQUIRED_INSTALLED_PACKAGES=" - libvirt-daemon-system - libvirt-daemon - libvirt-clients ebtables dnsmasq mdevctl @@ -10,9 +7,6 @@ REQUIRED_INSTALLED_PACKAGES=" " REQUIRED_CONTENT_PACKAGES=" - libvirt-daemon-system - libvirt-daemon - libvirt-clients ebtables dnsmasq mdevctl -- cgit v1.2.3-55-g7522