diff --git a/0001-virtinst-cloudinit-include-empty-meta-data-file.patch b/0001-virtinst-cloudinit-include-empty-meta-data-file.patch new file mode 100644 index 0000000..4d8459a --- /dev/null +++ b/0001-virtinst-cloudinit-include-empty-meta-data-file.patch @@ -0,0 +1,32 @@ +From ea71cf9a8a4161ce6e19eacf5f0d86d40ab74f23 Mon Sep 17 00:00:00 2001 +Message-ID: +From: Pavel Hrdina +Date: Mon, 29 Sep 2025 16:14:35 +0200 +Subject: [PATCH] virtinst: cloudinit: include empty meta-data file + +Refactor creation of cloud-init config files introduced a bug where we +stopped including empty meta-data file. + +Introduced-by: 5b2d0997a1d2d213b17c227169da64e2fa7d09a6 +Fixes: https://github.com/virt-manager/virt-manager/issues/975 +Signed-off-by: Pavel Hrdina +--- + virtinst/install/cloudinit.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/virtinst/install/cloudinit.py b/virtinst/install/cloudinit.py +index 3f565f399..b2378fbfa 100644 +--- a/virtinst/install/cloudinit.py ++++ b/virtinst/install/cloudinit.py +@@ -36,7 +36,7 @@ class _CloudInitConfig: + def _create_file(self): + content = self._content() + +- if not content: ++ if content is None: + return None + + fileobj = tempfile.NamedTemporaryFile( +-- +2.52.0 + diff --git a/virt-manager.spec b/virt-manager.spec index fd1e83b..87e0022 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -9,7 +9,7 @@ Name: virt-manager Version: 5.1.0 -Release: 2%{?dist} +Release: 3%{?dist} %global verrel %{version}-%{release} Summary: Desktop tool for managing virtual machines via libvirt @@ -18,6 +18,7 @@ BuildArch: noarch URL: https://virt-manager.org/ Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz +Patch1: 0001-virtinst-cloudinit-include-empty-meta-data-file.patch Requires: virt-manager-common = %{verrel} Requires: python3-gobject >= 3.31.3 @@ -175,6 +176,9 @@ machine). %changelog +* Wed Jan 07 2026 Pavel Hrdina - 5.1.0.3 +- Fix cloud init + * Fri Sep 19 2025 Python Maint - 5.1.0-2 - Rebuilt for Python 3.14.0rc3 bytecode