units: add one more equivalency of '-' in '_' on kernel cmdline

c0aeff4b99 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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-03-19 09:11:45 +01:00 committed by Luca Boccassi
parent db7374e156
commit d1f3cd7aaa

View 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