From 7a177378594b71f2b6bb204a50557865db887122 Mon Sep 17 00:00:00 2001 From: Vasilito Date: Tue, 21 Apr 2026 16:15:16 +0100 Subject: [PATCH] Split shared GRUB policy into a common fragment Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- config/redbear-full-grub.toml | 11 +---------- config/redbear-grub.toml | 11 +++++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 config/redbear-grub.toml diff --git a/config/redbear-full-grub.toml b/config/redbear-full-grub.toml index c8befa64..b7ff93cf 100644 --- a/config/redbear-full-grub.toml +++ b/config/redbear-full-grub.toml @@ -7,13 +7,4 @@ # GRUB presents a menu and chainloads the Redox bootloader. # Requires: efi_partition_size >= 8 (16 recommended for GRUB + Redox bootloader + margin) -include = ["redbear-full.toml"] - -[general] -bootloader = "grub" -efi_partition_size = 16 - -# GRUB recipe must be built before the installer runs. -# Including it here ensures `make all` builds it as part of the normal package set. -[packages] -grub = {} +include = ["redbear-full.toml", "redbear-grub.toml"] diff --git a/config/redbear-grub.toml b/config/redbear-grub.toml new file mode 100644 index 00000000..f9ed0d48 --- /dev/null +++ b/config/redbear-grub.toml @@ -0,0 +1,11 @@ +# Red Bear OS shared GRUB policy fragment +# Use with any redbear-* profile to make GRUB first-class in installer flows. + +[general] +bootloader = "grub" +# Keep ESP large enough for GRUB EFI image + Red Bear bootloader + future growth. +efi_partition_size = 16 + +[packages] +# Ensure GRUB artifacts are present for installer-native chainload layout. +grub = {}