summaryrefslogtreecommitdiffstats
path: root/src/battery-check (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: use "_" rather than "-" as separator in kernel cmdline optionsLennart Poettering2024-02-281-2/+2
| | | | | | | | | | | Most of our kernel cmdline options use underscores as word separators in kernel cmdline options, but there were some exceptions. Let's fix those, and also use underscores. Since our /proc/cmdline parsers don't distinguish between the two characters anyway this should not break anything, but makes sure our own codebase (and in particular docs and log messages) are internally consistent.
* util-lib: share plymouth client codeLennart Poettering2023-11-131-20/+5
| | | | | | Let's add a new "plymouth-util.c" module with helpers for talking to plymouth. We so far had three places for this, let's unify the code doing this a bit.
* io-util: introduce loop_write_full that takes a timeoutMike Yuan2023-09-071-1/+1
| | | | | Also drop do_poll as the use case is covered by timeout.
* Journal: Add message IDs for emergency-level log messagesOMOJOLA JOSHUA2023-09-011-3/+8
|
* battery-check: use proc_cmdline_get_boolMike Yuan2023-08-131-19/+2
|
* meson: move declarations of delta, escape, notify, creds, and battery-checkYu Watanabe2023-08-011-0/+9
|
* battery-check: allow to skip by passing systemd.battery-check=0Yu Watanabe2023-07-141-0/+30
|
* battery-check: several follow-upsYu Watanabe2023-06-291-53/+76
| | | | | | | | | | | | | | | | | | Follow-ups for e3d4148d50909119c4e9327e6ad96d3ca7f4661a. - add reference to initrd-battery-check.service in man page, and move its section from 1 to 8, - add link to man page in help message, - introduce ERRNO_IS_NO_PLYMOUTH(), - propagate error in battery_check_send_plymouth_message(), - rename battery_check_send_plymouth_message() -> plymouth_send_message(), - return earlier when the first battery level check passed to reduce indentation, - fix potential use of invalid fd on battery restored, - do not use emoji for /dev/console, - add simple test (mostly for coverity), etc, etc...
* PID1: detect battery level in initrd and if low refuse continuing to boot, ↵OMOJOLA JOSHUA2023-06-281-0/+157
print message and shut down.