[Lunar-commits] CVS: lunar-iso/scripts initrd,1.1,1.2

Auke Kok sofar at lunar-linux.org
Wed Nov 24 08:29:29 UTC 2004


Update of /var/cvs/lunar/lunar-iso/scripts
In directory espresso.foo-projects.org:/tmp/cvs-serv27496

Modified Files:
	initrd 
Log Message:
Autogen the entire initrd as is


Index: initrd
===================================================================
RCS file: /var/cvs/lunar/lunar-iso/scripts/initrd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- initrd	22 Nov 2004 20:43:35 -0000	1.1
+++ initrd	24 Nov 2004 08:29:26 -0000	1.2
@@ -4,10 +4,32 @@
 
 cd $ISO_SOURCE/initrd
 
+umount $ISO_SOURCE/BUILD/dev
+umount $ISO_SOURCE/BUILD/proc
 umount template/dev
 umount template/proc
+
 rm -rf BUILD
+
+# template first
 cp -a template BUILD
+
+# next up are the required stuff from the BUILD
+for ITEM in $(cat initrd.list); do
+    mkdir -p "BUILD/$(dirname $ITEM)"
+    cp -a "$ISO_TARGET/$ITEM" "BUILD/$(dirname $ITEM)"
+done
+cp -a "$ISO_TARGET/dev" "BUILD/"
+for ITEM in $(find BUILD -type f); do
+    strip $ITEM > /dev/null 2>&1
+done
+for ITEM in $(find BUILD -type d -name "CVS"); do
+    rm -rf $ITEM
+done
+rm -f BUILD/dev/install-devices.sh
+chroot BUILD /sbin/ldconfig
+read
+
 # compile the initrd image
 mkdir -p BUILD/lib/modules/${ISO_KVER}-ll-${ISO_KREL}/kernel/drivers/
 cp -a $ISO_TARGET/lib/modules/${ISO_KVER}-ll-${ISO_KREL}/kernel/drivers/{ide,scsi} BUILD/lib/modules/${ISO_KVER}-ll-${ISO_KREL}/kernel/drivers/



More information about the Lunar-commits mailing list