From: Aaron Klingaman Date: Thu, 24 Mar 2005 18:40:32 +0000 (+0000) Subject: - bump ramdisk size to 64mb to handle kernels with all modules X-Git-Tag: BOOTCD_V_3_0_FINAL~20 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=fec729757956ea2be5cb2ef9f88fe5c47af539db - 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 --- 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