mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
nspawn: don't run nspawn --port=... without libiptc support
We get $ systemd-nspawn --image /dev/loop1 --port 8080:80 -n -b 3 --port= is not supported, compiled without libiptc support. instead of a ping-nc-iptables debugging session
This commit is contained in:
parent
2ddbdcc9c2
commit
1c1ea21735
@ -977,6 +977,13 @@ static int verify_arguments(void) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
#ifndef HAVE_LIBIPTC
|
||||
if (arg_expose_ports) {
|
||||
log_error("--port= is not supported, compiled without libiptc support.");
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (arg_start_mode == START_BOOT && arg_kill_signal <= 0)
|
||||
arg_kill_signal = SIGRTMIN+3;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user