1
1
Fork 0
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:
Ben Radford 2023-05-15 10:20:16 +01:00 committed by Ben Radford
parent 4173743a3c
commit b5591ece4c
2 changed files with 30 additions and 0 deletions

View file

@ -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