forked from mirrors/nixpkgs
nixos-generate-config: Don't generate filesystem options
We don't want to hardcode configuration options that the current kernel chose for us when mounting the filesystem, since the defaults can change in the future.
This commit is contained in:
parent
cea9a1a242
commit
a146fdab80
|
@ -305,7 +305,15 @@ EOF
|
|||
fileSystems.\"$mountPoint\" =
|
||||
{ device = \"$device\";
|
||||
fsType = \"$fsType\";
|
||||
options = \"${\join ",", uniq(@extraOptions, @superOptions, @mountOptions)}\";
|
||||
EOF
|
||||
|
||||
if (scalar @extraOptions > 0) {
|
||||
$fileSystems .= <<EOF;
|
||||
options = \"${\join ",", uniq(@extraOptions)}\";
|
||||
EOF
|
||||
}
|
||||
|
||||
$fileSystems .= <<EOF;
|
||||
};
|
||||
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue