From: Thomas Stewart Date: Fri, 19 May 2017 11:59:47 +0000 (+0100) Subject: Warn in initramfs if there is <256MM memory X-Git-Tag: v0.29.5~8 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=afdf6b68a5c8ce490e68118ec5a18782201698de Warn in initramfs if there is <256MM memory Closes grml/grml#35 --- diff --git a/etc/grml/fai/config/files/usr/share/initramfs-tools/scripts/init-top/grml/GRMLBASE b/etc/grml/fai/config/files/usr/share/initramfs-tools/scripts/init-top/grml/GRMLBASE index e8ccac6..23ac19c 100755 --- a/etc/grml/fai/config/files/usr/share/initramfs-tools/scripts/init-top/grml/GRMLBASE +++ b/etc/grml/fai/config/files/usr/share/initramfs-tools/scripts/init-top/grml/GRMLBASE @@ -174,6 +174,11 @@ fi if grep -q 'boot=live' /proc/cmdline 2>/dev/null ; then log_grml_begin_msg "Finished early booting sequence." ; echo "$SUCCESS" + #(256-16)*1024=245760 + if [ "$(awk '/MemTotal/{print $2}' /proc/meminfo)" -lt 245760 ] ; then + log_grml_failure_msg "Warning: less than 256MB RAM, boot may fail" + echo + fi log_grml_begin_msg "Searching for GRML file, this might take a few seconds..." echo fi