summaryrefslogtreecommitdiffstats
path: root/.github (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-04-29coredumpctl: add --file/--root/--image to bash completionLuca Boccassi1-3/+3
2023-04-29coredumpctl: fix bash completion matchingLuca Boccassi1-3/+3
When multi-word matching string is quoted, __contains_word compares it as a whole to the passed option, so it doesn't work.
2023-04-29test: make sure the test units have a `test-` prefixFrantisek Sumsal1-3/+3
So when collecting coverage the test-.service dropin works as expected. Follow-up to 969f5f3cea.
2023-04-29test: match all messages with the FILE fieldFrantisek Sumsal1-4/+4
As the systemd-pstore process is quite short lived, it might sometimes lack the necessary metadata to make matching against a unit or a syslog tag work. Since we already use a cursor file to make the matching window small as possible, let's just drop the unit match completely and hope for the best. Resolves: #27453
2023-04-29missing_fs: also define struct file_clone_rangeYu Watanabe1-0/+6
Follow-up for b640e274a7c363a2b6394c9dce5671d9404d2e2a. Addresses https://github.com/systemd/systemd/commit/b640e274a7c363a2b6394c9dce5671d9404d2e2a#r110996661.
2023-04-29test: add tests for "systemctl stop" vs triggering by path unitYu Watanabe4-0/+54
2023-04-29test: create temporary units under /runYu Watanabe1-4/+4
2023-04-29core/path: do not enqueue new job in .trigger_notify callbackYu Watanabe2-5/+65
Otherwise, 1. X.path triggered X.service, and the service has waiting start job, 2. systemctl stop X.service 3. the waiting start job is cancelled to install new stop job, 4. path_trigger_notify() is called, and may reinstall new start job, 5. the stop job cannot be installed, and triggeres assertion. So, instead, let's add a defer event source, then enqueue the new start job after the stop (or any other type) job finished. Fixes https://github.com/systemd/systemd/issues/24577#issuecomment-1522628906.
2023-04-29core/path: align tableYu Watanabe1-2/+2
2023-04-29pid1: unify implemenation of /run/ disk space safety check a bitLennart Poettering1-16/+42
reload/reexec currently used a separate implementation of the /run/ disk space check, different from the one used for switch-root, even though the code is mostly the same. The one difference is that the former checks are authoritative, the latter are just informational (that's because refusing a reload/reexec is relatively benign, but refusing a switch-root quite troublesome, since this code is entered when it's already "too late" to turn turn back, i.e. when the preparatory transaction to initiate the switch root are already fully executed. Let's share some code, and unify codepaths. (This is preparation for later addition of a "userspace reboot" concept) No change in behaviour, just refactoring.
2023-04-29core/systemctl: when switching root default to /sysroot/Lennart Poettering5-29/+41
We hardcode the path the initrd uses to prepare the final mount point at so many places, let's also imply it in "systemctl switch-root" if not specified. This adds the fallback both to systemctl and to PID 1 (this is because both to — different – checks on the path).
2023-04-28libsystemd: Add missing memory pressure functions to public symbolsDaan De Meyer1-0/+4
2023-04-28systemctl: rework 'if' to 'switch' statementLennart Poettering1-11/+17
2023-04-28copy: shortcut reflink_range() to reflink() in some casesLennart Poettering1-0/+6
2023-04-28copy: don't call clone ioctls twiceLennart Poettering1-9/+5
The btrfs name and the generic name have the same values, hence there's no point in bothering with the former.