Remove ‘autocreate’ FS option
Systemd creates missing mountpoints unconditionally.
This commit is contained in:
parent
353522ef79
commit
440b793a5b
@ -64,9 +64,6 @@ in
|
|||||||
specify a volume label (<literal>label</literal>) for file
|
specify a volume label (<literal>label</literal>) for file
|
||||||
systems that support it, such as ext2/ext3 (see <command>mke2fs
|
systems that support it, such as ext2/ext3 (see <command>mke2fs
|
||||||
-L</command>).
|
-L</command>).
|
||||||
|
|
||||||
<literal>autocreate</literal> forces <literal>mountPoint</literal> to be created with
|
|
||||||
<command>mkdir -p</command> .
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
type = types.list types.optionSet;
|
type = types.list types.optionSet;
|
||||||
@ -108,15 +105,6 @@ in
|
|||||||
description = "Options used to mount the file system.";
|
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 {
|
autoFormat = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
@ -219,12 +207,6 @@ in
|
|||||||
fi
|
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.
|
# Create missing swapfiles.
|
||||||
# FIXME: support changing the size of existing swapfiles.
|
# FIXME: support changing the size of existing swapfiles.
|
||||||
${flip concatMapStrings config.swapDevices (sw: optionalString (sw.size != null) ''
|
${flip concatMapStrings config.swapDevices (sw: optionalString (sw.size != null) ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user