diff options
| author | tv <tv@krebsco.de> | 2026-11-20 04:17:07 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 04:17:07 +0000 |
| commit | 24f2fb6eb968acef443e510af6819dba35339282 (patch) | |
| tree | ea9fa884b069905ae7f205c589987fde7d6814e1 /modules/host | |
| parent | 2d3fabb736e681d1b3f5f91e2d7897ea35aa4c58 (diff) | |
drop rw-store paths that a lower layer has, before mounting the store
nix in the guest deletes a path in the store that isn't in its
database before it adds it, like any of the host's store's paths, which
aren't registered. On the overlay, that leaves a whiteout in the
rw-store, or an opaque directory with what nix adds again, if it gets
that far. With a persistent rw-store, that hides the path from every
later boot, from images that have it, too: a hermes layer's setup
failed with exit 255, as python3's binary wrapper couldn't exec the
python the rw-store hid.
A path that a lower layer has is complete there, and the same as
anything of that name in the rw-store. So drop such paths from the
rw-store in the initrd, before sysroot-nix-store.mount; what's left is
what only the guest added.
Diffstat (limited to 'modules/host')
0 files changed, 0 insertions, 0 deletions
