From: Michael Gebetsroither Date: Sun, 4 Mar 2007 13:01:56 +0000 (+0100) Subject: set max initrd size to 24000kB X-Git-Tag: 0.83~16 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=2638c3a270deeed06bfe6938922d113338b6efa0;p=grml-terminalserver.git set max initrd size to 24000kB --- diff --git a/grml-terminalserver-config b/grml-terminalserver-config index 3e40111..d06b757 100755 --- a/grml-terminalserver-config +++ b/grml-terminalserver-config @@ -235,8 +235,9 @@ function mkInitrd # put everything into the new initrd local tmp_size=`du -s $INITRD_ |awk '{print $1}'` # in kB let tmp_size=$tmp_size+1000 - if (( $tmp_size >= 16000 )); then - warn "Your initrd is $tmp_size kByte large => TOO BIG (should be <= 16000kB)" + local max_size=24000 + if (( $tmp_size >= $max_size )); then + warn "Your initrd is $tmp_size kByte large => TOO BIG (should be <= ${max_size}kB)" warn "Please remove a few modules from $CARDS_DETECTED_BY_DISCOVER or edit $INITRD_ manually" return 1 fi diff --git a/templates/grub-pxelinux_config b/templates/grub-pxelinux_config index 3ecd48b..9ae04f9 100644 --- a/templates/grub-pxelinux_config +++ b/templates/grub-pxelinux_config @@ -19,7 +19,7 @@ # default boot arguments used for both grub and pxelinux -default_boot_args_="ramdisk_size=16384 root=/dev/ram0 rw \ +default_boot_args_="ramdisk_size=24000 root=/dev/ram0 rw \ init=/etc/init nfsdir=$IP_:$MOUNT_POINT_ nodhcp noprompt noeject \ apm=power-off nomce"