Forgot to check flag and early out.

This commit is contained in:
Ben Radford 2023-07-26 14:47:44 +01:00 committed by Ben Radford
parent 3a9fe1a085
commit c2d54496a0

View file

@ -247,6 +247,8 @@ Path LocalOverlayStore::toRealPathForHardLink(const StorePath & path)
void LocalOverlayStore::remountIfNecessary()
{
if (!_remountRequired) return;
if (remountHook.get().empty()) {
warn("'%s' needs remounting, set remount-hook to do this automatically", realStoreDir.get());
} else {