[elbe-devel] [PATCH] elbepack: init: avoid spawning gpg-agent
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Dec 4 15:06:21 CET 2024
These commands do not need the gpg agent.
Starting the agent also has multiple unwanted side-effects:
Like opening files in /dev preventing an unmount when used from inside
an elbe finetuning command.
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..8306138ebe17e2541718ff151633eb1c970ba042 100644
--- a/elbepack/init/__init__.py
+++ b/elbepack/init/__init__.py
@@ -132,6 +132,7 @@ def create_initvm(name, xmlfile, directory, *,
do(f'gpg --no-options \
--no-default-keyring \
+ --no-autostart \
--keyring {import_keyring} --import',
input=''.join(keys).encode('ascii'),
check=False,
@@ -141,6 +142,7 @@ def create_initvm(name, xmlfile, directory, *,
do(f'gpg --no-options \
--no-default-keyring \
+ --no-autostart \
--keyring {import_keyring} \
--export \
--output {export_keyring}',
---
base-commit: 11af251e0660c485ee43de883e16363653b589a4
change-id: 20241204-no-gpg-agent-autostart-9f109c012e07
Best regards,
--
Thomas Weißschuh <thomas.weissschuh at linutronix.de>
More information about the elbe-devel
mailing list