From 8f551be9356e3b9a8da528ecfd6f96e5ebde7981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 16 Jun 2019 16:16:34 +0200 Subject: [PATCH] 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). --- nixos/modules/installer/tools/nixos-generate-config.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 4c255ad47869..c09def1fceae 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -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 .= <