Skip to contentSkip to conversation

libvirt: fix do_rootfs error

PATCH New [email protected] 1 participant 1 message Sep 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libvirt: fix do_rootfs error

From: Wang Mingyu <[email protected]>

When do_rootfs, the following error occured:
WARNING: do_rootfs: Group kvm has been defined with id (47) but sysusers.d expects gid (36)
WARNING: do_rootfs: Group qemu has been defined with id (975) but sysusers.d expects gid (107)
ERROR: do_rootfs: Error executing a python function in exec_func_python() autogenerated:

Create an empty file libvirt-qemu.conf to solve the issue of gid mismatch

---
 recipes-extended/libvirt/libvirt/libvirt-qemu.conf | 0
 recipes-extended/libvirt/libvirt_git.bb            | 2 ++
 2 files changed, 2 insertions(+)
 create mode 100644 recipes-extended/libvirt/libvirt/libvirt-qemu.conf
recipes-extended/libvirt/libvirt/libvirt-qemu.conf new file +0 -0
new file mode 100644
index 00000000..e69de29b
recipes-extended/libvirt/libvirt_git.bb +2 -0
index 5a04afa3..1175e737 100644
@@ -35,6 +35,7 @@ SRC_URI = "gitsm://github.com/libvirt/libvirt.git;name=libvirt;protocol=https;br
            file://dnsmasq.conf \
            file://hook_support.py \
            file://gnutls-helper.py;subdir=${BP} \
+           file://libvirt-qemu.conf \
            file://0001-prevent-gendispatch.pl-generating-build-path-in-code.patch \
            file://0001-messon.build-remove-build-path-information-to-avoid-.patch \
            file://0001-meson.build-clear-abs_top_builddir-to-avoid-QA-warni.patch \
@@ -207,6 +208,7 @@ do_install:append() {
 
 	install -m 0755 ${UNPACKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd
 	install -m 0644 ${UNPACKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf
+	install -m 0644 ${UNPACKDIR}/libvirt-qemu.conf ${D}${nonarch_base_libdir}/sysusers.d/libvirt-qemu.conf
 
 	if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
 	    # This will wind up in the libvirtd package, but will NOT be invoked by default.
Signature · 1 line
2.34.1