]> git.ipfire.org Git - thirdparty/systemd.git/commit
network-generator: ip: do not fail on ntp value
authorSebastian Gross <sgross@emlix.com>
Fri, 26 Sep 2025 09:14:30 +0000 (11:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Oct 2025 08:36:48 +0000 (10:36 +0200)
commit9face7bb648adf5e1fe99358b0f2ab46dfba80d5
treeccf09233d4b59faf3745f2ace3cd28a1beb8f20e
parent2cd1762a1f87096226a66a67e101a6a40295a21c
network-generator: ip: do not fail on ntp value

linux https://www.kernel.org/doc/html/latest/admin-guide/nfs/nfsroot.html
states `ntp0-ip` as parameter to `ip=` command line.

Until now systemd-network-generator would fail if ntp was provided with
-EINVAL due to trailing arguments.

Stay in line with kernel doc and handle ntp value properly.

(cherry picked from commit 582a1e187701b02ab3ed948dc452f1387848c788)
src/network/generator/network-generator.c
src/network/generator/network-generator.h
src/network/generator/test-network-generator.c