aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-04-10 20:03:32 +0100
committerMichael Brown <mcb30@ipxe.org>2021-04-10 20:03:32 +0100
commit3ae83222ce611afacd98419c0073aa98fb97f9e7 (patch)
tree3b85dfc24dbc44f4435249d089ebc6b016f812aa
parent78749542fc6d31ad41ecc350dea364e21362f985 (diff)
downloadipxe-3ae83222ce611afacd98419c0073aa98fb97f9e7.zip
ipxe-3ae83222ce611afacd98419c0073aa98fb97f9e7.tar.gz
ipxe-3ae83222ce611afacd98419c0073aa98fb97f9e7.tar.bz2
[cloud] Enable "poweroff" command in cloud images
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/config/cloud/general.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/cloud/general.h b/src/config/cloud/general.h
index 38799fd..fc88116 100644
--- a/src/config/cloud/general.h
+++ b/src/config/cloud/general.h
@@ -6,3 +6,8 @@
* Google Compute Engine metadata server.
*/
#define HTTP_HACK_GCE
+
+/* Allow scripts to handle errors by powering down the VM to avoid
+ * incurring unnecessary costs.
+ */
+#define POWEROFF_CMD