[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#759336: linux-i386 lowmem install: anna fails with ENOSPC



Samuel Thibault, le Tue 26 Aug 2014 15:49:32 +0200, a écrit :
> In /proc/mounts, one can read for the rootfs on / a size= value, which
> seems to be half the memory size. That's probably the culprit, perhaps
> it can be worked around somehow for d-i at least.

Indeed:

static unsigned long shmem_default_max_blocks(void)
{
	return totalram_pages / 2;
}

which probably makes sense for an installed system, but not for an
installer.  We can however do this early at boot:

mount / -o remount,size=$(( $(grep ^MemTotal: /proc/meminfo | { read x y z; echo $y; }) * 1024 )

notably before unpacking .udebs, S15lowmem would probably be a fine
place for this? (it notably already does the computation trick)

Samuel


Reply to: