These files should have the .config extension in /etc/crypto-policies,
but they have the .txt extension in /usr/share/crypto-policies.
Path(dst / "etc/crypto-policies").mkdir(exist_ok=True)
copy_tree(p, dst / "etc/crypto-policies/back-ends", sandbox=config.sandbox)
+ # The files in /usr/share/crypto-policies have the .txt extension but in /etc/crypto-policies it
+ # should have the .config extension so rename all the files after copying them.
+ for p in (dst / "etc/crypto-policies/back-ends").iterdir():
+ if p.suffix == ".txt":
+ p.rename(p.with_suffix(".config"))
+
if config.sandbox_trees:
with complete_step("Copying in sandbox trees…"):
for tree in config.sandbox_trees: