diff options
author | Wang Mingyu <wangmy@fujitsu.com> | 2024-09-11 11:54:17 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-09-11 18:20:33 +0000 |
commit | 8138d9cc7e0c31171230110db0cfa881c46a821b (patch) | |
tree | 26da6b1eb9139920a2718ef573d94aed7beefd71 | |
parent | c2d3d5001aa061a5f419af461a4c7350ac216176 (diff) | |
download | meta-virtualization-8138d9cc7e0c31171230110db0cfa881c46a821b.tar.gz |
libvirt: fix do_rootfs error
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 <wangmy@fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-extended/libvirt/libvirt/libvirt-qemu.conf | 0 | ||||
-rw-r--r-- | recipes-extended/libvirt/libvirt_git.bb | 2 |
2 files changed, 2 insertions, 0 deletions
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 --- /dev/null +++ b/recipes-extended/libvirt/libvirt/libvirt-qemu.conf | |||
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 | |||
35 | file://dnsmasq.conf \ | 35 | file://dnsmasq.conf \ |
36 | file://hook_support.py \ | 36 | file://hook_support.py \ |
37 | file://gnutls-helper.py;subdir=${BP} \ | 37 | file://gnutls-helper.py;subdir=${BP} \ |
38 | file://libvirt-qemu.conf \ | ||
38 | file://0001-prevent-gendispatch.pl-generating-build-path-in-code.patch \ | 39 | file://0001-prevent-gendispatch.pl-generating-build-path-in-code.patch \ |
39 | file://0001-messon.build-remove-build-path-information-to-avoid-.patch \ | 40 | file://0001-messon.build-remove-build-path-information-to-avoid-.patch \ |
40 | file://0001-meson.build-clear-abs_top_builddir-to-avoid-QA-warni.patch \ | 41 | file://0001-meson.build-clear-abs_top_builddir-to-avoid-QA-warni.patch \ |
@@ -207,6 +208,7 @@ do_install:append() { | |||
207 | 208 | ||
208 | install -m 0755 ${UNPACKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd | 209 | install -m 0755 ${UNPACKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd |
209 | install -m 0644 ${UNPACKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf | 210 | install -m 0644 ${UNPACKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf |
211 | install -m 0644 ${UNPACKDIR}/libvirt-qemu.conf ${D}${nonarch_base_libdir}/sysusers.d/libvirt-qemu.conf | ||
210 | 212 | ||
211 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then | 213 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then |
212 | # This will wind up in the libvirtd package, but will NOT be invoked by default. | 214 | # This will wind up in the libvirtd package, but will NOT be invoked by default. |