mounts = [
(root / subdir, Path("/") / subdir)
for subdir in (
- Path("usr/share/keyrings"),
- Path("usr/share/distribution-gpg-keys"),
Path("etc/pki"),
Path("etc/ssl"),
Path("etc/ca-certificates"),
- Path("etc/pacman.d/gnupg"),
Path("etc/static"),
Path("var/lib/ca-certificates"),
)
if (root / subdir).exists()
]
+ # This contains the Arch Linux keyring, which isn't certificates so ToolsTreeCertificates= doesn't apply.
+ if (config.tools() / "etc/pacman.d/gnupg").exists():
+ mounts += [(config.tools() / "etc/pacman.d/gnupg", Path("/etc/pacman.d/gnupg"))]
+
return flatten(
("--symlink", src.readlink(), target) if src.is_symlink() else ("--ro-bind", src, target)
for src, target in sorted(set(mounts), key=lambda s: s[1])
multiple times in which case the specified package lists are combined.
`ToolsTreeCertificates=`, `--tools-tree-certificates=`
-: Specify whether to use certificates and keys from the tools tree. If
- enabled, `/usr/share/keyrings`, `/usr/share/distribution-gpg-keys`,
- `/etc/pki`, `/etc/ssl`, `/etc/ca-certificates`, `/etc/pacman.d/gnupg`
- and `/var/lib/ca-certificates` from the tools tree are used.
- Otherwise, these directories are picked up from the host.
+: Specify whether to use certificates and keys from the tools tree.
+ Enabled by default. If enabled, `/etc/pki`, `/etc/ssl`,
+ `/etc/ca-certificates`, and `/var/lib/ca-certificates` from the
+ tools tree are used. Otherwise, these directories are picked up from
+ the host.
`Incremental=`, `--incremental=`, `-i`
: Takes either `strict` or a boolean value as its argument. Enables