Skip to content

Commit 672ddb7

Browse files
committed
mock: bind mount qubes-pesign socket on build
1 parent 6298c0b commit 672ddb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

qubesbuilder/plugins/chroot_rpm/mock/fedora.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ config_opts['use_bootstrap'] = False
1717
config_opts['plugin_conf']['bind_mount_enable'] = os.environ.get("BIND_MOUNT_ENABLE", False)
1818
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('@BUILDER_DIR@/plugins', '/plugins' ))
1919

20+
# mount the qubes-pesign socket into the chroot
21+
if os.path.exists("/var/run/qubes-pesign"):
22+
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/var/run/qubes-pesign', '/var/run/qubes-pesign' ))
23+
config_opts['nspawn_args'] += ['--bind=/var/run/qubes-pesign']
24+
2025
config_opts['dnf.conf'] = """
2126
[main]
2227
keepcache=1

0 commit comments

Comments
 (0)