Remove ‘autocreate’ FS option

Systemd creates missing mountpoints unconditionally.
This commit is contained in:
Eelco Dolstra 2012-10-01 14:34:39 -04:00
parent 353522ef79
commit 440b793a5b

View file

@ -64,9 +64,6 @@ in
specify a volume label (<literal>label</literal>) for file
systems that support it, such as ext2/ext3 (see <command>mke2fs
-L</command>).
<literal>autocreate</literal> forces <literal>mountPoint</literal> to be created with
<command>mkdir -p</command> .
'';
type = types.list types.optionSet;
@ -108,15 +105,6 @@ in
description = "Options used to mount the file system.";
};
autocreate = mkOption {
default = false;
type = types.bool;
description = ''
Automatically create the mount point defined in
<option>fileSystems.*.mountPoint</option>.
'';
};
autoFormat = mkOption {
default = false;
type = types.bool;
@ -219,12 +207,6 @@ in
fi
'')}
# 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}'
'')}
# Create missing swapfiles.
# FIXME: support changing the size of existing swapfiles.
${flip concatMapStrings config.swapDevices (sw: optionalString (sw.size != null) ''