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

Signed-off-by: Wang Mingyu <[email protected]>
---
 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

diff --git a/recipes-extended/libvirt/libvirt/libvirt-qemu.conf 
b/recipes-extended/libvirt/libvirt/libvirt-qemu.conf
new file mode 100644
index 00000000..e69de29b
diff --git a/recipes-extended/libvirt/libvirt_git.bb 
b/recipes-extended/libvirt/libvirt_git.bb
index 5a04afa3..1175e737 100644
--- a/recipes-extended/libvirt/libvirt_git.bb
+++ b/recipes-extended/libvirt/libvirt_git.bb
@@ -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.
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8877): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8877
Mute This Topic: https://lists.yoctoproject.org/mt/108388431/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to