summaryrefslogtreecommitdiff
path: root/meta-google
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2022-02-24 01:21:29 +0300
committerWilliam A. Kennington III <wak@google.com>2022-02-24 20:32:41 +0300
commite661c8902b673cf29c641ce6dd63709dc412c357 (patch)
tree6daa99f684b18ce51a6005b6f2d62ca2020c6a3c /meta-google
parent60ec12dbc13cb828b139de7750cb85c9f1f2b264 (diff)
downloadopenbmc-e661c8902b673cf29c641ce6dd63709dc412c357.tar.xz
meta-google: inplace-gbmc-update: Exit while updating
We don't want to accidentally notify or continue on with the DHCP netboot process until after the updated image is installed. Change-Id: I05504632950566694e9dd60b25bd85c99b588f90 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google')
-rw-r--r--meta-google/recipes-phosphor/flash/inplace-gbmc-update/75-inplace-gbmc-upgrade.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-google/recipes-phosphor/flash/inplace-gbmc-update/75-inplace-gbmc-upgrade.sh b/meta-google/recipes-phosphor/flash/inplace-gbmc-update/75-inplace-gbmc-upgrade.sh
index df4662f6d8..95c4ca5a65 100644
--- a/meta-google/recipes-phosphor/flash/inplace-gbmc-update/75-inplace-gbmc-upgrade.sh
+++ b/meta-google/recipes-phosphor/flash/inplace-gbmc-update/75-inplace-gbmc-upgrade.sh
@@ -36,6 +36,9 @@ gbmc_upgrade_internal() {
systemctl start inplace-gbmc-verify || return
echo 'Rebooting to perform update' >&2
reboot || return
+ # Ensure that we don't "complete" the netboot process until
+ # after the update completes
+ exit 0
}
inplace_gbmc_upgrade=1