From 3ae2100d5e7294fe98f2cd3c86b80b23551b98e9 Mon Sep 17 00:00:00 2001 From: Prashanth Sundararaman Date: Mon, 9 Mar 2020 14:13:22 -0400 Subject: [PATCH] systemd/cpi.service: Add sysinit.target dependency to make sure /var is created MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Noticed on RHEL CoreOS that the CPI service failed to start with: "Cannot access lock file: /var/lock/cpictl.lock" This was a timing issue where /var was not created yet and the symlink to /run/lock was not present. Add sysinit.target to fix this. This fix has been tested with RHEL CoreOS. Closes: https://github.com/ibm-s390-tools/s390-tools/pull/82 Signed-off-by: Prashanth Sundararaman Suggested-by: Colin Walters Reviewed-by: Dan Horák Signed-off-by: Jan Höppner --- systemd/cpi.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/cpi.service.in b/systemd/cpi.service.in index 24d5246e..7ce2e7cf 100644 --- a/systemd/cpi.service.in +++ b/systemd/cpi.service.in @@ -10,7 +10,7 @@ Description=Apply Control Program Identification (CPI) DefaultDependencies=no Conflicts=shutdown.target -After=local-fs.target +After=sysinit.target ConditionPathIsReadWrite=/sys/firmware/cpi [Service]