summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhixiong Chi <zhixiong.chi@windriver.com>2026-04-21 07:46:35 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-04-21 13:11:11 +0000
commitba09e8373772689b1383ed57e4d218d34c10cb95 (patch)
tree5b1d9adaea8cca3805ed012aa406fad035a91bb2
parent484a57d2df5d02e2cc64a7b7e03be93ffeaff8d4 (diff)
downloadmeta-virtualization-ba09e8373772689b1383ed57e4d218d34c10cb95.tar.gz
libvirt: Drop the deprecated workaround
The workaround is not needed anymore as the systemd supporting. The libvirtd.service Type has been changed from notify to notify-reload, so the final Type will be 'forking-reload', that's invalid for systemd. Here we delete it to avoid the following output information: >/lib/systemd/system/libvirtd.service:29: Failed to parse Type=forking-reload, ignoring: Invalid argument Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-extended/libvirt/libvirt_git.bb7
1 files changed, 0 insertions, 7 deletions
diff --git a/recipes-extended/libvirt/libvirt_git.bb b/recipes-extended/libvirt/libvirt_git.bb
index 62931d17..b5b0a5f2 100644
--- a/recipes-extended/libvirt/libvirt_git.bb
+++ b/recipes-extended/libvirt/libvirt_git.bb
@@ -232,13 +232,6 @@ do_install:append() {
232 mv ${D}${prefix}/lib/systemd/system/* ${D}${systemd_system_unitdir} 232 mv ${D}${prefix}/lib/systemd/system/* ${D}${systemd_system_unitdir}
233 rmdir ${D}${prefix}/lib/systemd/system ${D}${prefix}/lib/systemd 233 rmdir ${D}${prefix}/lib/systemd/system ${D}${prefix}/lib/systemd
234 fi 234 fi
235
236 # We can't use 'notify' when we don't support 'sd_notify' dbus capabilities.
237 # Change default LIBVIRTD_ARGS to start libvirtd in the right mode.
238 sed -i -e 's/Type=notify/Type=forking/' \
239 -e '/Type=forking/a PIDFile=/run/libvirtd.pid' \
240 -e 's/\(Environment=LIBVIRTD_ARGS="--timeout 120"\)/#\1\nEnvironment=LIBVIRTD_ARGS="--listen --daemon"/' \
241 ${D}/${systemd_system_unitdir}/libvirtd.service
242 fi 235 fi
243 236
244 # The /run/libvirt directories created by the Makefile are 237 # The /run/libvirt directories created by the Makefile are