diff options
author | Milosz Wasilewski <milosz.wasilewski@foundries.io> | 2022-11-23 15:55:48 +0000 |
---|---|---|
committer | nareshkamboju <naresh.kamboju@gmail.com> | 2022-11-28 17:53:25 +0530 |
commit | 28628cee3e9b029aab3f81e4af5dffcaae129ecb (patch) | |
tree | c65d42a95008459dd8f52680b1554981a4d9e905 | |
parent | 31d1320d281922150ee345028eef2f292ed7147a (diff) |
automated: linux: Wait for aklite to start in ota-upgrade
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
-rwxr-xr-x | automated/linux/ota-update/verify-update.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/automated/linux/ota-update/verify-update.sh b/automated/linux/ota-update/verify-update.sh index 1e6ecb53..1cbda77b 100755 --- a/automated/linux/ota-update/verify-update.sh +++ b/automated/linux/ota-update/verify-update.sh @@ -50,6 +50,14 @@ done ! check_root && error_msg "You need to be root to run this script." create_out_dir "${OUTPUT}" +# wait for aklite to start +while ! systemctl is-active --quiet aktualizr-lite; do + echo "Waiting for aktualizr-lite to start" + sleep 1 +done +# print ostree status for debug purposes +ostree admin status + SECONDARY_BOOT_VAR_NAME="fiovb.is_secondary_boot" if [ "${UBOOT_VAR_TOOL}" != "fw_printenv" ]; then SECONDARY_BOOT_VAR_NAME="is_secondary_boot" |