From 450d12fada1105348e317327dfeb85d18955bcf1 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 25 Aug 2021 19:24:42 +0200 Subject: [PATCH] osbuild2/grub: add greenboot option The greenboot option, introduced in osbuild 33, enables the feature of the same name in grub that allows rolling back bad updates automatically. --- internal/osbuild2/grub2_stage.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/osbuild2/grub2_stage.go b/internal/osbuild2/grub2_stage.go index 4f416a706..c2f9762b9 100644 --- a/internal/osbuild2/grub2_stage.go +++ b/internal/osbuild2/grub2_stage.go @@ -17,6 +17,7 @@ type GRUB2StageOptions struct { Legacy string `json:"legacy,omitempty"` UEFI *GRUB2UEFI `json:"uefi,omitempty"` SavedEntry string `json:"saved_entry,omitempty"` + Greenboot bool `json:"greenboot,omitempty"` } type GRUB2UEFI struct {