nixos-generate-config: don't emit tmpfs entry for /tmp

Because it most likely comes from the boot.tmpOnTmpfs option in
configuration.nix (managed declaratively).
This commit is contained in:
Bjørn Forsman 2019-06-16 16:16:34 +02:00
parent 66add9f141
commit 8f551be935

View file

@ -441,6 +441,10 @@ EOF
}
}
# Don't emit tmpfs entry for /tmp, because it most likely comes from the
# boot.tmpOnTmpfs option in configuration.nix (managed declaratively).
next if ($mountPoint eq "/tmp" && $fsType eq "tmpfs");
# Emit the filesystem.
$fileSystems .= <<EOF;
fileSystems.\"$mountPoint\" =