apt on Fedora uses gnutls which requires
/etc/crypto-policies/back-ends/gnutls.config to work properly. Let's
copy the default crypto policies from the tools tree into the package
manager tree to make sure things keep working.
passwd.write(f"{name}:x:{INVOKING_USER.uid}:{INVOKING_USER.gid}:{name}:{home}:/bin/sh\n")
os.fchown(passwd.fileno(), INVOKING_USER.uid, INVOKING_USER.gid)
+ if (p := context.config.tools() / "etc/crypto-policies").exists():
+ copy_tree(
+ p, context.pkgmngr / "etc/crypto-policies",
+ preserve=False,
+ dereference=True,
+ tools=context.config.tools(),
+ sandbox=context.config.sandbox,
+ )
+
if not context.config.package_manager_trees:
return