diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-05-07 18:54:24 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-05-08 08:18:55 +0200 |
commit | a4f0e0da3573a10bc5404142be8799418760b1d1 (patch) | |
tree | 462c7bad64babd5d51b5b9a509fc5052f4319e44 /src/portable | |
parent | Merge pull request #32684 from YHNdnzj/pr-followups (diff) | |
download | systemd-a4f0e0da3573a10bc5404142be8799418760b1d1.tar.xz systemd-a4f0e0da3573a10bc5404142be8799418760b1d1.zip |
preset-all: continue on errors, report more errors
Firstly, if we encounter an error when iterating over the directory, gather
the error but continue. This is unlikely to happen, but if it happens, then
it doesn't seem very useful to break the preset processing at a random
point. If we can't process a unit — too bad, but since we already might
have processed some units earlier, we might as well try to process the
remaining ones.
Secondly, add missing error codes for units that are in a bad state to the
exclusion list. Those, we report them in the changes list, but consider the
whole operation a success. (-ETXTBSY and -ENOLINK were missing.)
Thirdly, add a message generator for -ENOLINK.
Fixes https://github.com/systemd/systemd/issues/21224.
Diffstat (limited to 'src/portable')
0 files changed, 0 insertions, 0 deletions