add support for firewall
TODO:
-
add kconfig check for nftables kernel config -
add pmb install
option to disable firewall
testing:
Using https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2060:
$ pmbootstrap config device purism-librem5
$ yes 1 | pmbootstrap install --no-firewall
...
*** FIREWALL INFORMATION ***
Firewall is disabled (--no-firewall).
For more information: https://postmarketos.org/firewall
...
$ yes 1 | pmbootstrap install
[18:55:54] *** FIREWALL INFORMATION ***
Firewall is enabled and supported by kernel.
For more information: https://postmarketos.org/firewall
$ pmbootstrap config device asus-flo (or anything else with a kernel w/o pmb:kconfigcheck-nftables)
$ yes 1 | pmbootstrap install --no-firewall
...
<no warning about firewall being disabled>
...
Edited by Administrator