]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[cloud] Enable "poweroff" command in cloud images
authorMichael Brown <mcb30@ipxe.org>
Sat, 10 Apr 2021 19:03:32 +0000 (20:03 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 10 Apr 2021 19:03:32 +0000 (20:03 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/cloud/general.h

index 38799fd8e2243973ec7aceaf2e59dc9039368702..fc881163a2242bd483a527df780544b3bd6fcd22 100644 (file)
@@ -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