From fec729757956ea2be5cb2ef9f88fe5c47af539db Mon Sep 17 00:00:00 2001 From: Aaron Klingaman Date: Thu, 24 Mar 2005 18:40:32 +0000 Subject: [PATCH] - bump ramdisk size to 64mb to handle kernels with all modules - 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index ac53732..5a03583 100755 --- 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 -- 2.43.0