Fix "undefined variable ‘device’" using autoFormat
This commit is contained in:
parent
6e785be571
commit
7e8eb6a7c3
|
@ -258,7 +258,7 @@ in
|
||||||
let
|
let
|
||||||
mountPoint' = "${escapeSystemdPath fs.mountPoint}.mount";
|
mountPoint' = "${escapeSystemdPath fs.mountPoint}.mount";
|
||||||
device' = escapeSystemdPath fs.device;
|
device' = escapeSystemdPath fs.device;
|
||||||
device'' = "${device}.device";
|
device'' = "${device'}.device";
|
||||||
in nameValuePair "mkfs-${device'}"
|
in nameValuePair "mkfs-${device'}"
|
||||||
{ description = "Initialisation of Filesystem ${fs.device}";
|
{ description = "Initialisation of Filesystem ${fs.device}";
|
||||||
wantedBy = [ mountPoint' ];
|
wantedBy = [ mountPoint' ];
|
||||||
|
|
Loading…
Reference in New Issue