From: Heiko Z. <smi...@us...> - 2012-01-04 13:17:54
|
Update of /cvsroot/devil-linux/build/config/etc/initrd In directory vz-cvs-3.sog:/tmp/cvs-serv15663 Modified Files: mount_cdrom Log Message: be more verbose on the ramdisk sizes, so we can better analyze problems Index: mount_cdrom =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/initrd/mount_cdrom,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- mount_cdrom 29 Dec 2011 21:32:01 -0000 1.56 +++ mount_cdrom 4 Jan 2012 13:17:52 -0000 1.57 @@ -166,7 +166,7 @@ mkdir -p ${RAMDISK} /sbin/mount -n -t tmpfs -o size=${RAMDISK_SIZE}m shmfs ${RAMDISK} - echo -n "Copying system image (${IMAGE_SIZE_MB} MB) to ramdisk..." + echo -n "Copying system image (${IMAGE_SIZE_MB} MB) to ramdisk (${RAMDISK_SIZE} MB)..." busy_start case ${MEDIATYPE} in CDROM ) # don't keep it mounted while copying @@ -234,6 +234,7 @@ RAMDISK_SIZE=$(df -k ${RAMDISK} | grep "${RAMDISK}" | awk '{print $(NF-3)}') # mount ramdisk read-only and reduce to minimal size + echo "Reducing ramdisk size to ${RAMDISK_SIZE}k" /sbin/mount -n -o remount,ro,size=${RAMDISK_SIZE}k shmfs ${RAMDISK} # loop mount final ISO image from ramdisk |