Fix "undefined variable ‘device’" using autoFormat

This commit is contained in:
Eelco Dolstra 2016-09-30 15:03:33 +02:00
parent 6e785be571
commit 7e8eb6a7c3

View File

@ -258,7 +258,7 @@ in
let
mountPoint' = "${escapeSystemdPath fs.mountPoint}.mount";
device' = escapeSystemdPath fs.device;
device'' = "${device}.device";
device'' = "${device'}.device";
in nameValuePair "mkfs-${device'}"
{ description = "Initialisation of Filesystem ${fs.device}";
wantedBy = [ mountPoint' ];