1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

units/systemd-battery-check.service: split [Unit] options into groups

This commit is contained in:
Mike Yuan
2025-09-30 16:32:48 +02:00
parent 997717e274
commit e8d5badc5f

View File

@@ -10,14 +10,17 @@
[Unit]
Description=Early Battery Level Check
Documentation=man:systemd-battery-check.service(8)
ConditionVirtualization=no
ConditionDirectoryNotEmpty=/sys/class/power_supply/
ConditionKernelCommandLine=!systemd.battery_check=0
ConditionKernelCommandLine=!systemd.battery-check=0
AssertPathExists=/etc/initrd-release
DefaultDependencies=no
After=plymouth-start.service
Before=initrd-root-device.target systemd-hibernate-resume.service
FailureAction=poweroff-force
[Service]