]> git.ipfire.org Git - thirdparty/systemd.git/commit
battery-check: rework unit
authorLennart Poettering <lennart@poettering.net>
Fri, 30 Jun 2023 15:09:21 +0000 (17:09 +0200)
committerMike Yuan <me@yhndnzj.com>
Fri, 30 Jun 2023 19:19:16 +0000 (03:19 +0800)
commit95dafd30da88bfeffdc3556dccc113709a13dbae
treee63e4e67a7d7d244c05fc31e6f60c8daa9f9fa5d
parenta5e478b24c7c6bcb210a2fa7d3ccce1d381a19b7
battery-check: rework unit

Let's rename the unit to systemd-battery-check.service. We usually want
to name our own unit files like our tools they wrap, in particular if
they are entirely defined by us (i.e. not just wrappers of foreign
concepts)

While we are at it, also hook this in from initrd.target, and order it
against initrd-root-device.target so that it runs before the root device
is possibly written to (i.e. mounted or fsck'ed).

This is heavily inspired by @aafeijoo-suse's PR #28208, but quite
different ;-)
man/rules/meson.build
man/systemd-battery-check.service.xml [moved from man/initrd-battery-check.service.xml with 83% similarity]
units/meson.build
units/systemd-battery-check.service.in [moved from units/initrd-battery-check.service.in with 83% similarity]