journald: Backport support for --relinquish and --smart-relinquish options
Newer version of systemd-journald support the --relinquish and --smart-relinquish options that enable cleaner handling of mounts at shutdown as journald can be told to close any logging under /var/log/journal so that the /var filesystem can be unmounted should it be on a separate partition. Backport this feature as it enables shutdown without failures, a highly desirable trait in embedded products using systemd. The significant changes from the upstream patches are: * Including `util.h` rather than `errno-util.h`, as the functionality hasn't been split out into a separate header file in our version. https://gitlab.apertis.org/pkg/target/systemd/-/merge_requests/26/diffs#10b30dfe96faf3663f42076bdb4984ccdea14817_0_88 - Adding `ERRNO_IS_ACCEPT_AGAIN` to `varlink.c` (the header file it's expected to be in doesn't exist in our version) https://gitlab.apertis.org/pkg/target/systemd/-/merge_requests/26/diffs#10b30dfe96faf3663f42076bdb4984ccdea14817_0_93 - Working around the changed parameters for `JSON_VARIANT_OBJECT_FOREACH`, adding a call to `json_variant_string()`, based on how upstream was modified when the macro changed https://gitlab.apertis.org/pkg/target/systemd/-/merge_requests/26/diffs#10b30dfe96faf3663f42076bdb4984ccdea14817_0_772 - Expanding the code around `inotify_add_watch()` which got factored out to a function in newer versions of systemd https://gitlab.apertis.org/pkg/target/systemd/-/merge_requests/26/diffs#f4174ac09c9ebd5278fe22a02b6207223a00f92e_0_74 Signed-off-by:Martyn Welch <martyn.welch@collabora.com>
Showing
- debian/patches/apertis/fuzzer-add-varlink-fuzzer.patch 0 additions, 0 deletionsdebian/patches/apertis/fuzzer-add-varlink-fuzzer.patch
- debian/patches/apertis/journalctl-add-new-relinquish-and-smart-relinquish-option.patch 236 additions, 0 deletions...lctl-add-new-relinquish-and-smart-relinquish-option.patch
- debian/patches/apertis/journalctl-port-flush-sync-rotate-to-use-varlink-method-c.patch 273 additions, 0 deletions...lctl-port-flush-sync-rotate-to-use-varlink-method-c.patch
- debian/patches/apertis/journald-add-API-to-move-logging-from-var-to-run-again.patch 197 additions, 0 deletions...rnald-add-API-to-move-logging-from-var-to-run-again.patch
- debian/patches/apertis/journald-also-offer-flush-rotate-sync-as-varlink-method-c.patch 236 additions, 0 deletions...ld-also-offer-flush-rotate-sync-as-varlink-method-c.patch
- debian/patches/apertis/shared-add-minimal-varlink-implementation.patch 2650 additions, 0 deletions...s/apertis/shared-add-minimal-varlink-implementation.patch
- debian/patches/apertis/tests-add-varlink-test.patch 272 additions, 0 deletionsdebian/patches/apertis/tests-add-varlink-test.patch
- debian/patches/apertis/units-automatically-revert-to-run-logging-on-shutdown-if-.patch 24 additions, 0 deletions...automatically-revert-to-run-logging-on-shutdown-if-.patch
- debian/patches/series 8 additions, 0 deletionsdebian/patches/series
File added
This diff is collapsed.
Please register or sign in to comment