Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sd-event: add a single implementation of an event source that runs on clock ↵ | Lennart Poettering | 2022-03-18 | 7 | -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 Poettering | 2022-03-18 | 1 | -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 appropriate | Lennart Poettering | 2022-03-18 | 1 | -15/+2 |
| | |||||
* | timesyncd: merge some variable declarations | Lennart Poettering | 2022-03-18 | 2 | -7/+3 |
| | |||||
* | timesyncd: rebreak some comments | Lennart Poettering | 2022-03-18 | 1 | -11/+6 |
| | |||||
* | timesyncd: add comment what bool arg is | Lennart Poettering | 2022-03-18 | 1 | -1/+1 |
| | |||||
* | timesyncd: make a constant structure actually static/const | Lennart Poettering | 2022-03-18 | 1 | -1/+1 |
| | |||||
* | timesyncd: cast some function invocations to void | Lennart Poettering | 2022-03-18 | 1 | -4/+5 |
| | |||||
* | timesyncd: get rid of unnecessary 'r' assignments | Lennart Poettering | 2022-03-18 | 2 | -4/+2 |
| | |||||
* | timesyncd: use structured initialization more | Lennart Poettering | 2022-03-18 | 2 | -29/+41 |
| | |||||
* | various: make parse_env_file error handling the same in various places | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 4 | -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 messages | Jan Janssen | 2022-03-18 | 1 | -25/+45 |
| | |||||
* | Merge pull request #22519 from poettering/boot-order-title-revert | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 9 | -71/+257 |
|\ | | | | | sd-boot: rework boot entry sorting | ||||
| * | test: add test that verifies correct order of boot entries | Lennart Poettering | 2022-03-18 | 2 | -0/+98 |
| | | |||||
| * | kernel-install: automatically generate "sort-key" field | Lennart Poettering | 2022-03-18 | 1 | -0/+4 |
| | | | | | | | | Let's order by IMAGE_ID=/ID= by default. | ||||
| * | sd-boot: add comments highlighting type 1 vs. type 2 | Lennart Poettering | 2022-03-18 | 1 | -0/+4 |
| | | |||||
| * | sd-boot: make use of new "sort-key" boot loader spec field | Lennart Poettering | 2022-03-18 | 6 | -60/+150 |
| | | |||||
| * | Revert "boot: Change boot entry sorting" | Lennart Poettering | 2022-03-18 | 1 | -29/+19 |
| | | | | | | | | This reverts commit 9818ec8ea56e14902ac8e548a0f366dbb259f051. | ||||
* | | strv: use STRV_FOREACH() at two more places | Yu Watanabe | 2022-03-18 | 1 | -7/+4 |
| | | |||||
* | | strv: rewrite strv_copy() with cleanup attribute and STRV_FOREACH() | Yu Watanabe | 2022-03-18 | 1 | -12/+12 |
| | | |||||
* | | time-util: add macros around timespec_store() that operates on compund ↵ | Lennart Poettering | 2022-03-18 | 10 | -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 again | Lennart Poettering | 2022-03-18 | 1 | -1/+1 |
| | | |||||
* | | shared: split out ESP/XBOOTLDR search stuff from bootspec.c | Lennart Poettering | 2022-03-18 | 7 | -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-fixlets | Lennart Poettering | 2022-03-18 | 2 | -4/+6 |
|\ | | | | | Trivial bootctl/kernel-install fixlets | ||||
| * | bootctl: add comment, explaining when verb_install() is called | Lennart Poettering | 2022-03-18 | 1 | -0/+2 |
| | | |||||
| * | bootctl: use faccessat() more | Lennart Poettering | 2022-03-18 | 1 | -2/+2 |
| | | |||||
| * | bootctl: fix typo | Lennart Poettering | 2022-03-18 | 1 | -1/+1 |
| | | |||||
| * | kernel-install: drop spurious double empty line | Lennart Poettering | 2022-03-18 | 1 | -1/+0 |
| | | |||||
| * | kernel-install: make clear which variables are supposed to be placed in ↵ | Lennart Poettering | 2022-03-18 | 1 | -0/+1 |
| | | | | | | | | install.conf in a comment | ||||
* | | systemctl: fix operations on relative paths | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -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-Szmek | 2022-03-18 | 2 | -10/+3 |
| | | |||||
* | | shared/install: do not print aliases longer than UNIT_NAME_MAX | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -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 declaration | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -2/+1 |
| | | |||||
* | | systemctl: remove unused parameter | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -3/+3 |
| | | |||||
* | | systemctl: drop left-over parens | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -2/+2 |
| | | |||||
* | | shared/install: adjust comment formatting | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -12/+8 |
| | | |||||
* | | tree-wide: use strv_contains() in more places | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 8 | -11/+11 |
| | | |||||
* | | shared/install: drop unnecessary casts | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -6/+5 |
| | | | | | | | | The compiler coerces to bool for us, no need to do it explicitly. | ||||
* | | shared/install: drop unnecessary parentheses | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -2/+1 |
| | | |||||
* | | shared/install: consistently use 'lp' as the name for the LookupPaths instance | Zbigniew Jędrzejewski-Szmek | 2022-03-18 | 1 | -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 configured | Luca Boccassi | 2022-03-18 | 1 | -0/+3 |
| | | | | | | | | Same as other image mounting in the namespace | ||||
* | | sd-device: shorten code a bit | Yu Watanabe | 2022-03-18 | 1 | -14/+4 |
| | | |||||
* | | sd-device-enumerator: fix typo: contolC -> controlC | Yu Watanabe | 2022-03-18 | 1 | -8/+5 |
| | | | | | | | | Also shorten code a bit. | ||||
* | | sort-util: add missing parens | Yu Watanabe | 2022-03-18 | 1 | -6/+6 |
|/ | | | | | | | With this, we can call e.g. ``` typesafe_qsort(buf + m, n - m, comp); ``` | ||||
* | Merge pull request #22754 from mrc0mmand/creds_dir_specifier | Lennart Poettering | 2022-03-18 | 2 | -1/+18 |
|\ | | | | | core: add %d specifier for the $CREDENTIALS_DIRECTORY | ||||
| * | core: add %d specifier for the $CREDENTIALS_DIRECTORY | Frantisek Sumsal | 2022-03-17 | 2 | -0/+17 |
| | | | | | | | | Resolves: #22549 | ||||
| * | core: drop an unnecessary initialization | Frantisek Sumsal | 2022-03-17 | 1 | -1/+1 |
| | | |||||
* | | tree-wide: fix duplicated words | Michael Biebl | 2022-03-18 | 7 | -8/+8 |
| | | | | | | | | | | | | | | the the in in not not we we | ||||
* | | Merge pull request #22752 from yuwata/udev-ctrl-manage-sender-pids | Yu Watanabe | 2022-03-18 | 4 | -76/+61 |
|\ \ | | | | | | | udev: enable Delegate= | ||||
| * | | udev: run the main process, workers, and spawned commands in /udev subcgroup | Yu Watanabe | 2022-03-17 | 1 | -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. |