ia64/xen-unstable

changeset 10113:224e9878c6d4

This patch resizes the file system on the xm-test HVM disk.img to use
the entire space available.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author stekloff@elm3b216.beaverton.ibm.com
date Fri May 19 16:29:34 2006 +0100 (2006-05-19)
parents 33b2ae024663
children 9b11eeab4558
files tools/xm-test/ramdisk/bin/create_disk_image
line diff
     1.1 --- a/tools/xm-test/ramdisk/bin/create_disk_image	Fri May 19 16:21:49 2006 +0100
     1.2 +++ b/tools/xm-test/ramdisk/bin/create_disk_image	Fri May 19 16:29:34 2006 +0100
     1.3 @@ -208,6 +208,13 @@ function dd_rootfs_to_image()
     1.4  	if [ $? -ne 0 ]; then
     1.5  		die "Failed to dd $ROOTFS to $LOOPP."
     1.6  	fi
     1.7 +
     1.8 +	# Resize fs to use full partition
     1.9 +	e2fsck -f $LOOPP 
    1.10 +	resize2fs $LOOPP
    1.11 +	if [ $? -ne 0 ]; then
    1.12 +		die "Failed to resize rootfs on $LOOPP."
    1.13 +	fi
    1.14  }
    1.15  
    1.16  function get_kernel()