summaryrefslogtreecommitdiff
path: root/meta-openpower/recipes-phosphor/network/first-boot-set-hostname/first-boot-set-hostname.service
diff options
context:
space:
mode:
authorAlexander Filippov <a.filippov@yadro.com>2019-10-18 15:10:30 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-10-21 15:09:45 +0300
commit2e78e09b2b0888d03ea2ed5e30f56c3b66545fa8 (patch)
treea0e89fb414cadb9f6db838032dc1f88242d0901b /meta-openpower/recipes-phosphor/network/first-boot-set-hostname/first-boot-set-hostname.service
parent11afa3b7f379bd5da37ab755ebf140f8aa724ef2 (diff)
downloadopenbmc-2e78e09b2b0888d03ea2ed5e30f56c3b66545fa8.tar.xz
first-boot-set-*: Use ConditionPathExists
Replaces the calls of `systemctl disable` with `ConditionPathExists=' in the systemd units files. It will allow us to distinguish an admin created state and a runtime created state. (From meta-openpower rev: 4b5603b4426442973f29392ee4d0955f48680fac) Change-Id: I1d187662576dea93550d21cf7031fbc663610fe7 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-openpower/recipes-phosphor/network/first-boot-set-hostname/first-boot-set-hostname.service')
-rw-r--r--meta-openpower/recipes-phosphor/network/first-boot-set-hostname/first-boot-set-hostname.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-openpower/recipes-phosphor/network/first-boot-set-hostname/first-boot-set-hostname.service b/meta-openpower/recipes-phosphor/network/first-boot-set-hostname/first-boot-set-hostname.service
index e58a04629..22bb80c10 100644
--- a/meta-openpower/recipes-phosphor/network/first-boot-set-hostname/first-boot-set-hostname.service
+++ b/meta-openpower/recipes-phosphor/network/first-boot-set-hostname/first-boot-set-hostname.service
@@ -1,5 +1,6 @@
[Unit]
Description=Init BMC Hostname
+ConditionPathExists=!/var/lib/first-boot-set-hostname
Wants=op-vpd-parser.service
After=op-vpd-parser.service