Initialize the empty verification directory installed by vpac
@@ -114,6 +114,6 @@ feed install "$builder_keys" "$repo" x86_64 "$work/new-client" --fakeroot musl v
114python3 tools/keyring.py seed "$work/new-client/root" "$trusted_fingerprint"
1115```
2116
3-`vinix-keyring` owns the public certificate and fingerprint in `/usr/share/vpac/keyrings/`. Image assembly initializes the mutable GnuPG keybox and trust database under `/etc/vpac.d/gnupg/`. The seed operation requires a fresh destination. The builder compares the independently supplied fingerprint before packaging and again before seeding.
117+`vinix-keyring` owns the public certificate and fingerprint in `/usr/share/vpac/keyrings/`. Image assembly initializes the mutable GnuPG keybox and trust database under `/etc/vpac.d/gnupg/`. The seed operation accepts a new destination or the empty directory installed by the vpac port. The builder compares the independently supplied fingerprint before packaging and again before seeding.
4118
5-The worker used a disposable test signer in `foundation/keyring-03`. It rejected a wrong pin, installed the signed keyring, verified the signed database with the seeded keyring, and used that keyring alone for an offline vpac install of musl into another empty root. A second seed attempt preserved the existing keyring. The checksum manifest has SHA-256 `9d0868ef14da385aeddbca46b97cb154fdfe9ccd8b69a3e90d5a3c5f7f36ed3c`. The target-vpac guest transaction and provisioning the release signer's public certificate remain release checks.
119+The worker used a disposable test signer in `foundation/keyring-04`. It rejected a wrong pin, installed the signed keyring, seeded an empty vpac key directory, verified the signed database and used that keyring alone for an offline vpac install of musl into another empty root. A second seed attempt preserved the existing keyring. The checksum manifest has SHA-256 `3ffb71fb6832d43af1cb2ec588d2d6a75ece24060d22bd1e70be59392a64d30d`. The target-vpac guest transaction and provisioning the release signer's public certificate remain release checks.
@@ -68,7 +68,7 @@ def seed(args):
6868 raise ValueError("installed keyring fingerprint differs from the trusted release fingerprint")
6969 parent.mkdir(parents=True, exist_ok=True)
7070 dest = parent / "gnupg"
71- if os.path.lexists(dest):
71+ if os.path.lexists(dest) and (dest.is_symlink() or not dest.is_dir() or any(dest.iterdir())):
7272 raise ValueError(f"verification keyring already exists: {dest}")
7373 # Long image paths can exceed the Unix socket limit used by GnuPG.
7474 with tempfile.TemporaryDirectory() as directory, tempfile.TemporaryDirectory(dir=parent) as staging: