add first boot set hostname
Copy this script and systemd unit file from meta-openpower.
Change-Id: I98aed26efb2be00f1fe3d703f83fd201f18059db
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/firstboot/first-boot-set-hostname.service b/firstboot/first-boot-set-hostname.service
new file mode 100644
index 0000000..22bb80c
--- /dev/null
+++ b/firstboot/first-boot-set-hostname.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Init BMC Hostname
+ConditionPathExists=!/var/lib/first-boot-set-hostname
+Wants=op-vpd-parser.service
+After=op-vpd-parser.service
+
+[Service]
+ExecStart=/usr/bin/first-boot-set-hostname.sh
+Type=oneshot
+RemainAfterExit=Yes
+
+[Install]
+WantedBy=multi-user.target
+