malekith: bootdisk mkinstaller,1.13,1.14

Michał Moskal malekith w pld-linux.org
Pią, 22 Mar 2002, 11:14:11 CET


Module name:    bootdisk
Changes by:     malekith

Changed RCS file: /cvsroot/bootdisk/scripts/mkinstaller,v
----------------------------
revision 1.14
date: 2002/03/22 10:14:06;  author: malekith;  state: Exp;  lines: +12 -3
- added -R option to use romfs instead of ext2 as an initrd
 

Index: mkinstaller
===================================================================
RCS file: /cvsroot/bootdisk/scripts/mkinstaller,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- mkinstaller	29 Oct 2001 18:49:01 -0000	1.13
+++ mkinstaller	22 Mar 2002 10:14:06 -0000	1.14
@@ -18,6 +18,7 @@
 verbose=yes
 outfile=
 in_dir=
+romfs=
 in_initrd=
 etc_files=
 exact_size=
@@ -155,6 +156,9 @@
     -D)
       double_diskette=1
       ;;
+    -R)
+      romfs=yes
+      ;;
     *)
       cat <<EOF
 USAGE: $0 [options]
@@ -174,6 +178,7 @@
      Generate file with information about bootdisk.
   -a use syslinux with -s option (slow, stupid and safe)
      In most cases not needed.
+  -R use genromfs instead of genext2fs.
 
 Options to modify image content:
   -p PACKAGES
@@ -387,10 +392,14 @@
   info "Initrd-kb-size: $size"
   info "Additional-initrd-kb-size: $add"
   verb "creating initrd of $size kb ($add kb additonal space)"
-  
-  genext2fs -e 0 -i 2000 -b $size \
+ 
+  if test "$romfs" ; then
+    genromfs -d $dir -f $initrd
+  else
+    genext2fs -e 0 -i 2000 -b $size \
   	-d $dir \
   	-f $targz_dir/config/dev_genext2fs $initrd
+  fi
 }
 
 # makes bootdisk from directory given as argument



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