nixos/beesd: requres mount for the mount point specified

This commit is contained in:
Pasquale 2021-12-26 16:53:23 +01:00
parent fa5e153653
commit 5c294275b4
No known key found for this signature in database
GPG key ID: 13160FFB4CEB03F2

View file

@ -21,6 +21,8 @@ let
<para>
This must be in a format usable by findmnt; that could be a key=value
pair, or a bare path to a mount point.
We prefer bare paths as then the beesd service will be ordered after
mounting the path itself.
'';
example = "LABEL=MyBulkDataDrive";
};
@ -122,6 +124,7 @@ in
StartupIOWeight = 25;
SyslogIdentifier = "beesd"; # would otherwise be "bees-service-wrapper"
};
unitConfig.RequiresMountsFor = lib.mkIf (lib.hasPrefix "/" fs.spec) fs.spec;
wantedBy = [ "multi-user.target" ];
})
cfg.filesystems;