bare-metal-setup: Use systemd templates

The host-gpio-monitor systemd service and gbmc-bare-metal-active target
were recently changed to templates. So, those references need to be
updated here. For now, this script assumes there's only one host. It
will need to be updated, if we need this to work on multi-host machines.

Tested:
Set the bare metal flag /var/google/config-package/enable-bm.flag, and
power cycled.
Confirmed bare-metal-setup.service started before
host-gpio-monitor@0.service.
Set /run/bm-drive-cleaning-done-ack.flag
Ran “ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x11”
Confirmed hostlogger@ttyS1.service started when
gbmc-bare-metal-active@0.target started.

presubmit:
https://fusion2.corp.google.com/cfe0fcd7-5e20-3242-a39e-55add2b3b907

Google-Bug-Id: 392972581
Google-Bug-Id: 330355581
Change-Id: I68964123c6487f67407994fea785e585fa296e60
Signed-off-by: John Wedig <johnwedig@google.com>
(cherry picked from commit f7acb2183156f07ab65f5e489555e2908c5962ac)
Platforms-Affected: platform11, platform17, platform5, platform23
2 files changed
tree: 7a2597c3b14ccdd83c693556887eed3482b41ebc
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.