[4/4] wic: Deprecate hybrid-boot plugin

Message ID 6107d3b821d9bcd8ba6adbd79ff3632fdc99dd30.1763968559.git.jan.kiszka@siemens.com
State Accepted, archived
Headers show
Series Updates for BeaglePlay board, hybrid-boot plugin deprecation | expand

Commit Message

Jan Kiszka Nov. 24, 2025, 7:15 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This is equally covered by wic's native gpt-hybrid partition type.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 RECIPE-API-CHANGELOG.md                            | 5 +++++
 meta/scripts/lib/wic/plugins/source/hybrid-boot.py | 1 +
 2 files changed, 6 insertions(+)

Patch

diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
index 20183a8d..a9f835e6 100644
--- a/RECIPE-API-CHANGELOG.md
+++ b/RECIPE-API-CHANGELOG.md
@@ -866,3 +866,8 @@  INITRD_IMAGE is "only" deprecated; meaning that it may still be used (but
 build-time warnings will be raised). If both IMAGE_INITRD and INITRD_IMAGE
 are set then the latter will be ignored (a warning noting that both were
 set will be emitted).
+
+### Deprecate hybrid-boot wic plugin
+
+Use wic's gpt-hybrid partition type combined with --mbr for the legacy
+partitions instead.
diff --git a/meta/scripts/lib/wic/plugins/source/hybrid-boot.py b/meta/scripts/lib/wic/plugins/source/hybrid-boot.py
index c73e89e6..faff6439 100644
--- a/meta/scripts/lib/wic/plugins/source/hybrid-boot.py
+++ b/meta/scripts/lib/wic/plugins/source/hybrid-boot.py
@@ -27,6 +27,7 @@  class HybridBoot(SourcePlugin):
     @classmethod
     def do_install_disk(cls, disk, disk_name, creator, workdir, oe_builddir,
                         bootimg_dir, kernel_dir, native_sysroot):
+        logger.warning("hybrid-boot is deprecated, use --ptable gpt-hybrid instead")
         for part in creator.parts:
             if part.active:
                 break