Skip to contentSkip to conversation

ebtables: Add symbol link /sbin/ebtables

PATCH New Yi Zhao 1 participant 1 message Jan 3, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH v2 1/1 ebtables: Add symbol link /sbin/ebtables

From: He Zhe <[email protected]>

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.

---
V2: Create /sbin directory before create the link file

 meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb +3 -0
index c13ed7b3b..bc33c18c0 100644
@@ -38,6 +38,9 @@ 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
+
+	install -d ${D}${base_sbindir}
+	ln -sf ${sbindir}/ebtables-legacy ${D}${base_sbindir}/ebtables
 }
 
 do_configure_prepend () {
Signature · 1 line
2.25.1