The original /sbin/ebtables has been moved to /usr/sbin/ebtables-legacy.
But the old path is still used by some other software libvirt.

libvirtd[809]: direct firewall backend requested,
but /sbin/ebtables is not available: No such file or directory

As stated in the related change in ebtable git repo:
The new -legacy binary has no problem if called via a symlink with the
'ebtables' name, so users can still name this binary with whatever name.

So we add a symbol link from /usr/sbin/ebtables-legacy to /sbin/ebtables.

Signed-off-by: He Zhe <[email protected]>
---
 meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb 
b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
index 08d4d661d..e13479a5f 100644
--- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
+++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
@@ -40,6 +40,8 @@ do_install_append () {
                sed -i -e 's#@SBINDIR@#${sbindir}#g' 
${D}${systemd_unitdir}/system/ebtables.service
                install -m 0755 ${WORKDIR}/ebtables.common 
${D}${sbindir}/ebtables.common
        fi
+
+       ln -sf ${sbindir}/ebtables-legacy ${D}${base_sbindir}/ebtables
 }
 
 do_configure_prepend () {
-- 
2.17.1

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

Reply via email to