]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysext: Fix config file support with --root=
authorKai Lueke <kailuke@microsoft.com>
Thu, 11 Dec 2025 10:49:20 +0000 (19:49 +0900)
committerKai Lueke <kailuke@microsoft.com>
Fri, 12 Dec 2025 12:50:45 +0000 (21:50 +0900)
commitf351668cbef34852069b32eb82d95b5649f0135d
tree2123e0edc1906a9864f86770a2706fffcf86af88
parent7c0afcdde22d3d94fd23bfd0e473c263aaf54e8a
sysext: Fix config file support with --root=

Config files for --root= weren't picked up as expected because the
--root= flag got parsed after the config file.
Switch the order of config file and CLI flag parsing while letting the
CLI flags overwrite things set by the config files by tracking state
during parsing.
src/sysext/sysext.c
test/units/TEST-50-DISSECT.sysext.sh