- bump ramdisk size to 64mb to handle kernels with all modules
authorAaron Klingaman <alk@cs.princeton.edu>
Thu, 24 Mar 2005 18:40:32 +0000 (18:40 +0000)
committerAaron Klingaman <alk@cs.princeton.edu>
Thu, 24 Mar 2005 18:40:32 +0000 (18:40 +0000)
- bump version to 0.2: rebuilt with latest 2.6.8 planetlab kernel
- make sure the script exits if the ramdisk creation fails

build.sh

index ac53732..5a03583 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -34,7 +34,7 @@ INITRD=$CD_ROOT/usr/isolinux/initrd
 INITRD_MOUNT=`pwd`/rd
 
 # size of the ram disk in MB
-RAMDISK_SIZE=48
+RAMDISK_SIZE=64
 
 # the bytes per inode ratio (the -i value in mkfs.ext2) for the ramdisk
 INITRD_BYTES_PER_INODE=1024
@@ -181,8 +181,10 @@ function build_initrd()
     mount -o loop,rw $INITRD $INITRD_MOUNT
 
     echo "copy all files except usr to ramdisk"
-    (cd $CD_ROOT && find . -path ./usr -prune -o -print | \
-       cpio -p -d -u $INITRD_MOUNT)
+    pushd .
+    cd $CD_ROOT
+    find . -path ./usr -prune -o -print | cpio -p -d -u $INITRD_MOUNT
+    popd
 
     umount $INITRD_MOUNT
     rmdir $INITRD_MOUNT