* Fix the "autocreate" option.
svn path=/nixos/trunk/; revision=33750
This commit is contained in:
parent
a34e20e292
commit
f2fd48e131
@ -185,6 +185,12 @@ in
|
|||||||
# Ensure that this job is restarted when fstab changed:
|
# Ensure that this job is restarted when fstab changed:
|
||||||
# ${fstab}
|
# ${fstab}
|
||||||
echo "mounting filesystems..."
|
echo "mounting filesystems..."
|
||||||
|
|
||||||
|
# Create missing mount points. Note that this won't work
|
||||||
|
# if the mount point is under another mount point.
|
||||||
|
${flip concatMapStrings config.fileSystems (fs: optionalString fs.autocreate ''
|
||||||
|
mkdir -p -m 0755 '${fs.mountPoint}'
|
||||||
|
'')}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
daemonType = "daemon";
|
daemonType = "daemon";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user