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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user