units: add one more equivalency of '-' in '_' on kernel cmdline
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Mar 2024 08:11:45 +0000 (09:11 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 19 Mar 2024 13:06:44 +0000 (13:06 +0000)
c0aeff4b999318d4da48328fff0ea93c8c457ace added this in one unit file, but the
same problem occurs here. (There are no other files where this would apply.)
I think we should solve this systematically somehow, but it's not clear how to
do that, so until we have that better solution, let's apply the manual solution
so that our units work as expected.

units/systemd-battery-check.service.in

index 0f826041078a8735550dc8c98382c1e6f34b65e4..ee87118a074b033d80f9d34503cc018d5f56f1b7 100644 (file)
@@ -13,6 +13,7 @@ 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