diff options
Diffstat (limited to 'meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd')
-rw-r--r-- | meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd/70-op-vpd.rules | 1 | ||||
-rw-r--r-- | meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd/op-vpd-parser.service | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd/70-op-vpd.rules b/meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd/70-op-vpd.rules new file mode 100644 index 000000000..4b86b9186 --- /dev/null +++ b/meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd/70-op-vpd.rules @@ -0,0 +1 @@ +SUBSYSTEM=="i2c", ENV{OF_NAME}=="eeprom", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="op-vpd-parser" diff --git a/meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd/op-vpd-parser.service b/meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd/op-vpd-parser.service new file mode 100644 index 000000000..6eadebf8d --- /dev/null +++ b/meta-openpower/common/recipes-phosphor/vpd/openpower-fru-vpd/op-vpd-parser.service @@ -0,0 +1,12 @@ +[Unit] +Description=Read OpenPOWER-format VPD from EEPROM +ConditionFileNotEmpty={envfiledir}/obmc/inventory +Wants=mapper-wait@-xyz-openbmc_project-inventory.service +After=mapper-wait@-xyz-openbmc_project-inventory.service + +[Service] +Restart=no +Type=oneshot +EnvironmentFile={envfiledir}/obmc/inventory +ExecStart=/usr/bin/env openpower-read-vpd --vpd $EEPROM --fru $FRUS --object $PATHS +SyslogIdentifier=openpower-read-vpd |