public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pungi] f45: Backport patch 1927 to fix treeinfo generation with imagebuilder
@ 2026-11-04 23:00 Adam Williamson
  0 siblings, 0 replies; only message in thread
From: Adam Williamson @ 2026-11-04 23:00 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/pungi
Branch : f45
Commit : 3c357c8740486d58f9d9e69503b434d75519fc11
Author : Adam Williamson <adamwill@fedoraproject.org>
Date   : 2026-11-04T15:58:33-07:00
Stats  : +503/-1 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/pungi/c/3c357c8740486d58f9d9e69503b434d75519fc11?branch=f45

Log:
Backport patch 1927 to fix treeinfo generation with imagebuilder

---
diff --git a/0001-many-fix-.treeinfo-handoff.patch b/0001-many-fix-.treeinfo-handoff.patch
new file mode 100644
index 0000000..3ad54ab
--- /dev/null
+++ b/0001-many-fix-.treeinfo-handoff.patch
@@ -0,0 +1,196 @@
+From f815b15c216e626cdb9c5379365f666d046f4447 Mon Sep 17 00:00:00 2001
+From: Simon de Vlieger <cmdr@supakeen.com>
+Date: Wed, 4 Nov 2026 08:05:27 +0100
+Subject: [PATCH 1/2] many: fix `.treeinfo` handoff
+
+The hand-off of `.treeinfo` between a `BootISO` phase and later phases
+was wrong. `write_tree_info()` looked in a place that is/was only
+written by `buildinstall` through `lorax` instead of the place where
+`.treeinfo` is written.
+
+Also fix up the fields in the minimal fallback `.treeinfo` that gets
+used in cases where no separate `.treeinfo` is available; `productmd`
+expects additional fields. Since in this commit it now actually gets
+found and it does get validated.
+
+Also: tests.
+
+Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
+---
+ pungi/metadata.py            | 14 +++---
+ pungi/phases/boot_iso.py     |  9 ++--
+ tests/test_boot_iso_phase.py | 89 ++++++++++++++++++++++++++++++++++++
+ 3 files changed, 102 insertions(+), 10 deletions(-)
+
+diff --git a/pungi/metadata.py b/pungi/metadata.py
+index 3c74ac98..6848e34a 100644
+--- a/pungi/metadata.py
++++ b/pungi/metadata.py
+@@ -457,12 +457,14 @@ def write_tree_info(compose, arch, variant, timestamp=None, bi=None):
+ 
+         # clone all but 'general' sections from buildinstall .treeinfo
+ 
+-        bi_dir = compose.paths.work.buildinstall_dir(arch)
+-        if compose.conf.get("buildinstall_method") == "lorax":
+-            # The .treeinfo file produced by lorax is nested in variant
+-            # subdirectory. Legacy buildinstall runs once per arch, so there is
+-            # only one file.
+-            bi_dir = os.path.join(bi_dir, variant.uid)
++        # Lorax and BootIso produce metadata per variant. Legacy buildinstall
++        # runs once per arch, so there is only one file.
++        per_variant = compose.conf.get(
++            "buildinstall_method"
++        ) == "lorax" or compose.conf.get("boot_iso_method")
++        bi_dir = compose.paths.work.buildinstall_dir(
++            arch, variant=variant if per_variant else None
++        )
+         bi_treeinfo = os.path.join(bi_dir, ".treeinfo")
+ 
+         if os.path.exists(bi_treeinfo):
+diff --git a/pungi/phases/boot_iso.py b/pungi/phases/boot_iso.py
+index d45c3beb..6615df1b 100644
+--- a/pungi/phases/boot_iso.py
++++ b/pungi/phases/boot_iso.py
+@@ -230,8 +230,7 @@ class RunBootIsoThread(WorkerThread):
+         look for it (paths.work.buildinstall_dir) so those consumers
+         work without modification. Tries to extract .treeinfo from the
+         ISO first; falls back to generating a minimal one."""
+-        buildinstall_dir = compose.paths.work.buildinstall_dir(arch)
+-        variant_dir = os.path.join(buildinstall_dir, variant.uid)
++        variant_dir = compose.paths.work.buildinstall_dir(arch, variant=variant)
+         util.makedirs(variant_dir)
+ 
+         treeinfo_path = os.path.join(variant_dir, ".treeinfo")
+@@ -256,13 +255,15 @@ class RunBootIsoThread(WorkerThread):
+             except RuntimeError:
+                 pass
+ 
+-            self._generate_minimal_treeinfo(treeinfo_path, variant, arch)
++            self._generate_minimal_treeinfo(compose, treeinfo_path, variant, arch)
+ 
+-    def _generate_minimal_treeinfo(self, path, variant, arch):
++    def _generate_minimal_treeinfo(self, compose, path, variant, arch):
+         ti = configparser.ConfigParser()
+         ti.add_section("general")
+         ti.set("general", "arch", arch)
+         ti.set("general", "family", variant.uid)
++        ti.set("general", "version", compose.conf["release_version"])
++        ti.set("general", "variant", variant.id.replace("-", ""))
+         ti.add_section("images-%s" % arch)
+         ti.set("images-%s" % arch, "boot.iso", "images/boot.iso")
+         with open(path, "w") as f:
+diff --git a/tests/test_boot_iso_phase.py b/tests/test_boot_iso_phase.py
+index 17910d4e..23ee9c56 100644
+--- a/tests/test_boot_iso_phase.py
++++ b/tests/test_boot_iso_phase.py
+@@ -1,11 +1,16 @@
+ # -*- coding: utf-8 -*-
+ 
+ import os
++import hashlib
++import shutil
+ 
+ from unittest import mock
+ 
++import productmd.treeinfo
++
+ from tests import helpers
+ from pungi import checks
++from pungi import metadata
+ from pungi.phases.boot_iso import (
+     BootIsoPhase,
+     ImageBuilderBootBackend,
+@@ -982,6 +987,90 @@ class TestRunBootIsoThread(helpers.PungiTestCase):
+         self.assertTrue(os.path.exists(treeinfo_path))
+ 
+ 
++class TestBootIsoTreeinfoHandoff(helpers.PungiTestCase):
++    def test_generated_and_iso_supplied_metadata(self):
++        compose = helpers.DummyCompose(self.topdir, {"boot_iso_method": "imagebuilder"})
++        worker = RunBootIsoThread(mock.Mock())
++        phase = mock.Mock()
++        phase.succeeded.return_value = True
++
++        for name, supplied in (("Server", False), ("Everything", True)):
++            variant = compose.variants[name]
++            os_tree = compose.paths.compose.os_tree("x86_64", variant)
++            boot_iso = os.path.join(os_tree, "images/boot.iso")
++            content = (name + " boot iso").encode()
++            helpers.touch(boot_iso, content=content)
++
++            def extract(cmd):
++                if supplied:
++                    shutil.copyfile(
++                        os.path.join(helpers.FIXTURE_DIR, "original-treeinfo"), cmd[-1]
++                    )
++
++            if supplied:
++                for path in (
++                    "images/efiboot.img",
++                    "images/install.img",
++                    "images/pxeboot/initrd.img",
++                    "images/pxeboot/vmlinuz",
++                ):
++                    helpers.touch(os.path.join(os_tree, path), content=b"image")
++
++            with mock.patch("pungi.phases.boot_iso.util.run", side_effect=extract):
++                worker._write_treeinfo(compose, "source.iso", variant, "x86_64")
++            metadata.write_tree_info(compose, "x86_64", variant, bi=phase)
++
++            ti = productmd.treeinfo.TreeInfo()
++            ti.load(os.path.join(os_tree, ".treeinfo"))
++            self.assertEqual(ti.images.images["x86_64"]["boot.iso"], "images/boot.iso")
++            self.assertEqual(
++                ti.checksums.checksums["images/boot.iso"],
++                ("sha256", hashlib.sha256(content).hexdigest()),
++            )
++            if supplied:
++                self.assertEqual(ti.stage2.mainimage, "images/install.img")
++                self.assertEqual(
++                    ti.images.images["x86_64"]["kernel"], "images/pxeboot/vmlinuz"
++                )
++            else:
++                self.assertFalse(ti.stage2.mainimage)
++
++        # A variant without its own input must not consume another variant's.
++        client = compose.variants["Client"]
++        metadata.write_tree_info(compose, "x86_64", client, bi=phase)
++        ti = productmd.treeinfo.TreeInfo()
++        ti.load(
++            os.path.join(compose.paths.compose.os_tree("x86_64", client), ".treeinfo")
++        )
++        self.assertFalse(ti.images.images)
++
++    def test_buildinstall_metadata_paths(self):
++        phase = mock.Mock()
++        phase.succeeded.return_value = True
++        for method in ("lorax", "buildinstall"):
++            with self.subTest(method=method):
++                compose = helpers.DummyCompose(
++                    os.path.join(self.topdir, method), {"buildinstall_method": method}
++                )
++                variant = compose.variants["Server"]
++                os_tree = compose.paths.compose.os_tree("x86_64", variant)
++                helpers.touch(os.path.join(os_tree, "images/boot.iso"), content=b"iso")
++                work_dir = compose.paths.work.buildinstall_dir(
++                    "x86_64", variant=variant if method == "lorax" else None
++                )
++                os.makedirs(work_dir, exist_ok=True)
++                worker = RunBootIsoThread(mock.Mock())
++                worker._generate_minimal_treeinfo(
++                    compose, os.path.join(work_dir, ".treeinfo"), variant, "x86_64"
++                )
++                metadata.write_tree_info(compose, "x86_64", variant, bi=phase)
++                ti = productmd.treeinfo.TreeInfo()
++                ti.load(os.path.join(os_tree, ".treeinfo"))
++                self.assertEqual(
++                    ti.images.images["x86_64"]["boot.iso"], "images/boot.iso"
++                )
++
++
+ class TestImageBuildBootIsoWiring(helpers.PungiTestCase):
+     @mock.patch("pungi.phases.image_build.ThreadPool")
+     def test_boot_iso_phase_passed_in_queue(self, ThreadPool):
+-- 
+2.56.0
+

diff --git a/0002-many-well-known-paths-in-.treeinfo-fallback.patch b/0002-many-well-known-paths-in-.treeinfo-fallback.patch
new file mode 100644
index 0000000..efbded8
--- /dev/null
+++ b/0002-many-well-known-paths-in-.treeinfo-fallback.patch
@@ -0,0 +1,298 @@
+From 486706e33414acbdfb53f5655fbe51ddf3eae3d7 Mon Sep 17 00:00:00 2001
+From: Simon de Vlieger <cmdr@supakeen.com>
+Date: Wed, 4 Nov 2026 08:33:04 +0100
+Subject: [PATCH 2/2] many: well-known paths in `.treeinfo` fallback
+
+ISOs produced by `image-builder` (or probably `kiwi`) in the future do
+not include a `.treeinfo` file on the ISO. Hence they take the fallback
+path (the previous commit fixes fallback handover).
+
+Let's update the fallback `.treeinfo` file to include the paths to
+various bits and bobs that `virt-install` expects to be there when
+installing from a compose tree.
+
+These paths are set to their well-known paths as they have always been
+produced but can be overridden in configuration in case we want to
+change these paths in the future (probably not?).
+
+We also validate that these paths exist on the ISO itself and treat it
+as an error if they don't.
+
+Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
+---
+ doc/configuration.rst        |  13 +++++
+ pungi/checks.py              |  11 ++++
+ pungi/phases/boot_iso.py     |  29 ++++++++++
+ tests/test_boot_iso_phase.py | 100 ++++++++++++++++++++++++++++++++++-
+ 4 files changed, 152 insertions(+), 1 deletion(-)
+
+diff --git a/doc/configuration.rst b/doc/configuration.rst
+index 3efdde0f..984c67bf 100644
+--- a/doc/configuration.rst
++++ b/doc/configuration.rst
+@@ -753,6 +753,19 @@ Options
+     boot_iso; format: ``[(variant_uid_regex, {arch|*: True})]``. Same schema
+     as ``buildinstall_skip``.
+ 
++**boot_iso_treeinfo_paths**
++    (*list*) -- overrides for installer paths in the fallback metadata generated
++    when the boot ISO has no ``.treeinfo``. This is a variant and architecture
++    mapping: ``[(variant_uid_regex, {arch|*: {key: path}})]``. Paths are
++    relative to the extracted compose tree. Supported keys and defaults are
++    ``kernel`` (``images/pxeboot/vmlinuz``), ``initrd``
++    (``images/pxeboot/initrd.img``), and ``mainimage``
++    (``images/install.img``). All three files must exist. For example::
++
++        boot_iso_treeinfo_paths = [
++            ("^Server$", {"aarch64": {"kernel": "boot/vmlinuz"}}),
++        ]
++
+ **boot_iso_imagebuilder**
+     (*dict*) -- per-variant configuration for the Image Builder backend;
+     format: ``{variant_uid_regex: {...}}``. Only used when
+diff --git a/pungi/checks.py b/pungi/checks.py
+index 84a96752..8dc3e2fb 100644
+--- a/pungi/checks.py
++++ b/pungi/checks.py
+@@ -850,6 +850,17 @@ def make_schema():
+                 "enum": ["imagebuilder", "kiwi"],
+             },
+             "boot_iso_skip": _variant_arch_mapping({"type": "boolean"}),
++            "boot_iso_treeinfo_paths": _variant_arch_mapping(
++                {
++                    "type": "object",
++                    "properties": {
++                        "kernel": {"type": "string", "minLength": 1},
++                        "initrd": {"type": "string", "minLength": 1},
++                        "mainimage": {"type": "string", "minLength": 1},
++                    },
++                    "additionalProperties": False,
++                }
++            ),
+             "boot_iso_imagebuilder": {
+                 "type": "object",
+                 "patternProperties": {
+diff --git a/pungi/phases/boot_iso.py b/pungi/phases/boot_iso.py
+index 6615df1b..453c53e8 100644
+--- a/pungi/phases/boot_iso.py
++++ b/pungi/phases/boot_iso.py
+@@ -258,6 +258,31 @@ class RunBootIsoThread(WorkerThread):
+             self._generate_minimal_treeinfo(compose, treeinfo_path, variant, arch)
+ 
+     def _generate_minimal_treeinfo(self, compose, path, variant, arch):
++        paths = {
++            "kernel": "images/pxeboot/vmlinuz",
++            "initrd": "images/pxeboot/initrd.img",
++            "mainimage": "images/install.img",
++        }
++        for overrides in util.get_arch_variant_data(
++            compose.conf, "boot_iso_treeinfo_paths", arch, variant
++        ):
++            paths.update(overrides)
++
++        os_tree = compose.paths.compose.os_tree(arch, variant)
++        tree_root = os.path.realpath(os_tree)
++        for key, image_path in paths.items():
++            resolved = os.path.realpath(os.path.join(tree_root, image_path))
++            if (
++                os.path.isabs(image_path)
++                or os.path.commonpath([tree_root, resolved]) != tree_root
++                or not os.path.isfile(resolved)
++            ):
++                raise RuntimeError(
++                    "Missing or invalid boot ISO treeinfo %s path for %s.%s: %s "
++                    "(relative to %s; configure boot_iso_treeinfo_paths)"
++                    % (key, variant.uid, arch, image_path, os_tree)
++                )
++
+         ti = configparser.ConfigParser()
+         ti.add_section("general")
+         ti.set("general", "arch", arch)
+@@ -266,6 +291,10 @@ class RunBootIsoThread(WorkerThread):
+         ti.set("general", "variant", variant.id.replace("-", ""))
+         ti.add_section("images-%s" % arch)
+         ti.set("images-%s" % arch, "boot.iso", "images/boot.iso")
++        ti.set("images-%s" % arch, "kernel", paths["kernel"])
++        ti.set("images-%s" % arch, "initrd", paths["initrd"])
++        ti.add_section("stage2")
++        ti.set("stage2", "mainimage", paths["mainimage"])
+         with open(path, "w") as f:
+             ti.write(f)
+ 
+diff --git a/tests/test_boot_iso_phase.py b/tests/test_boot_iso_phase.py
+index 23ee9c56..b03e3f54 100644
+--- a/tests/test_boot_iso_phase.py
++++ b/tests/test_boot_iso_phase.py
+@@ -23,6 +23,15 @@ from pungi.phases import extra_isos
+ from pungi.phases.image_build import ImageBuildPhase
+ 
+ 
++def make_installer_files(os_tree):
++    for path in (
++        "images/install.img",
++        "images/pxeboot/initrd.img",
++        "images/pxeboot/vmlinuz",
++    ):
++        helpers.touch(os.path.join(os_tree, path), content=b"image")
++
++
+ class TestBootIsoConfigValidation(helpers.PungiTestCase):
+     def _config(self, **kwargs):
+         return helpers.load_config(
+@@ -85,6 +94,17 @@ class TestBootIsoConfigValidation(helpers.PungiTestCase):
+         )
+         self.assertValidConfig(conf)
+ 
++    def test_treeinfo_path_overrides(self):
++        conf = self._config(
++            boot_iso_treeinfo_paths=[
++                ("^Server$", {"x86_64": {"kernel": "boot/kernel"}})
++            ]
++        )
++        self.assertValidConfig(conf)
++        conf["boot_iso_treeinfo_paths"][0][1]["x86_64"]["unknown"] = "file"
++        errors, _warnings = checks.validate(conf, offline=True)
++        self.assertTrue(errors)
++
+     def test_buildinstall_method_alone(self):
+         conf = self._config(buildinstall_method="lorax")
+         self.assertValidConfig(conf)
+@@ -801,6 +821,7 @@ class TestRunBootIsoThread(helpers.PungiTestCase):
+         os_tree = compose.paths.compose.os_tree("x86_64", variant)
+         boot_iso_dest = os.path.join(os_tree, "images", "boot.iso")
+         helpers.touch(boot_iso_dest)
++        make_installer_files(os_tree)
+ 
+         with mock.patch("pungi.phases.boot_iso.util.run"):
+             with mock.patch("pungi.phases.boot_iso.Linker"):
+@@ -884,6 +905,7 @@ class TestRunBootIsoThread(helpers.PungiTestCase):
+         os_tree = compose.paths.compose.os_tree("x86_64", variant)
+         boot_iso_dest = os.path.join(os_tree, "images", "boot.iso")
+         helpers.touch(boot_iso_dest)
++        make_installer_files(os_tree)
+ 
+         with mock.patch("pungi.phases.boot_iso.util.run"):
+             with mock.patch("pungi.phases.boot_iso.Linker"):
+@@ -927,6 +949,7 @@ class TestRunBootIsoThread(helpers.PungiTestCase):
+         os_tree = compose.paths.compose.os_tree("x86_64", variant)
+         boot_iso_dest = os.path.join(os_tree, "images", "boot.iso")
+         helpers.touch(boot_iso_dest)
++        make_installer_files(os_tree)
+ 
+         with mock.patch("pungi.phases.boot_iso.util.run") as mock_run:
+             with mock.patch("pungi.phases.boot_iso.Linker"):
+@@ -973,6 +996,7 @@ class TestRunBootIsoThread(helpers.PungiTestCase):
+         os_tree = compose.paths.compose.os_tree("x86_64", variant)
+         boot_iso_dest = os.path.join(os_tree, "images", "boot.iso")
+         helpers.touch(boot_iso_dest)
++        make_installer_files(os_tree)
+ 
+         def fake_run(cmd):
+             if "xorriso" in cmd[0]:
+@@ -1000,6 +1024,7 @@ class TestBootIsoTreeinfoHandoff(helpers.PungiTestCase):
+             boot_iso = os.path.join(os_tree, "images/boot.iso")
+             content = (name + " boot iso").encode()
+             helpers.touch(boot_iso, content=content)
++            make_installer_files(os_tree)
+ 
+             def extract(cmd):
+                 if supplied:
+@@ -1033,7 +1058,31 @@ class TestBootIsoTreeinfoHandoff(helpers.PungiTestCase):
+                     ti.images.images["x86_64"]["kernel"], "images/pxeboot/vmlinuz"
+                 )
+             else:
+-                self.assertFalse(ti.stage2.mainimage)
++                self.assertEqual(ti.stage2.mainimage, "images/install.img")
++                for key, image_path in (
++                    ("kernel", "images/pxeboot/vmlinuz"),
++                    ("initrd", "images/pxeboot/initrd.img"),
++                ):
++                    self.assertEqual(ti.images.images["x86_64"][key], image_path)
++                for image_path in (
++                    "images/pxeboot/vmlinuz",
++                    "images/pxeboot/initrd.img",
++                    "images/install.img",
++                ):
++                    self.assertEqual(
++                        ti.checksums.checksums[image_path],
++                        ("sha256", hashlib.sha256(b"image").hexdigest()),
++                    )
++                dvd_ti = createiso.load_and_tweak_treeinfo(
++                    os.path.join(os_tree, ".treeinfo")
++                )
++                self.assertNotIn("boot.iso", dvd_ti.images.images["x86_64"])
++                self.assertNotIn("images/boot.iso", dvd_ti.checksums.checksums)
++                self.assertEqual(dvd_ti.stage2.mainimage, "images/install.img")
++                self.assertEqual(
++                    dvd_ti.images.images["x86_64"]["kernel"],
++                    "images/pxeboot/vmlinuz",
++                )
+ 
+         # A variant without its own input must not consume another variant's.
+         client = compose.variants["Client"]
+@@ -1044,6 +1093,54 @@ class TestBootIsoTreeinfoHandoff(helpers.PungiTestCase):
+         )
+         self.assertFalse(ti.images.images)
+ 
++    def test_fallback_overrides_and_missing_files(self):
++        compose = helpers.DummyCompose(
++            self.topdir,
++            {
++                "boot_iso_method": "imagebuilder",
++                "boot_iso_treeinfo_paths": [
++                    (".*", {"*": {"kernel": "custom/kernel"}}),
++                    (
++                        "^Server$",
++                        {
++                            "x86_64": {
++                                "initrd": "custom/initrd",
++                                "mainimage": "custom/stage2",
++                            }
++                        },
++                    ),
++                ],
++            },
++        )
++        variant = compose.variants["Server"]
++        os_tree = compose.paths.compose.os_tree("x86_64", variant)
++        worker = RunBootIsoThread(mock.Mock())
++        work_dir = compose.paths.work.buildinstall_dir("x86_64", variant=variant)
++        os.makedirs(work_dir, exist_ok=True)
++        treeinfo_path = os.path.join(work_dir, ".treeinfo")
++
++        with self.assertRaisesRegex(RuntimeError, "kernel.*custom/kernel"):
++            worker._generate_minimal_treeinfo(compose, treeinfo_path, variant, "x86_64")
++        for image_path in ("custom/kernel", "custom/initrd", "custom/stage2"):
++            helpers.touch(os.path.join(os_tree, image_path), content=b"image")
++        helpers.touch(os.path.join(os_tree, "images/boot.iso"), content=b"iso")
++        worker._generate_minimal_treeinfo(compose, treeinfo_path, variant, "x86_64")
++        phase = mock.Mock()
++        phase.succeeded.return_value = True
++        metadata.write_tree_info(compose, "x86_64", variant, bi=phase)
++        ti = productmd.treeinfo.TreeInfo()
++        ti.load(os.path.join(os_tree, ".treeinfo"))
++        self.assertEqual(ti.images.images["x86_64"]["kernel"], "custom/kernel")
++        self.assertEqual(ti.images.images["x86_64"]["initrd"], "custom/initrd")
++        self.assertEqual(ti.stage2.mainimage, "custom/stage2")
++        self.assertIn("custom/kernel", ti.checksums.checksums)
++
++        compose.conf["boot_iso_treeinfo_paths"] = [
++            (".*", {"*": {"kernel": "../outside"}})
++        ]
++        with self.assertRaisesRegex(RuntimeError, "invalid.*kernel.*outside"):
++            worker._generate_minimal_treeinfo(compose, treeinfo_path, variant, "x86_64")
++
+     def test_buildinstall_metadata_paths(self):
+         phase = mock.Mock()
+         phase.succeeded.return_value = True
+@@ -1055,6 +1152,7 @@ class TestBootIsoTreeinfoHandoff(helpers.PungiTestCase):
+                 variant = compose.variants["Server"]
+                 os_tree = compose.paths.compose.os_tree("x86_64", variant)
+                 helpers.touch(os.path.join(os_tree, "images/boot.iso"), content=b"iso")
++                make_installer_files(os_tree)
+                 work_dir = compose.paths.work.buildinstall_dir(
+                     "x86_64", variant=variant if method == "lorax" else None
+                 )
+-- 
+2.56.0
+

diff --git a/pungi.spec b/pungi.spec
index d1de0ae..b674e51 100644
--- a/pungi.spec
+++ b/pungi.spec
@@ -1,12 +1,17 @@
 Name:           pungi
 Version:        4.14.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Distribution compose tool
 
 License:        GPL-2.0-only
 URL:            https://forge.fedoraproject.org/pungi/pungi
 Source0:        https://forge.fedoraproject.org/pungi/pungi/archive/%{name}-%{version}.tar.gz
 Patch:          https://forge.fedoraproject.org/pungi/pungi/pulls/1924.patch
+# https://forge.fedoraproject.org/releng/tickets/issues/13580
+# https://forge.fedoraproject.org/pungi/pungi/pulls/1927
+# Fix.treeinfo generation with imagebuilder
+Patch:          0001-many-fix-.treeinfo-handoff.patch
+Patch:          0002-many-well-known-paths-in-.treeinfo-fallback.patch
 
 BuildRequires:  make
 BuildRequires:  python3-pytest
@@ -135,6 +140,9 @@ gzip _build/man/pungi.1
 %{_bindir}/%{name}-cache-cleanup
 
 %changelog
+* Wed Nov 04 2026 Adam Williamson <adamwill@fedoraproject.org> - 4.14.0-3
+- Backport patch 1927 to fix treeinfo generation with imagebuilder
+
 * Mon Aug 31 2026 Lubomír Sedlář <lsedlar@redhat.com> - 4.14.0-2
 - Backport patch 1924
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-04 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 23:00 [rpms/pungi] f45: Backport patch 1927 to fix treeinfo generation with imagebuilder Adam Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox