malekith: bootdisk mkimages,1.8,1.9

Michał Moskal malekith w pld-linux.org
Czw, 21 Mar 2002, 16:55:44 CET


Module name:    bootdisk
Changes by:     malekith

Changed RCS file: /cvsroot/bootdisk/mkimages,v
----------------------------
revision 1.9
date: 2002/03/21 15:55:40;  author: malekith;  state: Exp;  lines: +10 -2
- make smaller initrd on 2.4 (root is moved to tmpfs anyway)
 

Index: mkimages
===================================================================
RCS file: /cvsroot/bootdisk/mkimages,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- mkimages	20 Mar 2002 09:41:12 -0000	1.8
+++ mkimages	21 Mar 2002 15:55:40 -0000	1.9
@@ -18,10 +18,10 @@
     opt="$opt -e $f"
   done
 
-  sh scripts/mkinstaller -t `pwd`/targz $opt "$@" \
+  sh scripts/mkinstaller -t `pwd`/targz $kernel_opt $opt "$@" \
   	-I bootdisk_${name}.txt \
 	-o bootdisk_${name}.img
-  sh scripts/mkinstaller -t `pwd`/targz -a $opt "$@" \
+  sh scripts/mkinstaller -t `pwd`/targz -a $kernel_opt $opt "$@" \
   	-I bootdisk_${name}_slow.txt \
 	-o bootdisk_${name}_slow.img
   
@@ -49,6 +49,14 @@
 . ./installer-rc
 
 network_conf
+
+if [ "$KERNEL_VERCODE" -gt 2 ] ; then
+  # we don't need much additional space on 2.4 bootdisk, tmpfs is used
+  # for / anyway
+  kernel_opt="-A 100"
+else
+  kernel_opt=""
+fi
 
 if [ "$KERNEL_VERCODE" -gt 2 ] ; then
   eth_addons=



Więcej informacji o liście dyskusyjnej pld-installer