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).
wip/yesman
Bjørn Forsman 5 years ago
parent 66add9f141
commit 8f551be935
  1. 4
      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 .= <<EOF;
fileSystems.\"$mountPoint\" =

Loading…
Cancel
Save