battery-check: allow to skip by passing systemd.battery-check=0

This commit is contained in:
Yu Watanabe
2023-07-14 15:56:29 +01:00
committed by Luca Boccassi
parent 0bf091a626
commit 7cfef4bb48
4 changed files with 53 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@ Description=Check battery level during early boot
Documentation=man:systemd-battery-check.service(8)
ConditionVirtualization=no
ConditionDirectoryNotEmpty=/sys/class/power_supply/
ConditionKernelCommandLine=!systemd.battery-check=0
AssertPathExists=/etc/initrd-release
DefaultDependencies=no
After=plymouth-start.service