mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 16:29:36 +01:00
Check that overlay store directory is mounted correctly.
Nix does not manage the overlayfs mount point itself, but the correct functioning of the overlay store does depend on this mount point being set up correctly. Rather than just assume this is the case, check that the lowerdir and upperdir options are what we expect them to be. This check is on by default, but can be disabled if needed.
This commit is contained in:
parent
4173743a3c
commit
b5591ece4c
2 changed files with 30 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ struct LocalOverlayStoreConfig : virtual LocalStoreConfig
|
|||
Must be used as OverlayFS upper layer for this store's store dir.
|
||||
)"};
|
||||
|
||||
Setting<bool> checkMount{(StoreConfig*) this, true, "check-mount",
|
||||
"Check that the overlay filesystem is correctly mounted."};
|
||||
|
||||
const std::string name() override { return "Experimental Local Overlay Store"; }
|
||||
|
||||
std::string doc() override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue