make /var/lib/dpkg a ramdisk :(
Juergen Kahnert
Juergen.Kahnert at DESY.de
Wed May 26 13:23:00 CEST 2010
Hi,
On Sun, May 23, 2010 at 03:22:16AM +0200, Michael Prokop wrote:
> * Thomas Lange <lange at informatik.uni-koeln.de> [Wed May 19, 2010 at 03:17:42AM +0200]:
>
>>> Not every device being installed with FAI has so much memory...
>> You can write a hook and redefine mkramdisk as a noop subroutine.
>
> Since FAI 3.3.4 setting FAI_NORAMDISK=1 is supported to skip the
> mkramdisk feature.
what about to add a check in mkramdisk to skip it automatically if there
is not enough memory on the system?
Something like this:
typeset -i memtotal=$(sed -ne 's/^MemTotal:[[:space:]]*\([0-9]*\)[[:space:]]*.*/\1/p' /proc/meminfo)
[ ${memtotal} -lt 1000000 ] && return
>> A future version of FAI will have a variable, which holds a list
>> of all directories that will be put into a ramdisk. If this list
>> is empty, no ramdisk will be created. But it's not yet
>> implemented.
It's not about the way to disable the ramdisk feature. It's always
possible to fix it and make it work on low mem systems, either with a
hook, via FAI_NORAMDISK=1, a list of ramdisk directories or whatever.
It's about to make it work without spending time of investigation, why
the default don't work on some systems...
Regards
Jürgen Kahnert
-------------- nächster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde abgetrennt...
Dateiname : smime.p7s
Dateityp : application/x-pkcs7-signature
Dateigr??e : 5277 bytes
Beschreibung: nicht verf?gbar
URL : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100526/92ecb7a4/attachment.bin
More information about the linux-fai
mailing list