Move Jsons, services and rules to VPD repo
This commit moves Jsons, service files and rules to the VPD repo,
and installing it by meson.
Test: Tested the image on simics and a rainier system , booted to
standby succesfully.
Also, I verified all the jsons, rules and service files are in the
appropriate location.
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I538b7159e5226134c3e0d16bbb1686166cd17441
diff --git a/ibm_vpd/wait-vpd-parsers.sh b/ibm_vpd/wait-vpd-parsers.sh
new file mode 100644
index 0000000..90f8b30
--- /dev/null
+++ b/ibm_vpd/wait-vpd-parsers.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+retries=100
+echo "Checking every 2s for active VPD parsers..."
+while [ $retries -ne 0 ]
+do
+ sleep 2
+ systemctl -q is-active ibm-vpd-parser@*.service
+ active=$?
+ if [ $active -ne 0 ]
+ then
+ echo "Done wait for active VPD parsers. Exit success"
+ exit 0
+ fi
+ retries=$((retries - 1))
+ echo "VPD parsers still running. Retries remaining: $retries"
+done
+echo "Exit wait for VPD services to finish with timeout"
+exit 1