mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Use UnionSourceAccessor to mount the chroot store on top of the real store directory
This commit is contained in:
parent
5b7c240ebd
commit
99e78c37f7
6 changed files with 42 additions and 49 deletions
|
@ -250,11 +250,6 @@ public:
|
|||
*/
|
||||
const ref<SourceAccessor> rootFS;
|
||||
|
||||
/**
|
||||
* The accessor for the store.
|
||||
*/
|
||||
const ref<SourceAccessor> storeFS;
|
||||
|
||||
/**
|
||||
* The in-memory filesystem for <nix/...> paths.
|
||||
*/
|
||||
|
@ -394,18 +389,6 @@ public:
|
|||
*/
|
||||
SourcePath rootPath(PathView path);
|
||||
|
||||
/**
|
||||
* Convert `s` to a path. If `context` is not empty, the resulting
|
||||
* path will use the `storeFS` accessor; otherwise it will use
|
||||
* `rootFS`. When using a chroot store, this allows us to
|
||||
* distinguish between store paths resulting from
|
||||
* import-from-derivation and sources stored in the actual
|
||||
* /nix/store.
|
||||
*/
|
||||
SourcePath stringWithContextToPath(
|
||||
std::string_view s,
|
||||
const NixStringContext & context);
|
||||
|
||||
/**
|
||||
* Allow access to a path.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue