Bug#838919: debian-installer: please calculate swap parition according to max RAM supported by the motherboard
As far as I can tell, d-i calculates the size of the swap partition according to the curently installed amount of RAM.
Whenever the RAM is upgraded later on, the swap parition no longer fulfills its intended purpose, in cases when it would be needed to store hibernate images, since the parition was calculated to store a much smaller RAM image.
A more desirable method would be for d-i to use 'dmidecode' to probe the system's memory controller for the maximum amount of RAM that is supported and to calculate the swap partition size according to that.
-- System Information:
Debian Release: 8.6
APT prefers stable
APT policy: (1111, 'stable'), (1001, 'oldstable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)