invoke install account for ebtables based on nf_tables

This commit is contained in:
Blake Harnden 2020-07-10 12:41:39 -07:00
parent 8a60a4739f
commit 75acbf4dae

View file

@ -76,6 +76,12 @@ def install_system(c: Context, os_info: OsInfo, hide: bool) -> None:
"iptables-ebtables iproute python3-devel python3-tkinter tk ethtool", "iptables-ebtables iproute python3-devel python3-tkinter tk ethtool",
hide=hide hide=hide
) )
r = c.run("ebtables -V", hide=hide)
if "nf_tables" in r.stdout:
c.run(
"sudo update-alternatives --set ebtables /usr/sbin/ebtables-legacy",
hide=hide
)
def install_grpcio(c: Context, hide: bool) -> None: def install_grpcio(c: Context, hide: bool) -> None: