From a146fdab808ddacc2ea0b950d753807d75eae2db Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Wed, 19 Feb 2014 17:13:21 +0100 Subject: [PATCH] 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. --- nixos/modules/installer/tools/nixos-generate-config.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 67ba7956022..bf7cdcd3711 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -305,7 +305,15 @@ EOF fileSystems.\"$mountPoint\" = { device = \"$device\"; fsType = \"$fsType\"; - options = \"${\join ",", uniq(@extraOptions, @superOptions, @mountOptions)}\"; +EOF + + if (scalar @extraOptions > 0) { + $fileSystems .= <