Merge branch 'nofirewall-fix' into 'master'

make nofirewall option work reliable, needs explicit systemd service ordering

Closes #197

See merge request systemrescue/systemrescue-sources!106
This commit is contained in:
Francois Dupoux 2021-05-04 07:21:23 +00:00
commit bc24a9affc
2 changed files with 2 additions and 1 deletions

View file

@ -47,6 +47,7 @@ do
# Option to allow user to disable the firewall
nofirewall)
echo "Found option 'nofirewall' on the boot command line"
# the firewall service(s) must be in the Before-section of sysrescue-initialize.service
systemctl disable --now iptables.service ip6tables.service
;;
esac

View file

@ -1,6 +1,6 @@
[Unit]
Description=SystemRescue Initialization
Before=sshd.service getty-pre.target
Before=sshd.service getty-pre.target iptables.service ip6tables.service
Wants=getty-pre.target
[Service]