Always resize the root filesystem

This commit is contained in:
Dean Troyer 2011-10-26 12:35:22 -05:00
parent ea442c1cb7
commit ae6055685c

View file

@ -131,6 +131,7 @@ fi
if [ $ROOTSIZE -gt 2000 ]; then
# Resize the container
qemu-img resize $IMG_FILE +$((ROOTSIZE - 2000))M
fi
# Connect to nbd and wait till it is ready
qemu-nbd -c $NBD $IMG_FILE
@ -156,4 +157,3 @@ w
resize2fs ${NBD}p1
qemu-nbd -d $NBD
fi