invoke install account for ebtables based on nf_tables
This commit is contained in:
parent
8a60a4739f
commit
75acbf4dae
1 changed files with 6 additions and 0 deletions
6
tasks.py
6
tasks.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue