mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-06 16:58:24 +00:00
ebtables: Fix update-alternatives by setting ALTERNATIVE_TARGET
The commit adding update-alternatives support omitted
ALTERNATIVE_TARGET[ebtables], causing the bbclass to fall back to
constructing the target as ${sbindir}/ebtables.ebtables which does
not exist. The binary is installed as ebtables-legacy, so set
ALTERNATIVE_TARGET accordingly.
fixes QA warnings:
ebtables: alternative target does not exist, skipping
ebtables: NOT adding alternative provide /usr/sbin/ebtables
ebtables: alt_link == alt_target: /usr/sbin/ebtables == /usr/sbin/ebtables
Fixes: 584fec0f74 ("ebtables: Use update alternatives for "ebtables"")
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -52,4 +52,5 @@ SYSTEMD_SERVICE:${PN} = "ebtables.service"
|
||||
|
||||
ALTERNATIVE:${PN} = "ebtables"
|
||||
ALTERNATIVE_LINK_NAME[ebtables] = "${sbindir}/ebtables"
|
||||
ALTERNATIVE_TARGET[ebtables] = "${sbindir}/ebtables-legacy"
|
||||
ALTERNATIVE_PRIORITY[ebtables] = "90"
|
||||
|
||||
Reference in New Issue
Block a user