099663ff8cadded "support" for -b/-s/-z ARG with a comment of > /* Just to eat away the sysvinit kernel cmdline args without getopt() > * error messages that we'll parse in parse_proc_cmdline_word() or > * ignore. */ And for PID1 those was valid. But when not running as PID1, those options would be parsed as valid but then help() would immediately return -EINVAL: $ build-old/systemd -b; echo $? 1 At the same time, when running as PID1, if we encounter an error, we shouldn't opine about the rest of the command line. So continuing with the loop and the checks after the loop were iffy. Later,cd57038a30made a big refactoring, and the 'break' (i.e. continuation of the loop) was changed to 'return 0', making things even more confusing, since now we'd just silently stop in the middle of the command line if -b/-s/-z were encountered. So be more careful: when running as PID1, stop parsing on error and return from the function. We didn't parse the full command line, so the later checks are not useful. Silently ignore -b/-s/-z. When not running as PID1, explicitly say that -b/-s/-z are not supported, and propogate the error if parsing fails, e.g. with an unknown option.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS, and also repositories with packages built from the latest stable release
