Skip to content

Commit

Permalink
mock: bind mount qubes-pesign socket on build
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed Dec 1, 2023
1 parent 6298c0b commit 672ddb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qubesbuilder/plugins/chroot_rpm/mock/fedora.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ 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 qubes-pesign socket into the chroot
if os.path.exists("/var/run/qubes-pesign"):
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
Expand Down

0 comments on commit 672ddb7

Please sign in to comment.