From f507a155b971f8ea6c45102bb4d388c045d810b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Fri, 1 Dec 2023 15:29:36 +0100 Subject: [PATCH] mock: bind mount qubes-pesign socket on build --- qubesbuilder/plugins/chroot_rpm/mock/fedora.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubesbuilder/plugins/chroot_rpm/mock/fedora.cfg b/qubesbuilder/plugins/chroot_rpm/mock/fedora.cfg index 041d93f4..6bb64a0d 100644 --- a/qubesbuilder/plugins/chroot_rpm/mock/fedora.cfg +++ b/qubesbuilder/plugins/chroot_rpm/mock/fedora.cfg @@ -17,6 +17,10 @@ config_opts['use_bootstrap'] = False config_opts['plugin_conf']['bind_mount_enable'] = os.environ.get("BIND_MOUNT_ENABLE", False) config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('@BUILDER_DIR@/plugins', '/plugins' )) +# mount the pesign socket into the chroot +config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/var/run/qubes-pesign', '/var/run/qubes-pesign' )) +config_opts['nspawn_args'] += ['--bind=/var/run/qubes-pesign'] + config_opts['dnf.conf'] = """ [main] keepcache=1