systemd/cpi.service: add missing Requires=sysinit.target

`After=sysinit.target` configures only the order but not that the
systemd unit is required and must be activated. Therefore add the
missing `Requires=sysinit.target`. It probably does not fix anything
because sysinit.target should always be activated anyway but it's
cleaner to have it. See
https://www.freedesktop.org/software/systemd/man/systemd.unit.html for
details.

Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2023-07-27 12:31:10 +02:00
committed by Jan Höppner
parent bbe92b9cd3
commit 454a8d9d7b

View File

@@ -13,6 +13,7 @@ ConditionPathIsReadWrite=/sys/firmware/cpi
Conflicts=shutdown.target
DefaultDependencies=no
Description=Apply Control Program Identification (CPI)
Requires=sysinit.target
[Service]
Type=oneshot