[elbe-devel] [PATCH 10/12] elbepack: init: add primary key to initvm keyring
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Nov 18 15:45:27 CET 2024
From: Stefan Kempf <stefan at kempfsn.de>
[thomas: rebase, align with project conventions]
Signed-off-by: Stefan Kempf <stefan at kempfsn.de>
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/init/__init__.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/elbepack/init/__init__.py b/elbepack/init/__init__.py
index 33e44f25587a4387044ff971837913ff6e73b8dc..0f946b2149096e3af90c4a148200297db4a3c545 100644
--- a/elbepack/init/__init__.py
+++ b/elbepack/init/__init__.py
@@ -120,6 +120,8 @@ def create_initvm(name, xmlfile, directory, *,
os.path.join(out_path, 'source.xml'))
keys = []
+ if xml.has('initvm/mirror/primary_key'):
+ keys.append(xml.text('initvm/mirror/primary_key'))
for key in xml.all('.//initvm/mirror/url-list/url/raw-key'):
keys.append(key.et.text)
--
2.47.0
More information about the elbe-devel
mailing list