From 7c031f95e44f49dcb298168672c943ce62e4884a Mon Sep 17 00:00:00 2001 From: Vasilito Date: Fri, 17 Apr 2026 22:27:12 +0100 Subject: [PATCH] Add BLAKE3 hash to GRUB source, remove redundant chain module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add blake3 checksum for grub-2.12.tar.xz for recipe integrity verification. Remove the chain module from grub-mkimage — the chainloader command is built-in in GRUB 2.12, no separate module needed. Image shrinks from 540 KiB to 512 KiB. Update module table and size estimate in GRUB integration plan. --- local/docs/GRUB-INTEGRATION-PLAN.md | 7 ++++--- local/recipes/core/grub/recipe.toml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/local/docs/GRUB-INTEGRATION-PLAN.md b/local/docs/GRUB-INTEGRATION-PLAN.md index 70876d5b..83590212 100644 --- a/local/docs/GRUB-INTEGRATION-PLAN.md +++ b/local/docs/GRUB-INTEGRATION-PLAN.md @@ -75,7 +75,6 @@ The standalone EFI image includes these modules: | `search` | Search for files/volumes | | `search_fs_uuid` | Search by filesystem UUID | | `search_label` | Search by volume label | -| `chain` | Chainload other bootloaders | | `echo` | Print messages | | `test` | Conditional expressions | | `ls` | List files and devices | @@ -83,6 +82,8 @@ The standalone EFI image includes these modules: | `halt` | Shut down | | `reboot` | Reboot | +Note: `chainloader` is a built-in command in GRUB 2.12 (no separate module needed). + No RedoxFS module is needed — GRUB chainloads the Redox bootloader instead. ## GRUB Configuration @@ -114,9 +115,9 @@ mode with different kernel parameters, once supported). ## ESP Size Requirements -| Component | Measured Size | +| Component | Typical Size | |-----------|--------------| -| GRUB EFI binary (with modules) | 540 KiB | +| GRUB EFI binary (with modules) | ~500 KiB (varies with module list) | | Redox bootloader | 100–200 KiB | | grub.cfg | < 1 KiB | | **Total** | **~1 MiB** | diff --git a/local/recipes/core/grub/recipe.toml b/local/recipes/core/grub/recipe.toml index 601829b4..b1ee400e 100644 --- a/local/recipes/core/grub/recipe.toml +++ b/local/recipes/core/grub/recipe.toml @@ -13,6 +13,7 @@ [source] tar = "https://ftp.gnu.org/gnu/grub/grub-2.12.tar.xz" +blake3 = "13c48453f9becf4a6e49618749dc7cb83a2c4a0d7600eeeadc6c7c2772c0b877" [build] template = "custom" @@ -103,7 +104,6 @@ echo "Creating standalone GRUB EFI image..." search \ search_fs_uuid \ search_label \ - chain \ echo \ test \ ls \