[Top][All Lists]

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

reporting amount of available memory (and acting on it) from grub?

From: Daniel Kahn Gillmor
Subject: reporting amount of available memory (and acting on it) from grub?
Date: Wed, 06 Jan 2016 00:50:08 -0800
User-agent: Notmuch/0.21+39~gd2ae295 ( Emacs/24.5.1 (x86_64-pc-linux-gnu)

Hi grub folks--

Is there a way that a grub script (or the grub commandline) can report
the amount of available memory?

It seems like it would be useful in situations like a liveCD or bootable
image that might want to warn the user up front if the available RAM is
smaller than the advertised minimum.  (e.g. Tails or debirf)

Currently, when systems boot with less memory than their minimums, they
often end up with a kernel dump or something similarly unintelligible to
most users.  A well-crafted grub configfile for such an image could
provide the user with something more understandable, or at least warn
the user before continuing that the available memory is believed to be

I could also imagine a use case like an automated boot process that
selects some x86_64 kernel or boot options on machines with > 4GiB of
RAM and plain x86 for machines with less.

any pointers to how to do this?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]