diff options
Diffstat (limited to 'recipes-extended/libvirt/libvirt_git.bb')
| -rw-r--r-- | recipes-extended/libvirt/libvirt_git.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-extended/libvirt/libvirt_git.bb b/recipes-extended/libvirt/libvirt_git.bb index f2fa7321..40b3f31a 100644 --- a/recipes-extended/libvirt/libvirt_git.bb +++ b/recipes-extended/libvirt/libvirt_git.bb | |||
| @@ -217,6 +217,16 @@ do_install:append() { | |||
| 217 | install -m 0644 ${UNPACKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf | 217 | install -m 0644 ${UNPACKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf |
| 218 | install -m 0644 ${UNPACKDIR}/libvirt-qemu.conf ${D}${nonarch_libdir}/sysusers.d/libvirt-qemu.conf | 218 | install -m 0644 ${UNPACKDIR}/libvirt-qemu.conf ${D}${nonarch_libdir}/sysusers.d/libvirt-qemu.conf |
| 219 | 219 | ||
| 220 | # Disable secrets encryption — requires systemd-creds with TPM or | ||
| 221 | # persistent host key that embedded/QEMU environments do not have. | ||
| 222 | # The encrypted credential generated at build time cannot be decrypted | ||
| 223 | # at runtime on a different machine, causing libvirtd to fail with | ||
| 224 | # "Invalid encryption key for the secret". | ||
| 225 | sed -i 's/^#encrypt_data = 1/encrypt_data = 0/' ${D}${sysconfdir}/libvirt/secret.conf | ||
| 226 | # Remove the stale build-time encrypted key so the init service | ||
| 227 | # does not skip regeneration on first boot | ||
| 228 | rm -f ${D}${localstatedir}/lib/libvirt/secrets/secrets-encryption-key | ||
| 229 | |||
| 220 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then | 230 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then |
| 221 | # This will wind up in the libvirtd package, but will NOT be invoked by default. | 231 | # This will wind up in the libvirtd package, but will NOT be invoked by default. |
| 222 | # | 232 | # |
