summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* sd-event: add a single implementation of an event source that runs on clock ↵Lennart Poettering2022-03-187-36/+49
| | | | | | | | | | changes We basically had the same code in three places. Let's unify it in a common helper function. event_add_time_change() might be something we should add to the official sd-event API sooner or later, given its general usefulness.
* timesyncd: move stuff that is not about setting the clock out of ↵Lennart Poettering2022-03-181-8/+7
| | | | | | | | | | | manager_adjust_clock() Let's make sure manager_adjust_clock() is purely about setting the clock, and nothing else. Let's clean up logging this way. manager_adjust_clock() now won#t log about errors, but the caller can safely do that, and do with the right log message string.
* timesyncd: use CMSG_FIND_DATA() macro where appropriateLennart Poettering2022-03-181-15/+2
|
* timesyncd: merge some variable declarationsLennart Poettering2022-03-182-7/+3
|
* timesyncd: rebreak some commentsLennart Poettering2022-03-181-11/+6
|
* timesyncd: add comment what bool arg isLennart Poettering2022-03-181-1/+1
|
* timesyncd: make a constant structure actually static/constLennart Poettering2022-03-181-1/+1
|
* timesyncd: cast some function invocations to voidLennart Poettering2022-03-181-4/+5
|
* timesyncd: get rid of unnecessary 'r' assignmentsLennart Poettering2022-03-182-4/+2
|
* timesyncd: use structured initialization moreLennart Poettering2022-03-182-29/+41
|
* various: make parse_env_file error handling the same in various placesZbigniew Jędrzejewski-Szmek2022-03-184-19/+9
| | | | | No big reason to do this, except that I was looking at all call sites and it's nicer if the same style is used accross the codebase.
* boot: Draw unicode separator line for status messagesJan Janssen2022-03-181-25/+45
|
* Merge pull request #22519 from poettering/boot-order-title-revertZbigniew Jędrzejewski-Szmek2022-03-189-71/+257
|\ | | | | sd-boot: rework boot entry sorting
| * test: add test that verifies correct order of boot entriesLennart Poettering2022-03-182-0/+98
| |
| * kernel-install: automatically generate "sort-key" fieldLennart Poettering2022-03-181-0/+4
| | | | | | | | Let's order by IMAGE_ID=/ID= by default.
| * sd-boot: add comments highlighting type 1 vs. type 2Lennart Poettering2022-03-181-0/+4
| |
| * sd-boot: make use of new "sort-key" boot loader spec fieldLennart Poettering2022-03-186-60/+150
| |
| * Revert "boot: Change boot entry sorting"Lennart Poettering2022-03-181-29/+19
| | | | | | | | This reverts commit 9818ec8ea56e14902ac8e548a0f366dbb259f051.
* | strv: use STRV_FOREACH() at two more placesYu Watanabe2022-03-181-7/+4
| |
* | strv: rewrite strv_copy() with cleanup attribute and STRV_FOREACH()Yu Watanabe2022-03-181-12/+12
| |
* | time-util: add macros around timespec_store() that operates on compund ↵Lennart Poettering2022-03-1810-26/+17
| | | | | | | | | | | | | | | | literal allocated timespec struct This way we can convert usec_t to timespec on-the-fly, without a buffer. No actual behaviour change just some shortening of code.
* | meson: sort shared source file list againLennart Poettering2022-03-181-1/+1
| |
* | shared: split out ESP/XBOOTLDR search stuff from bootspec.cLennart Poettering2022-03-187-718/+728
|/ | | | | | | | The code is quite different from the rest of bootspec.c, with different deps and stuff. There's even a /***/ line to separate the two parts. Given how large the file already is, let#s just split it into two. No code changes, just some splitting out.
* Merge pull request #22784 from poettering/bootctl-fixletsLennart Poettering2022-03-182-4/+6
|\ | | | | Trivial bootctl/kernel-install fixlets
| * bootctl: add comment, explaining when verb_install() is calledLennart Poettering2022-03-181-0/+2
| |
| * bootctl: use faccessat() moreLennart Poettering2022-03-181-2/+2
| |
| * bootctl: fix typoLennart Poettering2022-03-181-1/+1
| |
| * kernel-install: drop spurious double empty lineLennart Poettering2022-03-181-1/+0
| |
| * kernel-install: make clear which variables are supposed to be placed in ↵Lennart Poettering2022-03-181-0/+1
| | | | | | | | install.conf in a comment
* | systemctl: fix operations on relative pathsZbigniew Jędrzejewski-Szmek2022-03-181-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | We should treat ./some.service and $PWD/some.service as equivalent. But we'd try to send the relative paths over dbus, which can't work well: $ sudo systemctl enable ./test2.service Failed to look up unit file state: Invalid argument $ sudo systemctl enable $PWD/test2.service Created symlink /etc/systemd/system/multi-user.target.wants/test2.service → /home/zbyszek/src/systemd/test2.service. Created symlink /etc/systemd/system/test2.service → /home/zbyszek/src/systemd/test2.service. Now both are equivalent.
* | shared/install-printf: drop now-unused install_path_printf()Zbigniew Jędrzejewski-Szmek2022-03-182-10/+3
| |
* | shared/install: do not print aliases longer than UNIT_NAME_MAXZbigniew Jędrzejewski-Szmek2022-03-181-1/+1
| | | | | | | | | | | | 065364920281e1cf59cab989e17aff21790505c4 did the conversion to install_path_printf(). But IIUC, here we are just looking at a unit file name, not the full path.
* | basic/env-file: inline one variable declarationZbigniew Jędrzejewski-Szmek2022-03-181-2/+1
| |
* | systemctl: remove unused parameterZbigniew Jędrzejewski-Szmek2022-03-181-3/+3
| |
* | systemctl: drop left-over parensZbigniew Jędrzejewski-Szmek2022-03-181-2/+2
| |
* | shared/install: adjust comment formattingZbigniew Jędrzejewski-Szmek2022-03-181-12/+8
| |
* | tree-wide: use strv_contains() in more placesZbigniew Jędrzejewski-Szmek2022-03-188-11/+11
| |
* | shared/install: drop unnecessary castsZbigniew Jędrzejewski-Szmek2022-03-181-6/+5
| | | | | | | | The compiler coerces to bool for us, no need to do it explicitly.
* | shared/install: drop unnecessary parenthesesZbigniew Jędrzejewski-Szmek2022-03-181-2/+1
| |
* | shared/install: consistently use 'lp' as the name for the LookupPaths instanceZbigniew Jędrzejewski-Szmek2022-03-181-215/+212
| | | | | | | | | | | | | | | | | | | | | | Most of the codebase does this. Here we were using 'p' or 'paths' instead. Those names are very generic and not good for a "global-like" object like the LookupPaths instance. And we also have 'path' variable, and it's confusing to have 'path' and 'paths' in the same function that are unrelated. Also pass down LookupPaths* lower in the call stack, in preparation for future changes.
* | core: insist on sandboxing if ExtensionImages/Directories are configuredLuca Boccassi2022-03-181-0/+3
| | | | | | | | Same as other image mounting in the namespace
* | sd-device: shorten code a bitYu Watanabe2022-03-181-14/+4
| |
* | sd-device-enumerator: fix typo: contolC -> controlCYu Watanabe2022-03-181-8/+5
| | | | | | | | Also shorten code a bit.
* | sort-util: add missing parensYu Watanabe2022-03-181-6/+6
|/ | | | | | | With this, we can call e.g. ``` typesafe_qsort(buf + m, n - m, comp); ```
* Merge pull request #22754 from mrc0mmand/creds_dir_specifierLennart Poettering2022-03-182-1/+18
|\ | | | | core: add %d specifier for the $CREDENTIALS_DIRECTORY
| * core: add %d specifier for the $CREDENTIALS_DIRECTORYFrantisek Sumsal2022-03-172-0/+17
| | | | | | | | Resolves: #22549
| * core: drop an unnecessary initializationFrantisek Sumsal2022-03-171-1/+1
| |
* | tree-wide: fix duplicated wordsMichael Biebl2022-03-187-8/+8
| | | | | | | | | | | | | | the the in in not not we we
* | Merge pull request #22752 from yuwata/udev-ctrl-manage-sender-pidsYu Watanabe2022-03-184-76/+61
|\ \ | | | | | | udev: enable Delegate=
| * | udev: run the main process, workers, and spawned commands in /udev subcgroupYu Watanabe2022-03-171-18/+58
| | | | | | | | | | | | | | | | | | | | | | | | And enable cgroup delegation for udevd. Then, processes invoked through ExecReload= are assigned .control subcgroup, and they are not killed by cg_kill(). Fixes #16867 and #22686.