set max initrd size to 24000kB
authorMichael Gebetsroither <michael.geb@gmx.at>
Sun, 4 Mar 2007 13:01:56 +0000 (14:01 +0100)
committerMichael Gebetsroither <michael.geb@gmx.at>
Sun, 4 Mar 2007 13:01:56 +0000 (14:01 +0100)
grml-terminalserver-config
templates/grub-pxelinux_config

index 3e40111..d06b757 100755 (executable)
@@ -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
index 3ecd48b..9ae04f9 100644 (file)
@@ -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"