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.
Change-Id: Icde57c942166c40274eddc738ed1ed704eea80a4
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
diff --git a/recipes-phosphor/network/first-boot-set-mac/first-boot-set-mac@.service b/recipes-phosphor/network/first-boot-set-mac/first-boot-set-mac@.service
index 8986efd..3ff5fc1 100644
--- a/recipes-phosphor/network/first-boot-set-mac/first-boot-set-mac@.service
+++ b/recipes-phosphor/network/first-boot-set-mac/first-boot-set-mac@.service
@@ -1,5 +1,6 @@
[Unit]
Description=Init BMC MAC address for NIC %I
+ConditionPathExists=!/var/lib/first-boot-set-mac/%i
Wants=mapper-wait@-xyz-openbmc_project-inventory.service
After=mapper-wait@-xyz-openbmc_project-inventory.service
Wants=mapper-wait@-xyz-openbmc_project-network-%i.service